Deal with compiler warnings
This commit is contained in:
@@ -28,7 +28,7 @@ import org.springframework.batch.item.ItemReaderException;
|
||||
*/
|
||||
public class AggregateItem<T> {
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@SuppressWarnings("rawtypes")
|
||||
private static final AggregateItem FOOTER = new AggregateItem<Object>(false, true) {
|
||||
@Override
|
||||
public Object getItem() throws ItemReaderException {
|
||||
@@ -45,7 +45,7 @@ public class AggregateItem<T> {
|
||||
return FOOTER;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@SuppressWarnings("rawtypes")
|
||||
private static final AggregateItem HEADER = new AggregateItem<Object>(true, false) {
|
||||
@Override
|
||||
public Object getItem() throws ItemReaderException {
|
||||
|
||||
@@ -78,6 +78,7 @@ public class OrderItemReaderTests {
|
||||
LineItem item = new LineItem();
|
||||
|
||||
// create mock mapper
|
||||
@SuppressWarnings("rawtypes")
|
||||
FieldSetMapper mapper = createMock(FieldSetMapper.class);
|
||||
// set how mapper should respond - set return values for mapper
|
||||
expect(mapper.mapFieldSet(headerFS)).andReturn(order);
|
||||
|
||||
Reference in New Issue
Block a user