Fix boxing warnings

Change-Id: Idf4887a99e87c375ec32e2fd289cfce82d78cbce
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
This commit is contained in:
Matthias Sohn 2021-02-16 01:13:35 +01:00
parent 64cbea8a97
commit 3b94ba6c24
2 changed files with 2 additions and 2 deletions

View File

@ -487,7 +487,7 @@ public void seekPastWithSeekRefsWithPrefix() throws IOException {
public void seekPastWithLotsOfRefs() throws IOException {
Ref[] refs = new Ref[500];
for (int i = 1; i <= 500; i++) {
refs[i - 1] = ref(String.format("refs/%d", i), i);
refs[i - 1] = ref(String.format("refs/%d", Integer.valueOf(i)), i);
}
ReftableReader t = read(write(refs));
try (RefCursor rc = t.allRefs()) {

View File

@ -370,7 +370,7 @@ private long nextUpdateIndex() throws IOException {
private String filename(long low, long high) {
return String.format("%012x-%012x-%08x", //$NON-NLS-1$
Long.valueOf(low), Long.valueOf(high),
random.nextInt());
Integer.valueOf(random.nextInt()));
}
/**