RE.java, [...]: Made 'inner' classes real public static inner classes...
2005-02-20 Dalibor Topic <robilad@kaffe.org> * libraries/javalib/gnu/regexp/RE.java, libraries/javalib/java/io/ObjectInputStream.java, libraries/javalib/java/security/AllPermission.java, libraries/javalib/java/security/BasicPermission.java, libraries/javalib/java/security/Permissions.java, libraries/javalib/java/text/MessageFormat.java: Made 'inner' classes real public static inner classes, and made them final where possible, or removed them where unused. From-SVN: r95310
This commit is contained in:
parent
237eaf79a5
commit
7d651220a3
7 changed files with 371 additions and 358 deletions
|
@ -1809,7 +1809,6 @@ public class ObjectInputStream extends InputStream
|
|||
* @param sm SecurityManager instance which should be called.
|
||||
* @return The current class loader in the calling stack.
|
||||
*/
|
||||
|
||||
private static native ClassLoader currentClassLoader (SecurityManager sm);
|
||||
|
||||
private native ClassLoader getCallersClassLoader();
|
||||
|
@ -1879,7 +1878,7 @@ public class ObjectInputStream extends InputStream
|
|||
private int depth = 0;
|
||||
|
||||
private void dumpElement (String msg)
|
||||
{
|
||||
{
|
||||
System.out.print(msg);
|
||||
}
|
||||
|
||||
|
@ -1898,24 +1897,24 @@ public class ObjectInputStream extends InputStream
|
|||
System.loadLibrary ("javaio");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// used to keep a prioritized list of object validators
|
||||
class ValidatorAndPriority implements Comparable
|
||||
{
|
||||
int priority;
|
||||
ObjectInputValidation validator;
|
||||
|
||||
ValidatorAndPriority (ObjectInputValidation validator, int priority)
|
||||
// used to keep a prioritized list of object validators
|
||||
private static final class ValidatorAndPriority implements Comparable
|
||||
{
|
||||
this.priority = priority;
|
||||
this.validator = validator;
|
||||
}
|
||||
int priority;
|
||||
ObjectInputValidation validator;
|
||||
|
||||
public int compareTo (Object o)
|
||||
{
|
||||
ValidatorAndPriority vap = (ValidatorAndPriority)o;
|
||||
return this.priority - vap.priority;
|
||||
ValidatorAndPriority (ObjectInputValidation validator, int priority)
|
||||
{
|
||||
this.priority = priority;
|
||||
this.validator = validator;
|
||||
}
|
||||
|
||||
public int compareTo (Object o)
|
||||
{
|
||||
ValidatorAndPriority vap = (ValidatorAndPriority)o;
|
||||
return this.priority - vap.priority;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue