Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -167,4 +167,13 @@ public boolean isUsingVpcEndpoint() {
public void enableUsingVpcEndpoint() {
this.usingVpcEndpoint = true;
}

/**
* @deprecated : use enableUsingInternalLocationService instead of this.
*/
@Override
@Deprecated
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

写上用什么替代。

public void setUsingInternalLocationService() {
enableUsingInternalLocationService();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,6 @@ public interface IClientProfile {
public boolean isUsingVpcEndpoint();

public void enableUsingVpcEndpoint();
@Deprecated
public void setUsingInternalLocationService();
}
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,11 @@ public void testProfileConstructor() {
assertEquals("stsToken", profile.getCredential().getSecurityToken());
}

@Test
public void deprecatedTest(){
DefaultProfile profile = DefaultProfile.getProfile("cn-hangzhou");
profile.setUsingInternalLocationService();
assertTrue(profile.isUsingInternalLocationService());
}

}