harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r415723 - /incubator/harmony/enhanced/classlib/trunk/modules/auth/src/main/java/common/javax/security/auth/Subject.java
Date Tue, 20 Jun 2006 16:18:55 GMT
Author: tellison
Date: Tue Jun 20 09:18:51 2006
New Revision: 415723

URL: http://svn.apache.org/viewvc?rev=415723&view=rev
Log:
Rearrange local fields to serialized form ordering.

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/auth/src/main/java/common/javax/security/auth/Subject.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/auth/src/main/java/common/javax/security/auth/Subject.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/auth/src/main/java/common/javax/security/auth/Subject.java?rev=415723&r1=415722&r2=415723&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/auth/src/main/java/common/javax/security/auth/Subject.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/auth/src/main/java/common/javax/security/auth/Subject.java
Tue Jun 20 09:18:51 2006
@@ -50,13 +50,13 @@
     /**
      * @com.intel.drl.spec_ref
      */
-    private boolean isReadOnly;
+    private Set principals;
 
     /**
      * @com.intel.drl.spec_ref
      */
-    private Set principals;
-
+    private boolean readOnly;
+    
     // set of private credentials
     private transient SecureSet privateCredentials;
 
@@ -97,7 +97,7 @@
         publicCredentials = new SecureSet(_PUBLIC_CREDENTIALS);
         privateCredentials = new SecureSet(_PRIVATE_CREDENTIALS);
 
-        isReadOnly = false;
+        readOnly = false;
     }
 
     /**
@@ -116,7 +116,7 @@
         privateCredentials = new SecureSet(_PRIVATE_CREDENTIALS,
                 privCredentials);
 
-        this.isReadOnly = readOnly;
+        this.readOnly = readOnly;
     }
 
     /**
@@ -308,14 +308,14 @@
     public void setReadOnly() {
         checkPermission(_READ_ONLY);
 
-        isReadOnly = true;
+        readOnly = true;
     }
 
     /**
      * @com.intel.drl.spec_ref
      */
     public boolean isReadOnly() {
-        return isReadOnly;
+        return readOnly;
     }
 
     /**
@@ -406,7 +406,7 @@
 
     // FIXME is used only in two places. remove?
     private void checkState() {
-        if (isReadOnly) {
+        if (readOnly) {
             throw new IllegalStateException("Set is read only");
         }
     }



Mime
View raw message