cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject svn commit: r442421 - in /incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/util: KeyWords.java ProcessorUtil.java
Date Tue, 12 Sep 2006 02:28:58 GMT
Author: ema
Date: Mon Sep 11 19:28:57 2006
New Revision: 442421

URL: http://svn.apache.org/viewvc?view=rev&rev=442421
Log:
Use JavaUtil in Common to check java keywords

Removed:
    incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/util/KeyWords.java
Modified:
    incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/util/ProcessorUtil.java

Modified: incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/util/ProcessorUtil.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/util/ProcessorUtil.java?view=diff&rev=442421&r1=442420&r2=442421
==============================================================================
--- incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/util/ProcessorUtil.java
(original)
+++ incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/util/ProcessorUtil.java
Mon Sep 11 19:28:57 2006
@@ -40,6 +40,7 @@
 
 import com.sun.xml.bind.api.JAXBRIContext;
 
+import org.apache.cxf.helpers.JavaUtils;
 import org.apache.cxf.tools.common.DataBindingGenerator;
 import org.apache.cxf.tools.common.ToolConstants;
 import org.apache.cxf.tools.common.ToolContext;
@@ -154,7 +155,7 @@
 
     public static String mangleNameToVariableName(String vName) {
         String result  = JAXBRIContext.mangleNameToVariableName(vName);
-        if (KeyWords.isKeywords(result)) {
+        if (JavaUtils.isJavaKeyword(result)) {
             return KEYWORDS_PREFIX + result;
         } else {
             return result;



Mime
View raw message