From 90ca407e778f1f266e70474c50673d62a5d3d602 Mon Sep 17 00:00:00 2001 From: Shai Erera Date: Sat, 25 Sep 2010 20:55:36 +0000 Subject: [PATCH] removed Suppress(unused) which caused the build to fail when running with IBM Java 5 git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1001315 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/lucene/search/TestPositionIncrement.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lucene/src/test/org/apache/lucene/search/TestPositionIncrement.java b/lucene/src/test/org/apache/lucene/search/TestPositionIncrement.java index 03deb2ab8cb..bcfa42680dd 100644 --- a/lucene/src/test/org/apache/lucene/search/TestPositionIncrement.java +++ b/lucene/src/test/org/apache/lucene/search/TestPositionIncrement.java @@ -287,12 +287,10 @@ public class TestPositionIncrement extends LuceneTestCase { } Collection payloads = pspans.getPayload(); sawZero |= pspans.start() == 0; - for (@SuppressWarnings("unused") byte[] bytes : payloads) { + for (byte[] bytes : payloads) { count++; - if (!VERBOSE) { - // do nothing - } else { - System.out.println(" payload: " + new String((byte[]) bytes)); + if (VERBOSE) { + System.out.println(" payload: " + new String(bytes)); } } }