Explicit boxing

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@902960 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2010-01-25 19:47:41 +00:00
parent a28d94ea5d
commit f624a86dd1
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ import junit.framework.TestCase;
*/
public class CallableBackgroundInitializerTest extends TestCase {
/** Constant for the result of the call() invocation. */
private static final Integer RESULT = 42;
private static final Integer RESULT = Integer.valueOf(42);
/**
* Tries to create an instance without a Callable. This should cause an

View File

@ -187,7 +187,7 @@ public class TimedSemaphoreTest {
.createMock(ScheduledExecutorService.class);
ScheduledFuture<?> future = EasyMock.createMock(ScheduledFuture.class);
prepareStartTimer(service, future);
EasyMock.expect(future.cancel(false)).andReturn(true);
EasyMock.expect(Boolean.valueOf(future.cancel(false))).andReturn(Boolean.TRUE);
EasyMock.replay(service, future);
TimedSemaphoreTestImpl semaphore = new TimedSemaphoreTestImpl(service,
PERIOD, UNIT, LIMIT);