You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by co...@apache.org on 2016/04/29 12:15:44 UTC

cxf git commit: Finishing Fortify review

Repository: cxf
Updated Branches:
  refs/heads/master 11f374a43 -> a51bce9a7


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/a51bce9a
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/a51bce9a
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/a51bce9a

Branch: refs/heads/master
Commit: a51bce9a71bc993917137fffb3f5c5679bc8bf2f
Parents: 11f374a
Author: Colm O hEigeartaigh <co...@apache.org>
Authored: Fri Apr 29 11:15:34 2016 +0100
Committer: Colm O hEigeartaigh <co...@apache.org>
Committed: Fri Apr 29 11:15:34 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/a51bce9a/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());
     }