Skip to content

Commit

Permalink
Fix use of raw parameterized class
Browse files Browse the repository at this point in the history
  • Loading branch information
dain committed Mar 13, 2019
1 parent 6043b1b commit 352054f
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public void testValuesAreReadInCorrectly()

write(tempFile, writerType, writerData);
RowBlock readBlock = read(tempFile, readerType);
List actual = (List) readerType.getObjectValue(SESSION, readBlock, 0);
List<?> actual = (List<?>) readerType.getObjectValue(SESSION, readBlock, 0);

assertEquals(actual.size(), readerFields.size());
assertEquals(actual.get(0), "field_a_value");
Expand All @@ -120,7 +120,7 @@ public void testReaderLowerCasesFieldNamesFromStream()

write(tempFile, writerType, writerData);
RowBlock readBlock = read(tempFile, readerType);
List actual = (List) readerType.getObjectValue(SESSION, readBlock, 0);
List<?> actual = (List<?>) readerType.getObjectValue(SESSION, readBlock, 0);

assertEquals(actual.size(), readerFields.size());
assertEquals(actual.get(0), "fieldAValue");
Expand All @@ -143,7 +143,7 @@ public void testReaderLowerCasesFieldNamesFromType()

write(tempFile, writerType, writerData);
RowBlock readBlock = read(tempFile, readerType);
List actual = (List) readerType.getObjectValue(SESSION, readBlock, 0);
List<?> actual = (List<?>) readerType.getObjectValue(SESSION, readBlock, 0);

assertEquals(actual.size(), readerFields.size());
assertEquals(actual.get(0), "fieldAValue");
Expand Down Expand Up @@ -183,7 +183,7 @@ public void testExtraFieldsInReader()

write(tempFile, writerType, writerData);
RowBlock readBlock = read(tempFile, readerType);
List actual = (List) readerType.getObjectValue(SESSION, readBlock, 0);
List<?> actual = (List<?>) readerType.getObjectValue(SESSION, readBlock, 0);

assertEquals(actual.size(), readerFields.size());
assertEquals(actual.get(0), "field_a_value");
Expand All @@ -207,7 +207,7 @@ public void testExtraFieldsInWriter()

write(tempFile, writerType, writerData);
RowBlock readBlock = read(tempFile, readerType);
List actual = (List) readerType.getObjectValue(SESSION, readBlock, 0);
List<?> actual = (List<?>) readerType.getObjectValue(SESSION, readBlock, 0);

assertEquals(actual.size(), readerFields.size());
assertEquals(actual.get(0), "field_a_value");
Expand Down

0 comments on commit 352054f

Please sign in to comment.