diff options
author | Jonathan Nieder <jrn@google.com> | 2020-07-31 19:01:35 -0700 |
---|---|---|
committer | Jonathan Nieder <jrn@google.com> | 2020-07-31 19:01:35 -0700 |
commit | 86aa6deff4b452881876c78aaab09ddbb5c7531b (patch) | |
tree | cd0e5f35306e5c0ce2ca3afeec18128400b29ec2 /org.eclipse.jgit | |
parent | 3c807e01580680106b7db0b1aab60e3b5d010ea4 (diff) | |
download | jgit-86aa6deff4b452881876c78aaab09ddbb5c7531b.tar.gz jgit-86aa6deff4b452881876c78aaab09ddbb5c7531b.zip |
FilterSpec: Use BigInteger.ZERO instead of valueOf(0)
This just simplifies a bit by avoiding an unneeded method call.
Change-Id: I6d8d2fc512d8f8a82da73c355017d0abf833a13b
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/transport/FilterSpec.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/FilterSpec.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/FilterSpec.java index 4353c15243..a8cf849fed 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/FilterSpec.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/FilterSpec.java @@ -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 @@ public final class FilterSpec { } static ObjectTypes allow(int... types) { - BigInteger bits = BigInteger.valueOf(0); + BigInteger bits = ZERO; for (int type : types) { bits = bits.setBit(type); } |