Deal with compiler warnings

This commit is contained in:
Dave Syer
2010-11-22 14:44:37 +00:00
parent 28eb5b02d3
commit 3dd0c7f776
26 changed files with 74 additions and 99 deletions

View File

@@ -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 {

View File

@@ -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);