ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject svn commit: r1070392 - /webservices/commons/trunk/modules/neethi/src/main/java/org/apache/neethi/PolicyReference.java
Date Mon, 14 Feb 2011 06:24:03 GMT
Author: ruwan
Date: Mon Feb 14 06:24:02 2011
New Revision: 1070392

URL: http://svn.apache.org/viewvc?rev=1070392&view=rev
Log:
rename the prameter to uri as it is meaningfull from ur, and a return statement simplification

Modified:
    webservices/commons/trunk/modules/neethi/src/main/java/org/apache/neethi/PolicyReference.java

Modified: webservices/commons/trunk/modules/neethi/src/main/java/org/apache/neethi/PolicyReference.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/neethi/src/main/java/org/apache/neethi/PolicyReference.java?rev=1070392&r1=1070391&r2=1070392&view=diff
==============================================================================
--- webservices/commons/trunk/modules/neethi/src/main/java/org/apache/neethi/PolicyReference.java
(original)
+++ webservices/commons/trunk/modules/neethi/src/main/java/org/apache/neethi/PolicyReference.java
Mon Feb 14 06:24:02 2011
@@ -47,8 +47,8 @@ public class PolicyReference implements 
      * Sets the Policy URI
      * @param uri the Policy URI
      */
-    public void setURI(String ur) {
-        this.uri = ur;
+    public void setURI(String uri) {
+        this.uri = uri;
     }
 
     /**
@@ -65,11 +65,8 @@ public class PolicyReference implements 
         }
         
         String u = ((PolicyReference)policyComponent).getURI();
-        if (u != null && u.length() != 0) {
-            return u.equals(this.uri);
-        } 
-        
-        return false;
+        return u != null && u.length() != 0 && u.equals(this.uri);
+
     }
 
 



Mime
View raw message