From fb7fd4bb5217d636d562e3b447d3e70a862ef04d Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Thu, 27 Aug 2009 10:23:04 +0000 Subject: [PATCH] added superfluous cast to get around ambiguity problem with some compilers --- .../springframework/oxm/castor/CastorUnmarshallerTests.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/org.springframework.oxm/src/test/java/org/springframework/oxm/castor/CastorUnmarshallerTests.java b/org.springframework.oxm/src/test/java/org/springframework/oxm/castor/CastorUnmarshallerTests.java index d79ab94c39..4e3e8c983b 100644 --- a/org.springframework.oxm/src/test/java/org/springframework/oxm/castor/CastorUnmarshallerTests.java +++ b/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