@@ -447,7 +447,7 @@ private static RMAppAttempt createRMAppAttempt(boolean unmanagedAMAttempt) {
447
447
RMAppAttempt appAttempt = mock (RMAppAttempt .class );
448
448
when (appAttempt .getAppAttemptId ()).thenReturn (appAttemptId );
449
449
when (appAttempt .getHost ()).thenReturn ("test host" );
450
- when (appAttempt .getRpcPort ()).thenReturn (Integer . valueOf ( -100 ) );
450
+ when (appAttempt .getRpcPort ()).thenReturn (-100 );
451
451
if (!unmanagedAMAttempt ) {
452
452
Container container = mock (Container .class );
453
453
when (container .getId ())
@@ -468,9 +468,9 @@ private static RMApp createRMApp(ApplicationId appId) {
468
468
when (rmApp .getApplicationType ()).thenReturn ("test app type" );
469
469
when (rmApp .getUser ()).thenReturn ("testUser" );
470
470
when (rmApp .getQueue ()).thenReturn ("test queue" );
471
- when (rmApp .getSubmitTime ()).thenReturn (Long . valueOf ( Integer .MAX_VALUE + 1L ) );
472
- when (rmApp .getStartTime ()).thenReturn (Long . valueOf ( Integer .MAX_VALUE + 2L ) );
473
- when (rmApp .getFinishTime ()).thenReturn (Long . valueOf ( Integer .MAX_VALUE + 3L ) );
471
+ when (rmApp .getSubmitTime ()).thenReturn (Integer .MAX_VALUE + 1L );
472
+ when (rmApp .getStartTime ()).thenReturn (Integer .MAX_VALUE + 2L );
473
+ when (rmApp .getFinishTime ()).thenReturn (Integer .MAX_VALUE + 3L );
474
474
when (rmApp .getDiagnostics ()).thenReturn (
475
475
new StringBuilder ("test diagnostics info" ));
476
476
RMAppAttempt appAttempt = mock (RMAppAttempt .class );
@@ -481,12 +481,12 @@ private static RMApp createRMApp(ApplicationId appId) {
481
481
FinalApplicationStatus .UNDEFINED );
482
482
Map <String , Long > resourceMap = new HashMap <>();
483
483
resourceMap
484
- .put (ResourceInformation .MEMORY_MB .getName (), Long . valueOf (( long ) Integer .MAX_VALUE ) );
485
- resourceMap .put (ResourceInformation .VCORES .getName (), Long .valueOf ( Long . MAX_VALUE ) );
484
+ .put (ResourceInformation .MEMORY_MB .getName (), ( long ) Integer .MAX_VALUE );
485
+ resourceMap .put (ResourceInformation .VCORES .getName (), Long .MAX_VALUE );
486
486
Map <String , Long > preemptedMap = new HashMap <>();
487
487
preemptedMap
488
- .put (ResourceInformation .MEMORY_MB .getName (), Long . valueOf (( long ) Integer .MAX_VALUE ) );
489
- preemptedMap .put (ResourceInformation .VCORES .getName (), Long .valueOf ( Long . MAX_VALUE ) );
488
+ .put (ResourceInformation .MEMORY_MB .getName (), ( long ) Integer .MAX_VALUE );
489
+ preemptedMap .put (ResourceInformation .VCORES .getName (), Long .MAX_VALUE );
490
490
when (rmApp .getRMAppMetrics ()).thenReturn (
491
491
new RMAppMetrics (Resource .newInstance (0 , 0 ), 0 , 0 , resourceMap ,
492
492
preemptedMap , 0 ));
0 commit comments