File tree 2 files changed +11
-2
lines changed
main/java/com/ibm/cloud/sdk/core/util
test/java/com/ibm/cloud/sdk/core/test/util 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -165,7 +165,16 @@ private static String buildUserAgent() {
165
165
details .add (propertyName + "=" + System .getProperty (propertyName ));
166
166
}
167
167
168
- return "ibm-java-sdk-core/" + loadCoreVersion () + " (" + RequestUtils .join (details , "; " ) + ")" ;
168
+ return "ibm-java-sdk-core-" + loadCoreVersion () + " " + getSystemInfo ();
169
+ }
170
+
171
+ public static String getSystemInfo () {
172
+ final List <String > details = new ArrayList <>();
173
+ for (String propertyName : properties ) {
174
+ details .add (propertyName + "=" + System .getProperty (propertyName ));
175
+ }
176
+
177
+ return "(" + RequestUtils .join (details , "; " ) + ")" ;
169
178
}
170
179
171
180
/**
Original file line number Diff line number Diff line change @@ -109,6 +109,6 @@ public void testPickWithNulls() {
109
109
@ Test
110
110
public void testUserAgent () {
111
111
assertNotNull (RequestUtils .getUserAgent ());
112
- assertTrue (RequestUtils .getUserAgent ().startsWith ("ibm-java-sdk-core/ " ));
112
+ assertTrue (RequestUtils .getUserAgent ().startsWith ("ibm-java-sdk-core- " ));
113
113
}
114
114
}
You can’t perform that action at this time.
0 commit comments