Fix 'Boxed value is unboxed and then immediately reboxed' warnings

As reported by FindBugs

Change-Id: I8c1746d2a813362f13a35737ffac1c2f161af197
This commit is contained in:
David Pursehouse
2015-03-13 14:48:37 +09:00
parent b4ea0fe5aa
commit 67e35278a9
8 changed files with 16 additions and 16 deletions

View File

@@ -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