Explicit boxing

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

View File

@ -168,7 +168,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);