cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject [21/50] [abbrv] cxf git commit: Fix pmd errors
Date Thu, 26 May 2016 21:45:49 GMT
Fix pmd errors


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/e28b6d24
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/e28b6d24
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/e28b6d24

Branch: refs/heads/master-jaxrs-2.1
Commit: e28b6d244e80234e8e7b24eccb0072bcd1d32888
Parents: 9b21bb9
Author: Daniel Kulp <dkulp@apache.org>
Authored: Fri May 20 15:16:10 2016 -0400
Committer: Daniel Kulp <dkulp@apache.org>
Committed: Fri May 20 15:16:10 2016 -0400

----------------------------------------------------------------------
 .../java/org/apache/cxf/ws/security/wss4j/StaxSerializer.java  | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/e28b6d24/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/StaxSerializer.java
----------------------------------------------------------------------
diff --git a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/StaxSerializer.java
b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/StaxSerializer.java
index 3b28754..3acb598 100644
--- a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/StaxSerializer.java
+++ b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/StaxSerializer.java
@@ -77,11 +77,11 @@ public class StaxSerializer extends AbstractSerializer {
                         for (int i = 0; i < atts.getLength(); ++i) {
                             Node att = atts.item(i);
                             String nodeName = att.getNodeName();
-                            if ((nodeName.equals("xmlns") || nodeName.startsWith("xmlns:"))
+                            if (("xmlns".equals(nodeName) || nodeName.startsWith("xmlns:"))
                                 && !storedNamespaces.containsKey(att.getNodeName()))
{
                                 
                                 String prefix = att.getLocalName();
-                                if (prefix.equals("xmlns")) {
+                                if ("xmlns".equals(prefix)) {
                                     prefix = "";
                                 }
                                 prefix = ic.intern(prefix);
@@ -156,7 +156,7 @@ public class StaxSerializer extends AbstractSerializer {
                     for (int i = 0; i < atts.getLength(); ++i) {
                         Node att = atts.item(i);
                         String nodeName = att.getNodeName();
-                        if ((nodeName.equals("xmlns") || nodeName.startsWith("xmlns:"))
+                        if (("xmlns".equals(nodeName) || nodeName.startsWith("xmlns:"))
                                 && !storedNamespaces.containsKey(att.getNodeName()))
{
                             outputStreamWriter.write(" ");
                             outputStreamWriter.write(nodeName);


Mime
View raw message