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/28 15:28:26 UTC
[commons-vfs] 02/02: Fix Checkstyle FinalClass and 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 bd0b64cd73cde8ee142b6d3c886e7234dacb0a10
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Nov 28 10:28:21 2021 -0500
Fix Checkstyle FinalClass and MagicNumber.
---
.../src/main/java/org/apache/commons/vfs2/util/URIBitSets.java | 2 +-
.../src/main/java/org/apache/commons/vfs2/util/URIUtils.java | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
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 f373394..2206922 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
@@ -879,7 +879,7 @@ final class URIBitSets {
ALLOWED_FRAGMENT.clear('%');
}
- private static BitSet createBitSet() {
+ static BitSet createBitSet() {
return new BitSet(NBITS);
}
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/URIUtils.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/URIUtils.java
index f177e0a..1df6a9c 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/URIUtils.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/URIUtils.java
@@ -46,7 +46,7 @@ public class URIUtils {
* but it should work with any different HTTP backend provider implementations.
* </p>
*/
- private static class EncodingUtils {
+ private static final class EncodingUtils {
/**
* Converts the byte array of ASCII characters to a string. This method is
@@ -103,11 +103,11 @@ public class URIUtils {
* via Http Client v3 library any more.
* </p>
*/
- private static class URLCodecUtils {
+ private static final class URLCodecUtils {
private static final byte ESCAPE_CHAR = '%';
- private static final BitSet WWW_FORM_URL_SAFE = new BitSet(256);
+ private static final BitSet WWW_FORM_URL_SAFE = URIBitSets.createBitSet();
// Static initializer for www_form_url
static {