Fix 'Boxed value is unboxed and then immediately reboxed' warnings
As reported by FindBugs Change-Id: I8c1746d2a813362f13a35737ffac1c2f161af197
This commit is contained in:
@@ -187,7 +187,7 @@ public abstract class AbstractPushForReview extends AbstractDaemonTest {
|
||||
LabelInfo cr = ci.labels.get("Code-Review");
|
||||
assertThat(cr.all).hasSize(1);
|
||||
assertThat(cr.all.get(0).name).isEqualTo("Administrator");
|
||||
assertThat(cr.all.get(0).value.intValue()).is(1);
|
||||
assertThat(cr.all.get(0).value).is(1);
|
||||
|
||||
PushOneCommit push =
|
||||
pushFactory.create(db, admin.getIdent(), PushOneCommit.SUBJECT,
|
||||
@@ -198,7 +198,7 @@ public abstract class AbstractPushForReview extends AbstractDaemonTest {
|
||||
cr = ci.labels.get("Code-Review");
|
||||
assertThat(cr.all).hasSize(1);
|
||||
assertThat(cr.all.get(0).name).isEqualTo("Administrator");
|
||||
assertThat(cr.all.get(0).value.intValue()).is(2);
|
||||
assertThat(cr.all.get(0).value).is(2);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Reference in New Issue
Block a user