commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcucchi...@apache.org
Subject svn commit: r1188683 - /commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/DefaultMemberAccess.java
Date Tue, 25 Oct 2011 14:55:16 GMT
Author: mcucchiara
Date: Tue Oct 25 14:55:15 2011
New Revision: 1188683

URL: http://svn.apache.org/viewvc?rev=1188683&view=rev
Log:
Downgraded useless public scope

Modified:
    commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/DefaultMemberAccess.java

Modified: commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/DefaultMemberAccess.java
URL: http://svn.apache.org/viewvc/commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/DefaultMemberAccess.java?rev=1188683&r1=1188682&r2=1188683&view=diff
==============================================================================
--- commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/DefaultMemberAccess.java
(original)
+++ commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/DefaultMemberAccess.java
Tue Oct 25 14:55:15 2011
@@ -28,7 +28,7 @@ import java.util.Map;
  * This class provides methods for setting up and restoring access in a Field. Java 2 provides
access utilities for
  * setting and getting fields that are non-public. This object provides coarse-grained access
controls to allow access
  * to private, protected and package protected members. This will apply to all classes and
members.
- * 
+ *
  * @author Luke Blanshard (blanshlu@netscape.net)
  * @author Drew Davidson (drew@ognl.org)
  * @version 15 October 1999
@@ -36,11 +36,11 @@ import java.util.Map;
 public class DefaultMemberAccess
     implements MemberAccess
 {
-    public boolean allowPrivateAccess = false;
+    private boolean allowPrivateAccess = false;
 
-    public boolean allowProtectedAccess = false;
+    private boolean allowProtectedAccess = false;
 
-    public boolean allowPackageProtectedAccess = false;
+    private boolean allowPackageProtectedAccess = false;
 
     /*
      * =================================================================== Constructors
@@ -119,7 +119,7 @@ public class DefaultMemberAccess
     {
         if ( state != null )
         {
-            ( (AccessibleObject) member ).setAccessible( ( (Boolean) state ).booleanValue()
);
+            ( (AccessibleObject) member ).setAccessible( (Boolean) state );
         }
     }
 



Mime
View raw message