cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r449565 - in /incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/rest: RestClientServerTest.java RestSourcePayloadProvider.java
Date Mon, 25 Sep 2006 04:05:39 GMT
Author: ningjiang
Date: Sun Sep 24 21:05:38 2006
New Revision: 449565

URL: http://svn.apache.org/viewvc?view=rev&rev=449565
Log:
Fixed some eclipse PMD warning

Modified:
    incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/rest/RestClientServerTest.java
    incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/rest/RestSourcePayloadProvider.java

Modified: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/rest/RestClientServerTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/rest/RestClientServerTest.java?view=diff&rev=449565&r1=449564&r2=449565
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/rest/RestClientServerTest.java
(original)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/rest/RestClientServerTest.java
Sun Sep 24 21:05:38 2006
@@ -138,7 +138,7 @@
      * Source result = d.invoke(null); printSource(result); }
      */
 
-    private void printSource(Source source) {
+    void printSource(Source source) {
         try {
             ByteArrayOutputStream bos = new ByteArrayOutputStream();
             StreamResult sr = new StreamResult(bos);

Modified: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/rest/RestSourcePayloadProvider.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/rest/RestSourcePayloadProvider.java?view=diff&rev=449565&r1=449564&r2=449565
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/rest/RestSourcePayloadProvider.java
(original)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/rest/RestSourcePayloadProvider.java
Sun Sep 24 21:05:38 2006
@@ -63,10 +63,10 @@
             // System.out.println("--POST: getAllCustomers--- ");
             return getCustomer(null);
         } else if (httpMethod.equalsIgnoreCase("GET")) {
-            if (path.equals("/XMLService/RestProviderPort/Customer") && query ==
null) {
+            if ("/XMLService/RestProviderPort/Customer".equals(path) && query ==
null) {
                 // System.out.println("--GET:getAllCustomers--- ");
                 return getAllCustomers();
-            } else if (path.equals("/XMLService/RestProviderPort/Customer") && query
!= null) {
+            } else if ("/XMLService/RestProviderPort/Customer".equals(path) && query
!= null) {
                 // System.out.println("--GET:getCustomer--- ");
                 return getCustomer(query);
             }



Mime
View raw message