added superfluous cast to get around ambiguity problem with some compilers

master
Juergen Hoeller 15 years ago
parent 015284af7c
commit fb7fd4bb52
  1. 6
      org.springframework.oxm/src/test/java/org/springframework/oxm/castor/CastorUnmarshallerTests.java

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

Loading…
Cancel
Save