diff options
| author | Sean Owen <sowen@cloudera.com> | 2017-06-14 20:49:57 +0300 |
|---|---|---|
| committer | Sean Owen <sowen@cloudera.com> | 2017-06-14 20:50:03 +0300 |
| commit | 3c64fa1e62cba2ca6bf7d01b7bb663ee57c37657 (patch) | |
| tree | 1c17065a1dc381646adadc1dff34b7d3560e1d10 /core/src/test/java | |
| parent | eaa34c3b7e9465499346eb8ad7c3bdf07df6ab41 (diff) | |
| download | zxing-3c64fa1e62cba2ca6bf7d01b7bb663ee57c37657.tar.xz | |
Fix Codacy warnings
Diffstat (limited to 'core/src/test/java')
| -rw-r--r-- | core/src/test/java/com/google/zxing/common/AbstractNegativeBlackBoxTestCase.java | 8 | ||||
| -rw-r--r-- | core/src/test/java/com/google/zxing/oned/Code128WriterTestCase.java | 2 |
2 files changed, 5 insertions, 5 deletions
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<TestResult> 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<TestResult> 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(); } |
