Skip to content

Commit cae0d2c

Browse files
feat(common): generated code
1 parent 3f9065e commit cae0d2c

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

common/src/main/java/com/ibm/watson/common/SdkCommon.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ public class SdkCommon {
1414
private static final Logger LOG = Logger.getLogger(SdkCommon.class.getName());
1515
private static String userAgent;
1616

17-
private SdkCommon() { }
17+
private SdkCommon() {
18+
}
1819

1920
private static String loadSdkVersion() {
2021
ClassLoader classLoader = SdkCommon.class.getClassLoader();
@@ -44,8 +45,7 @@ public static Map<String, String> getSdkHeaders(String serviceName, String servi
4445
"service_name=%s;service_version=%s;operation_id=%s",
4546
serviceName,
4647
serviceVersion,
47-
operationId
48-
);
48+
operationId);
4949

5050
headers.put(WatsonHttpHeaders.X_IBMCLOUD_SDK_ANALYTICS, sdkAnalyticsHeaderValue);
5151
headers.put(HttpHeaders.USER_AGENT, getUserAgent());

common/src/test/java/com/ibm/watson/common/RetryRunner.java

-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ public RetryRunner(Class<?> clazz) throws InitializationError {
4141

4242
/*
4343
* (non-Javadoc)
44-
*
4544
* @see org.junit.runners.ParentRunner#run(org.junit.runner.notification.RunNotifier)
4645
*/
4746
@Override
@@ -62,7 +61,6 @@ public void run(final RunNotifier notifier) {
6261

6362
/*
6463
* (non-Javadoc)
65-
*
6664
* @see org.junit.runners.BlockJUnit4ClassRunner#runChild(org.junit.runners.model.FrameworkMethod,
6765
* org.junit.runner.notification.RunNotifier)
6866
*/

common/src/test/java/com/ibm/watson/common/TestUtils.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ public final class TestUtils {
2020
/**
2121
* Private constructor.
2222
*/
23-
private TestUtils() { }
23+
private TestUtils() {
24+
}
2425

2526
/**
2627
* Test that a collection is not null or empty.
@@ -65,7 +66,7 @@ public static void assertNoExceptionsOnGetters(final Object obj) throws Exceptio
6566

6667
if (readMethod != null) {
6768
try {
68-
readMethod.invoke(obj, new Object[] { });
69+
readMethod.invoke(obj, new Object[] {});
6970
} catch (final InvocationTargetException e) {
7071
final StringBuffer msg = new StringBuffer();
7172
msg.append("Failure: " + propertyDescriptor.getName());

common/src/test/java/com/ibm/watson/common/WatsonServiceTest.java

+5-4
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ private void loadProperties() {
130130
* Setup logging.
131131
*/
132132
private void setupLogging() {
133-
ch.qos.logback.classic.Logger root =
134-
(ch.qos.logback.classic.Logger) LoggerFactory.getLogger(org.slf4j.Logger.ROOT_LOGGER_NAME);
133+
ch.qos.logback.classic.Logger root = (ch.qos.logback.classic.Logger) LoggerFactory.getLogger(
134+
org.slf4j.Logger.ROOT_LOGGER_NAME);
135135
root.setLevel(ch.qos.logback.classic.Level.OFF);
136136
try {
137137
ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
@@ -190,13 +190,14 @@ public static <T> T loadFixture(String filename, Class<T> returnType) throws Fil
190190
*
191191
* @throws Exception the exception
192192
*/
193-
public void setUp() throws Exception { }
193+
public void setUp() throws Exception {
194+
}
194195

195196
/**
196197
* Fuzzy date checking.
197198
*/
198199

199-
private long tolerance = 5000; // 5 secs in ms
200+
private long tolerance = 5000; // 5 secs in ms
200201

201202
/** return `true` if ldate before rdate within tolerance. */
202203
public boolean fuzzyBefore(Date ldate, Date rdate) {

0 commit comments

Comments
 (0)