cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject git commit: [CXF-5904] Fixing the regression leading to eliminating all but one inherited parameters
Date Fri, 25 Jul 2014 09:01:43 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 3b1a8cc3a -> 7e0a57513


[CXF-5904] Fixing the regression leading to eliminating all but one inherited parameters


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

Branch: refs/heads/master
Commit: 7e0a57513411118cb2095857dbcfb619397285f4
Parents: 3b1a8cc
Author: Sergey Beryozkin <sberyozkin@talend.com>
Authored: Fri Jul 25 12:01:26 2014 +0300
Committer: Sergey Beryozkin <sberyozkin@talend.com>
Committed: Fri Jul 25 12:01:26 2014 +0300

----------------------------------------------------------------------
 .../java/org/apache/cxf/tools/wadlto/jaxrs/SourceGenerator.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/7e0a5751/tools/wadlto/jaxrs/src/main/java/org/apache/cxf/tools/wadlto/jaxrs/SourceGenerator.java
----------------------------------------------------------------------
diff --git a/tools/wadlto/jaxrs/src/main/java/org/apache/cxf/tools/wadlto/jaxrs/SourceGenerator.java
b/tools/wadlto/jaxrs/src/main/java/org/apache/cxf/tools/wadlto/jaxrs/SourceGenerator.java
index a47b809..0c23b1b 100644
--- a/tools/wadlto/jaxrs/src/main/java/org/apache/cxf/tools/wadlto/jaxrs/SourceGenerator.java
+++ b/tools/wadlto/jaxrs/src/main/java/org/apache/cxf/tools/wadlto/jaxrs/SourceGenerator.java
@@ -832,7 +832,7 @@ public class SourceGenerator {
         for (Element inherited : inheritedParams) {
             boolean duplicate = false;
             for (Element in : inParamElements) {
-                if (in.getLocalName().equals(inherited.getLocalName())) {    
+                if (in.getAttribute("name").equals(inherited.getAttribute("name"))) {   

                     duplicate = true;
                     break;
                 }


Mime
View raw message