added superfluous cast to get around ambiguity problem with some compilers

This commit is contained in:
Juergen Hoeller 2009-08-27 10:23:04 +00:00
parent 015284af7c
commit fb7fd4bb52
1 changed files with 4 additions and 2 deletions

View File

@ -28,7 +28,9 @@ import org.springframework.core.io.ClassPathResource;
import org.springframework.oxm.AbstractUnmarshallerTests; import org.springframework.oxm.AbstractUnmarshallerTests;
import org.springframework.oxm.Unmarshaller; import org.springframework.oxm.Unmarshaller;
/** @author Arjen Poutsma */ /**
* @author Arjen Poutsma
*/
public class CastorUnmarshallerTests extends AbstractUnmarshallerTests { public class CastorUnmarshallerTests extends AbstractUnmarshallerTests {
@Override @Override
@ -43,7 +45,7 @@ public class CastorUnmarshallerTests extends AbstractUnmarshallerTests {
protected void testFlight(Object o) { protected void testFlight(Object o) {
Flight flight = (Flight) o; Flight flight = (Flight) o;
assertNotNull("Flight is null", flight); assertNotNull("Flight is null", flight);
assertEquals("Number is invalid", Long.valueOf(42L), flight.getNumber()); assertEquals("Number is invalid", 42L, (long) flight.getNumber());
} }
@Override @Override