Skip to content

Commit d681f88

Browse files
author
Vladimir Kotal
committed
unchecked
1 parent da15a3a commit d681f88

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

suggester/src/test/java/org/opengrok/suggest/SuggesterProjectDataTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ public void testUnknownFieldIgnored() throws IOException {
294294
}
295295

296296
@Test
297+
@SuppressWarnings("unchecked") // for contains()
297298
public void testGetSearchCountMapSorted() throws IOException {
298299
addText(FIELD, "test1 test2");
299300
init(true);

suggester/src/test/java/org/opengrok/suggest/popular/impl/ChronicleMapAdapterTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ public void testResize() throws IOException {
9393
}
9494

9595
@Test
96+
@SuppressWarnings("unchecked") // for contains()
9697
public void testGetPopularityData() {
9798
Entry<BytesRef, Integer> e1 = new SimpleEntry<>(new BytesRef("test"), 1);
9899
Entry<BytesRef, Integer> e2 = new SimpleEntry<>(new BytesRef("test2"), 2);
@@ -106,6 +107,7 @@ public void testGetPopularityData() {
106107
}
107108

108109
@Test
110+
@SuppressWarnings("unchecked") // for contains()
109111
public void testGetPopularityPaging() {
110112
Entry<BytesRef, Integer> e1 = new SimpleEntry<>(new BytesRef("test"), 1);
111113
Entry<BytesRef, Integer> e2 = new SimpleEntry<>(new BytesRef("test2"), 2);

suggester/src/test/java/org/opengrok/suggest/query/customized/CustomSloppyPhraseScorerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949

5050
public class CustomSloppyPhraseScorerTest {
5151

52-
@SuppressWarnings("deprecation") // for RAMDirectory
52+
@SuppressWarnings({"deprecation", "unchecked"}) // for RAMDirectory, contains()
5353
public static void test(
5454
final int slop,
5555
final int offset,

0 commit comments

Comments
 (0)