cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject cxf git commit: Finishing Fortify review
Date Fri, 29 Apr 2016 10:16:02 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.1.x-fixes 4db1a9e0d -> 5bf7ea849


Finishing Fortify review


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

Branch: refs/heads/3.1.x-fixes
Commit: 5bf7ea849a7de8ec2335f6172b4e05848480fb4a
Parents: 4db1a9e
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Fri Apr 29 11:15:34 2016 +0100
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Fri Apr 29 11:15:56 2016 +0100

----------------------------------------------------------------------
 .../test/java/org/apache/cxf/tools/corba/WSDLToIDLTest.java  | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/5bf7ea84/tools/corba/src/test/java/org/apache/cxf/tools/corba/WSDLToIDLTest.java
----------------------------------------------------------------------
diff --git a/tools/corba/src/test/java/org/apache/cxf/tools/corba/WSDLToIDLTest.java b/tools/corba/src/test/java/org/apache/cxf/tools/corba/WSDLToIDLTest.java
index 999cd6f..03eb599 100644
--- a/tools/corba/src/test/java/org/apache/cxf/tools/corba/WSDLToIDLTest.java
+++ b/tools/corba/src/test/java/org/apache/cxf/tools/corba/WSDLToIDLTest.java
@@ -41,7 +41,7 @@ import org.apache.cxf.tools.corba.utils.TestUtils;
 
 public class WSDLToIDLTest extends ToolTestBase {
    
-    private static StringBuffer usageBuf;
+    private static String usage;
     private static int noError;
     private static int error = -1;
     ByteArrayOutputStream bout;
@@ -53,7 +53,7 @@ public class WSDLToIDLTest extends ToolTestBase {
         try {
             TestUtils utils = new TestUtils(WSDLToIDL.TOOL_NAME, WSDLToIDL.class
                 .getResourceAsStream("/toolspecs/wsdl2idl.xml"));
-            usageBuf = new StringBuffer(utils.getUsage());
+            usage = utils.getUsage();
             bout = new ByteArrayOutputStream();
             newOut = new PrintStream(bout);
             System.setOut(newOut);
@@ -230,7 +230,7 @@ public class WSDLToIDLTest extends ToolTestBase {
         assertEquals("WSDLToIDL Failed", error, exc);
         StringBuilder strBuf = new StringBuilder();
         strBuf.append("Missing argument: wsdlurl\n\n");
-        strBuf.append(usageBuf.toString());
+        strBuf.append(usage);
         checkStrings(strBuf.toString().getBytes(), bout.toByteArray());
     }
     
@@ -240,7 +240,7 @@ public class WSDLToIDLTest extends ToolTestBase {
         assertEquals("WSDLToIDL Failed", error, exc);
         StringBuilder expected = new StringBuilder();
         expected.append("Missing argument: wsdlurl\n\n");
-        expected.append(usageBuf.toString());
+        expected.append(usage);
         checkStrings(expected.toString().getBytes(), bout.toByteArray());
     }    
     


Mime
View raw message