FilterSpec: Use BigInteger.ZERO instead of valueOf(0)

This just simplifies a bit by avoiding an unneeded method call.

Change-Id: I6d8d2fc512d8f8a82da73c355017d0abf833a13b
This commit is contained in:
Jonathan Nieder 2020-07-31 19:01:35 -07:00
parent 3c807e0158
commit 86aa6deff4
1 changed files with 2 additions and 1 deletions

View File

@ -10,6 +10,7 @@
package org.eclipse.jgit.transport;
import static java.math.BigInteger.ZERO;
import static java.util.Objects.requireNonNull;
import static org.eclipse.jgit.lib.Constants.OBJ_BLOB;
import static org.eclipse.jgit.lib.Constants.OBJ_COMMIT;
@ -43,7 +44,7 @@ private ObjectTypes(BigInteger val) {
}
static ObjectTypes allow(int... types) {
BigInteger bits = BigInteger.valueOf(0);
BigInteger bits = ZERO;
for (int type : types) {
bits = bits.setBit(type);
}