cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject [07/11] cxf git commit: Fix pmd errors
Date Mon, 23 May 2016 17:47:20 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/f39ad3bb
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/f39ad3bb
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/f39ad3bb

Branch: refs/heads/3.1.x-fixes
Commit: f39ad3bbac2367149f0683bb2025b1df48beb11b
Parents: 7b4044e
Author: Daniel Kulp <dkulp@apache.org>
Authored: Fri May 20 15:16:10 2016 -0400
Committer: Daniel Kulp <dkulp@apache.org>
Committed: Mon May 23 13:09:22 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/f39ad3bb/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