@@ -156,37 +156,37 @@ Object doit(PByteArray bytes,
156
156
}
157
157
}
158
158
159
- private final static char TYPE_NULL = '0' ;
160
- private final static char TYPE_NONE = 'N' ;
161
- private final static char TYPE_NOVALUE = 'n' ;
162
- private final static char TYPE_FALSE = 'F' ;
163
- private final static char TYPE_TRUE = 'T' ;
164
- private final static char TYPE_STOPITER = 'S' ;
165
- private final static char TYPE_ELLIPSIS = '.' ;
166
- private final static char TYPE_INT = 'i' ;
167
- private final static char TYPE_INT64 = 'I' ; // just for backward compatibility with CPython
168
- private final static char TYPE_FLOAT = 'f' ;
159
+ private static final char TYPE_NULL = '0' ;
160
+ private static final char TYPE_NONE = 'N' ;
161
+ private static final char TYPE_NOVALUE = 'n' ;
162
+ private static final char TYPE_FALSE = 'F' ;
163
+ private static final char TYPE_TRUE = 'T' ;
164
+ private static final char TYPE_STOPITER = 'S' ;
165
+ private static final char TYPE_ELLIPSIS = '.' ;
166
+ private static final char TYPE_INT = 'i' ;
167
+ private static final char TYPE_INT64 = 'I' ; // just for backward compatibility with CPython
168
+ private static final char TYPE_FLOAT = 'f' ;
169
169
// private final static char TYPE_BINARY_FLOAT = 'g';
170
- private final static char TYPE_COMPLEX = 'x' ;
170
+ private static final char TYPE_COMPLEX = 'x' ;
171
171
// private final static char TYPE_BINARY_COMPLEX = 'y';
172
- private final static char TYPE_LONG = 'l' ;
173
- private final static char TYPE_PINT = 'L' ;
174
- private final static char TYPE_STRING = 's' ;
172
+ private static final char TYPE_LONG = 'l' ;
173
+ private static final char TYPE_PINT = 'L' ;
174
+ private static final char TYPE_STRING = 's' ;
175
175
// private final static char TYPE_INTERNED = 't';
176
176
// private final static char TYPE_STRINGREF = 'R';
177
- private final static char TYPE_BYTESLIKE = 'b' ;
178
- private final static char TYPE_TUPLE = '(' ;
179
- private final static char TYPE_LIST = '[' ;
180
- private final static char TYPE_DICT = '{' ;
181
- private final static char TYPE_CODE = 'c' ;
177
+ private static final char TYPE_BYTESLIKE = 'b' ;
178
+ private static final char TYPE_TUPLE = '(' ;
179
+ private static final char TYPE_LIST = '[' ;
180
+ private static final char TYPE_DICT = '{' ;
181
+ private static final char TYPE_CODE = 'c' ;
182
182
// private final static char TYPE_UNICODE = 'u';
183
- private final static char TYPE_UNKNOWN = '?' ;
184
- private final static char TYPE_SET = '<' ;
185
- private final static char TYPE_FROZENSET = '>' ;
186
- private final static int MAX_MARSHAL_STACK_DEPTH = 2000 ;
187
- private final static int CURRENT_VERSION = 1 ;
183
+ private static final char TYPE_UNKNOWN = '?' ;
184
+ private static final char TYPE_SET = '<' ;
185
+ private static final char TYPE_FROZENSET = '>' ;
186
+ private static final int MAX_MARSHAL_STACK_DEPTH = 2000 ;
187
+ private static final int CURRENT_VERSION = 1 ;
188
188
189
- public static abstract class MarshallerNode extends PNodeWithContext {
189
+ public abstract static class MarshallerNode extends PNodeWithContext {
190
190
191
191
public abstract void execute (Object x , int version , DataOutputStream buffer );
192
192
@@ -456,7 +456,7 @@ public static MarshallerNode create() {
456
456
}
457
457
}
458
458
459
- public static abstract class UnmarshallerNode extends PNodeWithContext {
459
+ public abstract static class UnmarshallerNode extends PNodeWithContext {
460
460
public abstract Object execute (byte [] dataBytes , int version );
461
461
462
462
@ Child private HashingStorageNodes .SetItemNode setItemNode ;
@@ -559,7 +559,7 @@ private PList readList(int depth) {
559
559
if (n < 0 ) {
560
560
throw raise (ValueError , "bad marshal data" );
561
561
}
562
- Object items [] = new Object [n ];
562
+ Object [] items = new Object [n ];
563
563
for (int i = 0 ; i < n ; i ++) {
564
564
Object item = readObject (depth + 1 );
565
565
if (item == null ) {
@@ -646,7 +646,7 @@ private Object readObject(int depth) {
646
646
if (n < 0 ) {
647
647
throw raise (ValueError , "bad marshal data" );
648
648
}
649
- Object items [] = new Object [n ];
649
+ Object [] items = new Object [n ];
650
650
for (int i = 0 ; i < n ; i ++) {
651
651
items [i ] = readObject (depth + 1 );
652
652
}
0 commit comments