cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1688261 - /cxf/web/src/main/java/org/apache/cxf/cwiki/Page.java
Date Mon, 29 Jun 2015 16:50:29 GMT
Author: dkulp
Date: Mon Jun 29 16:50:29 2015
New Revision: 1688261

URL: http://svn.apache.org/r1688261
Log:
FIx pmd error

Modified:
    cxf/web/src/main/java/org/apache/cxf/cwiki/Page.java

Modified: cxf/web/src/main/java/org/apache/cxf/cwiki/Page.java
URL: http://svn.apache.org/viewvc/cxf/web/src/main/java/org/apache/cxf/cwiki/Page.java?rev=1688261&r1=1688260&r2=1688261&view=diff
==============================================================================
--- cxf/web/src/main/java/org/apache/cxf/cwiki/Page.java (original)
+++ cxf/web/src/main/java/org/apache/cxf/cwiki/Page.java Mon Jun 29 16:50:29 2015
@@ -533,10 +533,9 @@ public class Page extends AbstractPage i
                 paramName = "default-parameter";
             } else if ("page".equals(localName) && state == State.INCLUDE) {
                 for (int x = 0; x < atts.getLength(); x++) {
-                    if (atts.getLocalName(x).equals("content-title")) {
-                        if (paramName != null) {
-                            params.put(paramName, atts.getValue(x));
-                        }
+                    if (atts.getLocalName(x).equals("content-title")
+                        && paramName != null) {
+                        params.put(paramName, atts.getValue(x));
                     }
                 }
             }



Mime
View raw message