diff options
author | 2017-09-19 21:31:18 +0530 | |
---|---|---|
committer | 2017-09-22 04:14:50 +0000 | |
commit | 699852522db59909e8a6cd0fc4f9e592ed800542 (patch) | |
tree | f76d54d5c3d7b3131dc59e66df1fa9875271b08b /dcae-analytics-test/src | |
parent | 2c0f2bface56c0cd36bdb1707bc5648792b2e712 (diff) |
Fixing checkstyle and javadoc errors
(followed:onap-java-style) removed redundant code. merged all changes in one commit for one repo.
Issue-Id:DCAEGEN2-92
Change-Id: I072e02dbedd93c01fcf3a297170cb2f7286b3b72
Signed-off-by: Bharat saraswal <bharat.saraswal@huawei.com>
Diffstat (limited to 'dcae-analytics-test/src')
3 files changed, 4 insertions, 6 deletions
diff --git a/dcae-analytics-test/src/main/java/org/openecomp/dcae/apod/analytics/test/BaseDCAEAnalyticsCommonTest.java b/dcae-analytics-test/src/main/java/org/openecomp/dcae/apod/analytics/test/BaseDCAEAnalyticsCommonTest.java index c1d939e..4698f21 100644 --- a/dcae-analytics-test/src/main/java/org/openecomp/dcae/apod/analytics/test/BaseDCAEAnalyticsCommonTest.java +++ b/dcae-analytics-test/src/main/java/org/openecomp/dcae/apod/analytics/test/BaseDCAEAnalyticsCommonTest.java @@ -86,8 +86,8 @@ abstract class BaseDCAEAnalyticsCommonTest { final String newLine = System.getProperty("line.separator"); String line = reader.readLine(); while (line != null) { - result.append(line); - result.append(newLine); + result.append(line) + .append(newLine); line = reader.readLine(); } jsonFileInputStream.close(); diff --git a/dcae-analytics-test/src/main/java/org/openecomp/dcae/apod/analytics/test/BaseDCAEAnalyticsUnitTest.java b/dcae-analytics-test/src/main/java/org/openecomp/dcae/apod/analytics/test/BaseDCAEAnalyticsUnitTest.java index 84feb1d..ddc996a 100644 --- a/dcae-analytics-test/src/main/java/org/openecomp/dcae/apod/analytics/test/BaseDCAEAnalyticsUnitTest.java +++ b/dcae-analytics-test/src/main/java/org/openecomp/dcae/apod/analytics/test/BaseDCAEAnalyticsUnitTest.java @@ -26,6 +26,4 @@ package org.openecomp.dcae.apod.analytics.test; * @author Rajiv Singla . Creation Date: 10/6/2016. */ public abstract class BaseDCAEAnalyticsUnitTest extends BaseDCAEAnalyticsCommonTest { - - } diff --git a/dcae-analytics-test/src/main/java/org/openecomp/dcae/apod/analytics/test/runner/GuiceJUnitRunner.java b/dcae-analytics-test/src/main/java/org/openecomp/dcae/apod/analytics/test/runner/GuiceJUnitRunner.java index 6c6071e..6353442 100644 --- a/dcae-analytics-test/src/main/java/org/openecomp/dcae/apod/analytics/test/runner/GuiceJUnitRunner.java +++ b/dcae-analytics-test/src/main/java/org/openecomp/dcae/apod/analytics/test/runner/GuiceJUnitRunner.java @@ -40,7 +40,7 @@ public class GuiceJUnitRunner extends BlockJUnit4ClassRunner { private static final Logger LOG = LoggerFactory.getLogger(GuiceJUnitRunner.class); - private Injector injector; + private final Injector injector; public GuiceJUnitRunner(Class<?> klass) throws InitializationError { super(klass); @@ -71,7 +71,7 @@ public class GuiceJUnitRunner extends BlockJUnit4ClassRunner { Module[] modules = new Module[classes.length]; for (int i = 0; i < classes.length; i++) { try { - modules[i] = (Module) (classes[i]).newInstance(); + modules[i] = (Module) classes[i].newInstance(); } catch (InstantiationException | IllegalAccessException e) { throw new InitializationError(e); } |