incubator-river-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peter_firmst...@apache.org
Subject svn commit: r930139 - /incubator/river/jtsk/trunk/src/org/apache/river/security/policy/util/PolicyEntry.java
Date Thu, 01 Apr 2010 23:35:49 GMT
Author: peter_firmstone
Date: Thu Apr  1 23:35:48 2010
New Revision: 930139

URL: http://svn.apache.org/viewvc?rev=930139&view=rev
Log:
PolicyEntry slight refactoring java 1.5 dependant.

Modified:
    incubator/river/jtsk/trunk/src/org/apache/river/security/policy/util/PolicyEntry.java

Modified: incubator/river/jtsk/trunk/src/org/apache/river/security/policy/util/PolicyEntry.java
URL: http://svn.apache.org/viewvc/incubator/river/jtsk/trunk/src/org/apache/river/security/policy/util/PolicyEntry.java?rev=930139&r1=930138&r2=930139&view=diff
==============================================================================
--- incubator/river/jtsk/trunk/src/org/apache/river/security/policy/util/PolicyEntry.java
(original)
+++ incubator/river/jtsk/trunk/src/org/apache/river/security/policy/util/PolicyEntry.java
Thu Apr  1 23:35:48 2010
@@ -95,13 +95,8 @@ public final class PolicyEntry {
      * imply() method.
      */
     public boolean impliesCodeSource(CodeSource codeSource) {
-        if (cs == null) {
-            return true;
-        }
-
-        if (codeSource == null) {
-            return false;
-        }
+        if (cs == null) return true;
+        if (codeSource == null) return false;       
         return cs.implies(normalizeCodeSource(codeSource));
     }
 



Mime
View raw message