Fixing squid:S1873 static final arrays should be "private"
diff --git a/src/main/java/com/fasterxml/jackson/core/io/CharTypes.java b/src/main/java/com/fasterxml/jackson/core/io/CharTypes.java
index 0216fe0..4c616fc 100644
--- a/src/main/java/com/fasterxml/jackson/core/io/CharTypes.java
+++ b/src/main/java/com/fasterxml/jackson/core/io/CharTypes.java
@@ -19,7 +19,7 @@
* Lookup table used for determining which input characters
* need special handling when contained in text segment.
*/
- final static int[] sInputCodes;
+ private final static int[] sInputCodes;
static {
/* 96 would do for most cases (backslash is ASCII 94)
* but if we want to do lookups by raw bytes it's better
@@ -40,7 +40,7 @@
* Additionally we can combine UTF-8 decoding info into similar
* data table.
*/
- final static int[] sInputCodesUTF8;
+ private final static int[] sInputCodesUTF8;
static {
final int[] table = new int[sInputCodes.length];
System.arraycopy(sInputCodes, 0, table, 0, table.length);
@@ -70,7 +70,7 @@
* Basically this is list of 8-bit ASCII characters that are legal
* as part of Javascript identifier
*/
- final static int[] sInputCodesJsNames;
+ private final static int[] sInputCodesJsNames;
static {
final int[] table = new int[256];
// Default is "not a name char", mark ones that are
@@ -97,7 +97,7 @@
* code as ok. They will be validated at a later point, when decoding
* name
*/
- final static int[] sInputCodesUtf8JsNames;
+ private final static int[] sInputCodesUtf8JsNames;
static {
final int[] table = new int[256];
// start with 8-bit JS names
@@ -110,7 +110,7 @@
* Decoding table used to quickly determine characters that are
* relevant within comment content.
*/
- final static int[] sInputCodesComment;
+ private final static int[] sInputCodesComment;
static {
final int[] buf = new int[256];
// but first: let's start with UTF-8 multi-byte markers:
@@ -130,7 +130,7 @@
*
* @since 2.3
*/
- final static int[] sInputCodesWS;
+ private final static int[] sInputCodesWS;
static {
// but first: let's start with UTF-8 multi-byte markers:
final int[] buf = new int[256];
@@ -153,7 +153,7 @@
* Lookup table used for determining which output characters in
* 7-bit ASCII range need to be quoted.
*/
- final static int[] sOutputEscapes128;
+ private final static int[] sOutputEscapes128;
static {
int[] table = new int[128];
// Control chars need generic escape sequence
@@ -180,7 +180,7 @@
* range. For actual hex digits, contains corresponding value;
* for others -1.
*/
- final static int[] sHexValues = new int[128];
+ private final static int[] sHexValues = new int[128];
static {
Arrays.fill(sHexValues, -1);
for (int i = 0; i < 10; ++i) {
diff --git a/src/main/java/com/fasterxml/jackson/core/io/NumberOutput.java b/src/main/java/com/fasterxml/jackson/core/io/NumberOutput.java
index 523c401..0cdf8c7 100644
--- a/src/main/java/com/fasterxml/jackson/core/io/NumberOutput.java
+++ b/src/main/java/com/fasterxml/jackson/core/io/NumberOutput.java
@@ -14,8 +14,8 @@
final static String SMALLEST_LONG = String.valueOf(Long.MIN_VALUE);
- final static char[] LEAD_3 = new char[4000];
- final static char[] FULL_3 = new char[4000];
+ private final static char[] LEAD_3 = new char[4000];
+ private final static char[] FULL_3 = new char[4000];
static {
/* Let's fill it with NULLs for ignorable leading digits,
* and digit chars for others
@@ -42,17 +42,17 @@
}
}
- final static byte[] FULL_TRIPLETS_B = new byte[4000];
+ private final static byte[] FULL_TRIPLETS_B = new byte[4000];
static {
for (int i = 0; i < 4000; ++i) {
FULL_TRIPLETS_B[i] = (byte) FULL_3[i];
}
}
- final static String[] sSmallIntStrs = new String[] {
+ private final static String[] sSmallIntStrs = new String[] {
"0","1","2","3","4","5","6","7","8","9","10"
};
- final static String[] sSmallIntStrs2 = new String[] {
+ private final static String[] sSmallIntStrs2 = new String[] {
"-1","-2","-3","-4","-5","-6","-7","-8","-9","-10"
};
diff --git a/src/main/java/com/fasterxml/jackson/core/json/UTF8JsonGenerator.java b/src/main/java/com/fasterxml/jackson/core/json/UTF8JsonGenerator.java
index 70f17d8..ae4adeb 100644
--- a/src/main/java/com/fasterxml/jackson/core/json/UTF8JsonGenerator.java
+++ b/src/main/java/com/fasterxml/jackson/core/json/UTF8JsonGenerator.java
@@ -27,7 +27,7 @@
// intermediate copies only made up to certain length...
private final static int MAX_BYTES_TO_BUFFER = 512;
- final static byte[] HEX_CHARS = CharTypes.copyHexBytes();
+ private final static byte[] HEX_CHARS = CharTypes.copyHexBytes();
private final static byte[] NULL_BYTES = { 'n', 'u', 'l', 'l' };
private final static byte[] TRUE_BYTES = { 't', 'r', 'u', 'e' };