From 170bdc33a3afccf451047ff765be090c2040b1ac Mon Sep 17 00:00:00 2001 From: Daniel Naber Date: Thu, 5 May 2005 22:46:09 +0000 Subject: [PATCH] call static methods via class, not via object (avoids warning in Eclipse) git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@168454 13f79535-47bb-0310-9956-ffa450edef68 --- src/test/org/apache/lucene/search/CheckHits.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/org/apache/lucene/search/CheckHits.java b/src/test/org/apache/lucene/search/CheckHits.java index e883fa538ab..985f1aabcb2 100644 --- a/src/test/org/apache/lucene/search/CheckHits.java +++ b/src/test/org/apache/lucene/search/CheckHits.java @@ -44,15 +44,15 @@ public class CheckHits { actual.add(new Integer(hits.id(i))); } - testCase.assertEquals(query.toString(defaultFieldName), correct, actual); + TestCase.assertEquals(query.toString(defaultFieldName), correct, actual); } /** Tests that a Hits has an expected order of documents */ public static void checkDocIds(String mes, int[] results, Hits hits, TestCase testCase) throws IOException { - testCase.assertEquals(mes + " nr of hits", results.length, hits.length()); + TestCase.assertEquals(mes + " nr of hits", results.length, hits.length()); for (int i = 0; i < results.length; i++) { - testCase.assertEquals(mes + " doc nrs for hit " + i, results[i], hits.id(i)); + TestCase.assertEquals(mes + " doc nrs for hit " + i, results[i], hits.id(i)); } } @@ -73,7 +73,7 @@ public class CheckHits { final float scoreTolerance = 1.0e-7f; for (int i = 0; i < results.length; i++) { if (Math.abs(hits1.score(i) - hits2.score(i)) > scoreTolerance) { - testCase.fail("Hit " + i + ", doc nrs " + hits1.id(i) + " and " + hits2.id(i) + TestCase.fail("Hit " + i + ", doc nrs " + hits1.id(i) + " and " + hits2.id(i) + "\nunequal scores: " + hits1.score(i) + "\n and: " + hits2.score(i) + "\nfor query:" + query.toString());