@@ -24,21 +24,21 @@ public class CsvEncoder
24
24
// Default set of escaped characters (none)
25
25
private static final int [] sOutputEscapes = new int [0 ];
26
26
27
- final protected static char [] HEX_CHARS = CharTypes .copyHexChars ();
27
+ protected final static char [] HEX_CHARS = CharTypes .copyHexChars (true );
28
28
29
29
/**
30
30
* As an optimization we try coalescing short writes into
31
31
* buffer; but pass longer directly.
32
32
*/
33
- final protected static int SHORT_WRITE = 32 ;
33
+ protected final static int SHORT_WRITE = 32 ;
34
34
35
35
/**
36
36
* Also: only do check for optional quotes for short
37
37
* values; longer ones will always be quoted.
38
38
*/
39
- final protected static int MAX_QUOTE_CHECK = 24 ;
39
+ protected final static int MAX_QUOTE_CHECK = 24 ;
40
40
41
- final protected BufferedValue [] NO_BUFFERED = new BufferedValue [0 ];
41
+ protected final BufferedValue [] NO_BUFFERED = new BufferedValue [0 ];
42
42
43
43
private final static char [] TRUE_CHARS = "true" .toCharArray ();
44
44
private final static char [] FALSE_CHARS = "false" .toCharArray ();
@@ -55,32 +55,32 @@ public class CsvEncoder
55
55
/**********************************************************************
56
56
*/
57
57
58
- final protected IOContext _ioContext ;
58
+ protected final IOContext _ioContext ;
59
59
60
60
/**
61
61
* Underlying {@link Writer} used for output.
62
62
*/
63
- final protected Writer _out ;
63
+ protected final Writer _out ;
64
64
65
- final protected char _cfgColumnSeparator ;
65
+ protected final char _cfgColumnSeparator ;
66
66
67
- final protected int _cfgQuoteCharacter ;
67
+ protected final int _cfgQuoteCharacter ;
68
68
69
- final protected int _cfgEscapeCharacter ;
69
+ protected final int _cfgEscapeCharacter ;
70
70
71
- final protected char [] _cfgLineSeparator ;
71
+ protected final char [] _cfgLineSeparator ;
72
72
73
- final protected char [] _cfgNullValue ;
73
+ protected final char [] _cfgNullValue ;
74
74
75
- final protected int _cfgLineSeparatorLength ;
75
+ protected final int _cfgLineSeparatorLength ;
76
76
77
- final protected int _cfgMaxQuoteCheckChars ;
77
+ protected final int _cfgMaxQuoteCheckChars ;
78
78
79
79
/**
80
80
* Lowest-valued character that is safe to output without using
81
81
* quotes around value, NOT including possible escape character.
82
82
*/
83
- final protected int _cfgMinSafeChar ;
83
+ protected final int _cfgMinSafeChar ;
84
84
85
85
protected int _csvFeatures ;
86
86
@@ -90,7 +90,7 @@ public class CsvEncoder
90
90
*/
91
91
protected boolean _cfgOptimalQuoting ;
92
92
93
- final protected boolean _cfgAllowsComments ;
93
+ protected final boolean _cfgAllowsComments ;
94
94
95
95
protected boolean _cfgIncludeMissingTail ;
96
96
0 commit comments