File tree Expand file tree Collapse file tree 3 files changed +18
-0
lines changed
main/java/com/aliyuncs/profile
test/java/com/aliyuncs/profile Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -167,4 +167,13 @@ public boolean isUsingVpcEndpoint() {
167
167
public void enableUsingVpcEndpoint () {
168
168
this .usingVpcEndpoint = true ;
169
169
}
170
+
171
+ /**
172
+ * @deprecated : use enableUsingInternalLocationService instead of this.
173
+ */
174
+ @ Override
175
+ @ Deprecated
176
+ public void setUsingInternalLocationService () {
177
+ enableUsingInternalLocationService ();
178
+ }
170
179
}
Original file line number Diff line number Diff line change @@ -54,4 +54,6 @@ public interface IClientProfile {
54
54
public boolean isUsingVpcEndpoint ();
55
55
56
56
public void enableUsingVpcEndpoint ();
57
+ @ Deprecated
58
+ public void setUsingInternalLocationService ();
57
59
}
Original file line number Diff line number Diff line change @@ -73,4 +73,11 @@ public void testProfileConstructor() {
73
73
assertEquals ("stsToken" , profile .getCredential ().getSecurityToken ());
74
74
}
75
75
76
+ @ Test
77
+ public void deprecatedTest (){
78
+ DefaultProfile profile = DefaultProfile .getProfile ("cn-hangzhou" );
79
+ profile .setUsingInternalLocationService ();
80
+ assertTrue (profile .isUsingInternalLocationService ());
81
+ }
82
+
76
83
}
You can’t perform that action at this time.
0 commit comments