Reformat: whitespace and comments, I'm not used to narya's 4-space indent.
This commit is contained in:
@@ -285,7 +285,8 @@ public class ObjectInputStream extends DataInputStream
|
|||||||
// if it's a single character do a quick check:
|
// if it's a single character do a quick check:
|
||||||
if (start == end - 1) {
|
if (start == end - 1) {
|
||||||
switch (c) {
|
switch (c) {
|
||||||
case 'I': case 'Z': case 'B': case 'S': case 'C': case 'J': case 'F': case 'D': return;
|
case 'I': case 'Z': case 'B': case 'S': case 'C': case 'J': case 'F': case 'D':
|
||||||
|
return; // valid
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// This is annoying: Something else is pre-stripping the L if not in an array?
|
// This is annoying: Something else is pre-stripping the L if not in an array?
|
||||||
@@ -295,9 +296,7 @@ public class ObjectInputStream extends DataInputStream
|
|||||||
}
|
}
|
||||||
String className = cname.substring(start, end);
|
String className = cname.substring(start, end);
|
||||||
for (String prefix : _allowedPrefixes) {
|
for (String prefix : _allowedPrefixes) {
|
||||||
if (className.startsWith(prefix)) {
|
if (className.startsWith(prefix)) return; // valid
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break; // if we didn't see a [, we're done processing
|
break; // if we didn't see a [, we're done processing
|
||||||
|
|||||||
Reference in New Issue
Block a user