You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2021/11/27 21:24:35 UTC
[commons-vfs] 02/05: Fix Checkstyle MagicNumber.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-vfs.git
commit 9e79018bb48459de82bce4ae183f7b82510710fa
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sat Nov 27 16:17:52 2021 -0500
Fix Checkstyle MagicNumber.
---
.../src/main/java/org/apache/commons/vfs2/util/URIBitSets.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/URIBitSets.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/URIBitSets.java
index dff37b3..f373394 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/URIBitSets.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/URIBitSets.java
@@ -30,6 +30,8 @@ import org.apache.commons.vfs2.provider.GenericURLFileName;
*/
final class URIBitSets {
+ private static final int NBITS = 256;
+
// ---------------------- Generous characters for each component validation
/**
@@ -878,7 +880,7 @@ final class URIBitSets {
}
private static BitSet createBitSet() {
- return new BitSet(256);
+ return new BitSet(NBITS);
}
private URIBitSets() {