Skip to content

Commit 5802ab6

Browse files
committed
build(SdkCommon): Add checkstyle to common class (and clean up subsequent complaint)
1 parent 40a845d commit 5802ab6

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

common/build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
import org.apache.tools.ant.filters.*
22

3+
apply plugin: 'checkstyle'
34
apply plugin: 'java'
45

6+
checkstyle {
7+
configFile = rootProject.file('checkstyle.xml')
8+
ignoreFailures = false
9+
}
10+
511
repositories {
612
mavenCentral()
713
}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +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() { }
18+
1719
private static String loadSdkVersion() {
1820
ClassLoader classLoader = SdkCommon.class.getClassLoader();
1921
InputStream inputStream = classLoader.getResourceAsStream("java-sdk-version.properties");

0 commit comments

Comments
 (0)