diff options
author | Olli Virtanen <olli.virtanen@oath.com> | 2018-08-30 10:08:02 +0200 |
---|---|---|
committer | Olli Virtanen <olli.virtanen@oath.com> | 2018-08-30 10:08:02 +0200 |
commit | 1f554f8bb745cb3b5ea60e9dd2aafd10ceb1f22e (patch) | |
tree | 783daf42f9778f07a38d10c602a7d529215e7f5a /container-search/src/test/java/com/yahoo | |
parent | 663d49621866149e74258d38810d5df8d836f30f (diff) |
Clean issues/warnings reported in Eclipse IDE
Diffstat (limited to 'container-search/src/test/java/com/yahoo')
-rw-r--r-- | container-search/src/test/java/com/yahoo/prelude/hitfield/test/JSONStringTestCase.java | 4 | ||||
-rw-r--r-- | container-search/src/test/java/com/yahoo/search/dispatch/FillTestCase.java | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/container-search/src/test/java/com/yahoo/prelude/hitfield/test/JSONStringTestCase.java b/container-search/src/test/java/com/yahoo/prelude/hitfield/test/JSONStringTestCase.java index 09a439c7bc9..18231785a26 100644 --- a/container-search/src/test/java/com/yahoo/prelude/hitfield/test/JSONStringTestCase.java +++ b/container-search/src/test/java/com/yahoo/prelude/hitfield/test/JSONStringTestCase.java @@ -329,8 +329,8 @@ public class JSONStringTestCase { String rendered = js.renderFromInspector(); assertTrue(-1 < rendered.indexOf(f1)); - int offsetF2; - assertTrue(-1 < (offsetF2 = rendered.indexOf(f2))); + int offsetF2 = rendered.indexOf(f2); + assertTrue(-1 < offsetF2); offsetF2 += f2.length(); assertTrue(-1 < rendered.indexOf(f2_1, offsetF2)); assertTrue(-1 < rendered.indexOf(f2_2, offsetF2)); diff --git a/container-search/src/test/java/com/yahoo/search/dispatch/FillTestCase.java b/container-search/src/test/java/com/yahoo/search/dispatch/FillTestCase.java index 0191b1a799b..5e3e0dc301e 100644 --- a/container-search/src/test/java/com/yahoo/search/dispatch/FillTestCase.java +++ b/container-search/src/test/java/com/yahoo/search/dispatch/FillTestCase.java @@ -2,7 +2,6 @@ package com.yahoo.search.dispatch; import com.yahoo.compress.CompressionType; -import com.yahoo.log.event.Collection; import com.yahoo.prelude.fastsearch.DocsumDefinition; import com.yahoo.prelude.fastsearch.DocsumDefinitionSet; import com.yahoo.prelude.fastsearch.DocsumField; |