From 3c64fa1e62cba2ca6bf7d01b7bb663ee57c37657 Mon Sep 17 00:00:00 2001 From: Sean Owen Date: Wed, 14 Jun 2017 18:49:57 +0100 Subject: Fix Codacy warnings --- .../com/google/zxing/common/AbstractNegativeBlackBoxTestCase.java | 8 ++++---- .../test/java/com/google/zxing/oned/Code128WriterTestCase.java | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'core/src/test/java/com') diff --git a/core/src/test/java/com/google/zxing/common/AbstractNegativeBlackBoxTestCase.java b/core/src/test/java/com/google/zxing/common/AbstractNegativeBlackBoxTestCase.java index 0f258519a..ba37a9bec 100644 --- a/core/src/test/java/com/google/zxing/common/AbstractNegativeBlackBoxTestCase.java +++ b/core/src/test/java/com/google/zxing/common/AbstractNegativeBlackBoxTestCase.java @@ -45,6 +45,8 @@ public abstract class AbstractNegativeBlackBoxTestCase extends AbstractBlackBoxT private static final Logger log = Logger.getLogger(AbstractNegativeBlackBoxTestCase.class.getSimpleName()); + private final List testResults; + private static final class TestResult { private final int falsePositivesAllowed; private final float rotation; @@ -54,17 +56,15 @@ public abstract class AbstractNegativeBlackBoxTestCase extends AbstractBlackBoxT this.rotation = rotation; } - public int getFalsePositivesAllowed() { + int getFalsePositivesAllowed() { return falsePositivesAllowed; } - public float getRotation() { + float getRotation() { return rotation; } } - private final List testResults; - // Use the multiformat reader to evaluate all decoders in the system. protected AbstractNegativeBlackBoxTestCase(String testBasePathSuffix) { super(testBasePathSuffix, new MultiFormatReader(), null); diff --git a/core/src/test/java/com/google/zxing/oned/Code128WriterTestCase.java b/core/src/test/java/com/google/zxing/oned/Code128WriterTestCase.java index bfb559d6e..312128fd7 100644 --- a/core/src/test/java/com/google/zxing/oned/Code128WriterTestCase.java +++ b/core/src/test/java/com/google/zxing/oned/Code128WriterTestCase.java @@ -44,7 +44,7 @@ public class Code128WriterTestCase extends Assert { private Code128Reader reader; @Before - public void setup() { + public void setUp() { writer = new Code128Writer(); reader = new Code128Reader(); } -- cgit v1.2.3