updated coding rules.
[utils] / security / src / test / java / org / wamblee / security / authorization / TestAuthorizationRule.java
index fe02560d824272c71730f66e31230b4025ba0835..3644dc8384c00bea8f567d263da06132a7be30f8 100644 (file)
@@ -23,13 +23,15 @@ import org.wamblee.usermgt.User;
 
 /**
  * Test authorization rule that also counts the number of times the rule matches. 
+ *
+ * @author Erik Brakkee
  */
 public class TestAuthorizationRule extends UrlAuthorizationRule {
     
     /**
      * Counts the number of matches. 
      */
-    private int _matches = 0; 
+    private int matches = 0; 
 
     public TestAuthorizationRule( AuthorizationResult aResult, String aGroup,
             String aPath, Class<? extends Operation> aOperation) {
@@ -57,17 +59,17 @@ public class TestAuthorizationRule extends UrlAuthorizationRule {
         
         AuthorizationResult result = super.isAllowed(aResource, anOperation, aUser);
         if ( result.equals(GRANTED) || result.equals(DENIED)) { 
-            _matches++; 
+            matches++; 
         }
         return result; 
     }
     
     public int getMatchCount() { 
-        return _matches; 
+        return matches; 
     }
     
     public void reset() { 
-        _matches = 0; 
+        matches = 0; 
     }
    
 }