cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1355423 - in /cxf/branches/2.5.x-fixes: common/common/src/main/java/org/apache/cxf/common/util/ maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/wsdl2java/ maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/mav...
Date Fri, 29 Jun 2012 14:54:38 GMT
Author: dkulp
Date: Fri Jun 29 14:54:34 2012
New Revision: 1355423

URL: http://svn.apache.org/viewvc?rev=1355423&view=rev
Log:
Merged revisions 1355412 via  git cherry-pick from
https://svn.apache.org/repos/asf/cxf/branches/2.6.x-fixes

........
  r1355412 | dkulp | 2012-06-29 10:34:53 -0400 (Fri, 29 Jun 2012) | 10 lines

  Merged revisions 1354199 via  git cherry-pick from
  https://svn.apache.org/repos/asf/cxf/trunk

  ........
    r1354199 | dkulp | 2012-06-26 16:05:20 -0400 (Tue, 26 Jun 2012) | 2 lines

    Fix some warnings that the new Juno Eclipse release flags

  ........

........

Modified:
    cxf/branches/2.5.x-fixes/common/common/src/main/java/org/apache/cxf/common/util/ParamReader.java
    cxf/branches/2.5.x-fixes/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/wsdl2java/ForkOnceWSDL2Java.java
    cxf/branches/2.5.x-fixes/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/wsdl2js/ForkOnceWSDL2Javascript.java
    cxf/branches/2.5.x-fixes/maven-plugins/wadl2java-plugin/src/main/java/org/apache/cxf/maven_plugin/common/ForkOnceCodeGenerator.java
    cxf/branches/2.5.x-fixes/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/utils/CorbaUtils.java
    cxf/branches/2.5.x-fixes/rt/core/src/main/java/org/apache/cxf/interceptor/StaxOutInterceptor.java
    cxf/branches/2.5.x-fixes/rt/core/src/test/java/org/apache/cxf/attachment/AttachmentDeserializerTest.java
    cxf/branches/2.5.x-fixes/rt/core/src/test/java/org/apache/cxf/transport/CachedOutputStreamTest.java
    cxf/branches/2.5.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/JAXRSClientFactoryBean.java
    cxf/branches/2.5.x-fixes/rt/frontend/js/src/main/java/org/apache/cxf/js/rhino/ProviderFactory.java
    cxf/branches/2.5.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/http/ChunkedUtil.java
    cxf/branches/2.5.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/https/SSLUtils.java
    cxf/branches/2.5.x-fixes/rt/transports/http/src/test/java/org/apache/cxf/transport/https/CertConstraintsTest.java
    cxf/branches/2.5.x-fixes/testutils/src/main/java/org/apache/cxf/testutil/common/ServerLauncher.java
    cxf/branches/2.5.x-fixes/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/idl/IDLToWSDLProcessor.java
    cxf/branches/2.5.x-fixes/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/wsdl/WSDLToCorbaBinding.java
    cxf/branches/2.5.x-fixes/tools/wsdlto/misc/src/test/java/org/apache/cxf/tools/misc/processor/XSDToWSDLProcessorTest.java
    cxf/branches/2.5.x-fixes/tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenBugTest.java

Modified: cxf/branches/2.5.x-fixes/common/common/src/main/java/org/apache/cxf/common/util/ParamReader.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.5.x-fixes/common/common/src/main/java/org/apache/cxf/common/util/ParamReader.java?rev=1355423&r1=1355422&r2=1355423&view=diff
==============================================================================
--- cxf/branches/2.5.x-fixes/common/common/src/main/java/org/apache/cxf/common/util/ParamReader.java
(original)
+++ cxf/branches/2.5.x-fixes/common/common/src/main/java/org/apache/cxf/common/util/ParamReader.java
Fri Jun 29 14:54:34 2012
@@ -131,6 +131,7 @@ public class ParamReader extends ClassRe
 
         try {
             // get a parameter reader
+            @SuppressWarnings("resource")
             ParamReader pr = new ParamReader(c);
             // get the parameter names
             return pr.getParameterNames(method);

Modified: cxf/branches/2.5.x-fixes/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/wsdl2java/ForkOnceWSDL2Java.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.5.x-fixes/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/wsdl2java/ForkOnceWSDL2Java.java?rev=1355423&r1=1355422&r2=1355423&view=diff
==============================================================================
--- cxf/branches/2.5.x-fixes/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/wsdl2java/ForkOnceWSDL2Java.java
(original)
+++ cxf/branches/2.5.x-fixes/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/wsdl2java/ForkOnceWSDL2Java.java
Fri Jun 29 14:54:34 2012
@@ -40,6 +40,7 @@ public final class ForkOnceWSDL2Java {
         while (line != null) {
             int i = Integer.parseInt(line);
             if (i == -1) {
+                reader.close();
                 return;
             }
             String wargs[] = new String[i];
@@ -51,5 +52,6 @@ public final class ForkOnceWSDL2Java {
             
             line = reader.readLine();
         }
+        reader.close();
     }
 }

Modified: cxf/branches/2.5.x-fixes/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/wsdl2js/ForkOnceWSDL2Javascript.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.5.x-fixes/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/wsdl2js/ForkOnceWSDL2Javascript.java?rev=1355423&r1=1355422&r2=1355423&view=diff
==============================================================================
--- cxf/branches/2.5.x-fixes/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/wsdl2js/ForkOnceWSDL2Javascript.java
(original)
+++ cxf/branches/2.5.x-fixes/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/wsdl2js/ForkOnceWSDL2Javascript.java
Fri Jun 29 14:54:34 2012
@@ -40,6 +40,7 @@ public final class ForkOnceWSDL2Javascri
         while (line != null) {
             int i = Integer.parseInt(line);
             if (i == -1) {
+                reader.close();
                 return;
             }
             String wargs[] = new String[i];
@@ -51,5 +52,6 @@ public final class ForkOnceWSDL2Javascri
             
             line = reader.readLine();
         }
+        reader.close();
     }
 }

Modified: cxf/branches/2.5.x-fixes/maven-plugins/wadl2java-plugin/src/main/java/org/apache/cxf/maven_plugin/common/ForkOnceCodeGenerator.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.5.x-fixes/maven-plugins/wadl2java-plugin/src/main/java/org/apache/cxf/maven_plugin/common/ForkOnceCodeGenerator.java?rev=1355423&r1=1355422&r2=1355423&view=diff
==============================================================================
--- cxf/branches/2.5.x-fixes/maven-plugins/wadl2java-plugin/src/main/java/org/apache/cxf/maven_plugin/common/ForkOnceCodeGenerator.java
(original)
+++ cxf/branches/2.5.x-fixes/maven-plugins/wadl2java-plugin/src/main/java/org/apache/cxf/maven_plugin/common/ForkOnceCodeGenerator.java
Fri Jun 29 14:54:34 2012
@@ -38,6 +38,7 @@ public final class ForkOnceCodeGenerator
         while (line != null) {
             int i = Integer.parseInt(line);
             if (i == -1) {
+                reader.close();
                 return;
             }
             String wargs[] = new String[i];
@@ -49,5 +50,6 @@ public final class ForkOnceCodeGenerator
             
             line = reader.readLine();
         }
+        reader.close();
     }
 }

Modified: cxf/branches/2.5.x-fixes/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/utils/CorbaUtils.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.5.x-fixes/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/utils/CorbaUtils.java?rev=1355423&r1=1355422&r2=1355423&view=diff
==============================================================================
--- cxf/branches/2.5.x-fixes/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/utils/CorbaUtils.java
(original)
+++ cxf/branches/2.5.x-fixes/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/utils/CorbaUtils.java
Fri Jun 29 14:54:34 2012
@@ -536,6 +536,7 @@ public final class CorbaUtils {
             java.io.BufferedReader reader = new java.io.BufferedReader(new java.io.FileReader(file));
             String ior = reader.readLine();
             if (ior == null) {
+                reader.close();
                 throw new RuntimeException("Invalid object reference found in file " + url);
             }
             result = orb.string_to_object(ior.trim());

Modified: cxf/branches/2.5.x-fixes/rt/core/src/main/java/org/apache/cxf/interceptor/StaxOutInterceptor.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.5.x-fixes/rt/core/src/main/java/org/apache/cxf/interceptor/StaxOutInterceptor.java?rev=1355423&r1=1355422&r2=1355423&view=diff
==============================================================================
--- cxf/branches/2.5.x-fixes/rt/core/src/main/java/org/apache/cxf/interceptor/StaxOutInterceptor.java
(original)
+++ cxf/branches/2.5.x-fixes/rt/core/src/main/java/org/apache/cxf/interceptor/StaxOutInterceptor.java
Fri Jun 29 14:54:34 2012
@@ -55,6 +55,7 @@ public class StaxOutInterceptor extends 
         addAfter(AttachmentOutInterceptor.class.getName());
     }
 
+    @SuppressWarnings("resource")
     public void handleMessage(Message message) {
         OutputStream os = message.getContent(OutputStream.class);
         XMLStreamWriter writer = message.getContent(XMLStreamWriter.class);

Modified: cxf/branches/2.5.x-fixes/rt/core/src/test/java/org/apache/cxf/attachment/AttachmentDeserializerTest.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.5.x-fixes/rt/core/src/test/java/org/apache/cxf/attachment/AttachmentDeserializerTest.java?rev=1355423&r1=1355422&r2=1355423&view=diff
==============================================================================
--- cxf/branches/2.5.x-fixes/rt/core/src/test/java/org/apache/cxf/attachment/AttachmentDeserializerTest.java
(original)
+++ cxf/branches/2.5.x-fixes/rt/core/src/test/java/org/apache/cxf/attachment/AttachmentDeserializerTest.java
Fri Jun 29 14:54:34 2012
@@ -341,6 +341,7 @@ public class AttachmentDeserializerTest 
         assertEquals(10, m.read(new byte[1000]));
         assertEquals(-1, m.read(new byte[1000]));
         assertEquals(-1, m.read(new byte[1000]));
+        m.close();
     }
     
     @Test

Modified: cxf/branches/2.5.x-fixes/rt/core/src/test/java/org/apache/cxf/transport/CachedOutputStreamTest.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.5.x-fixes/rt/core/src/test/java/org/apache/cxf/transport/CachedOutputStreamTest.java?rev=1355423&r1=1355422&r2=1355423&view=diff
==============================================================================
--- cxf/branches/2.5.x-fixes/rt/core/src/test/java/org/apache/cxf/transport/CachedOutputStreamTest.java
(original)
+++ cxf/branches/2.5.x-fixes/rt/core/src/test/java/org/apache/cxf/transport/CachedOutputStreamTest.java
Fri Jun 29 14:54:34 2012
@@ -37,6 +37,7 @@ public class CachedOutputStreamTest exte
         cos.resetOut(out, true);
         String test = out.toString();        
         assertEquals("The test stream content isn't same ", test , result);
+        cos.close();
     }
     
     @Test

Modified: cxf/branches/2.5.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/JAXRSClientFactoryBean.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.5.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/JAXRSClientFactoryBean.java?rev=1355423&r1=1355422&r2=1355423&view=diff
==============================================================================
--- cxf/branches/2.5.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/JAXRSClientFactoryBean.java
(original)
+++ cxf/branches/2.5.x-fixes/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/JAXRSClientFactoryBean.java
Fri Jun 29 14:54:34 2012
@@ -332,7 +332,9 @@ public class JAXRSClientFactoryBean exte
     
     protected ConduitSelector getConduitSelector(Endpoint ep) {
         ConduitSelector cs = getConduitSelector();
-        cs = cs == null ? new UpfrontConduitSelector() : cs;
+        if (cs == null) {
+            cs = new UpfrontConduitSelector();
+        }
         cs.setEndpoint(ep);
         return cs;
     }

Modified: cxf/branches/2.5.x-fixes/rt/frontend/js/src/main/java/org/apache/cxf/js/rhino/ProviderFactory.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.5.x-fixes/rt/frontend/js/src/main/java/org/apache/cxf/js/rhino/ProviderFactory.java?rev=1355423&r1=1355422&r2=1355423&view=diff
==============================================================================
--- cxf/branches/2.5.x-fixes/rt/frontend/js/src/main/java/org/apache/cxf/js/rhino/ProviderFactory.java
(original)
+++ cxf/branches/2.5.x-fixes/rt/frontend/js/src/main/java/org/apache/cxf/js/rhino/ProviderFactory.java
Fri Jun 29 14:54:34 2012
@@ -84,6 +84,7 @@ public class ProviderFactory {
             }
             sb.append(line).append("\n");
         }
+        bufrd.close();
         String scriptStr = sb.toString();
 
         Context cx = ContextFactory.getGlobal().enterContext();

Modified: cxf/branches/2.5.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/http/ChunkedUtil.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.5.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/http/ChunkedUtil.java?rev=1355423&r1=1355422&r2=1355423&view=diff
==============================================================================
--- cxf/branches/2.5.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/http/ChunkedUtil.java
(original)
+++ cxf/branches/2.5.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/http/ChunkedUtil.java
Fri Jun 29 14:54:34 2012
@@ -78,6 +78,7 @@ final class ChunkedUtil {
      * @param connection the given HttpURLConnection
      * @return an input stream containing the response content if non-empty
      */
+    @SuppressWarnings("resource")
     private static InputStream getNonEmptyContent(
         HttpURLConnection connection
     ) {

Modified: cxf/branches/2.5.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/https/SSLUtils.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.5.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/https/SSLUtils.java?rev=1355423&r1=1355422&r2=1355423&view=diff
==============================================================================
--- cxf/branches/2.5.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/https/SSLUtils.java
(original)
+++ cxf/branches/2.5.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/https/SSLUtils.java
Fri Jun 29 14:54:34 2012
@@ -111,6 +111,7 @@ public final class SSLUtils {
             DataInputStream dis = new DataInputStream(fis);
             byte[] bytes = new byte[dis.available()];
             dis.readFully(bytes);
+            dis.close();
             ByteArrayInputStream bin = new ByteArrayInputStream(bytes);
             
             if (keyStorePassword != null) {

Modified: cxf/branches/2.5.x-fixes/rt/transports/http/src/test/java/org/apache/cxf/transport/https/CertConstraintsTest.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.5.x-fixes/rt/transports/http/src/test/java/org/apache/cxf/transport/https/CertConstraintsTest.java?rev=1355423&r1=1355422&r2=1355423&view=diff
==============================================================================
--- cxf/branches/2.5.x-fixes/rt/transports/http/src/test/java/org/apache/cxf/transport/https/CertConstraintsTest.java
(original)
+++ cxf/branches/2.5.x-fixes/rt/transports/http/src/test/java/org/apache/cxf/transport/https/CertConstraintsTest.java
Fri Jun 29 14:54:34 2012
@@ -125,6 +125,7 @@ public class CertConstraintsTest extends
         DataInputStream dis = new DataInputStream(fis);
         byte[] bytes = new byte[dis.available()];
         dis.readFully(bytes);
+        dis.close();
         ByteArrayInputStream bin = new ByteArrayInputStream(bytes);
         store.load(bin, keystorePassword.toCharArray());
         for (java.util.Enumeration<String> aliases = store.aliases(); aliases.hasMoreElements();)
{

Modified: cxf/branches/2.5.x-fixes/testutils/src/main/java/org/apache/cxf/testutil/common/ServerLauncher.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.5.x-fixes/testutils/src/main/java/org/apache/cxf/testutil/common/ServerLauncher.java?rev=1355423&r1=1355422&r2=1355423&view=diff
==============================================================================
--- cxf/branches/2.5.x-fixes/testutils/src/main/java/org/apache/cxf/testutil/common/ServerLauncher.java
(original)
+++ cxf/branches/2.5.x-fixes/testutils/src/main/java/org/apache/cxf/testutil/common/ServerLauncher.java
Fri Jun 29 14:54:34 2012
@@ -327,7 +327,7 @@ public class ServerLauncher {
                         }
                     }
                 }
-                
+                ps.close();
             } catch (IOException ex) {
                 if (!ex.getMessage().contains("Stream closed")) {
                     ex.printStackTrace();

Modified: cxf/branches/2.5.x-fixes/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/idl/IDLToWSDLProcessor.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.5.x-fixes/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/idl/IDLToWSDLProcessor.java?rev=1355423&r1=1355422&r2=1355423&view=diff
==============================================================================
--- cxf/branches/2.5.x-fixes/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/idl/IDLToWSDLProcessor.java
(original)
+++ cxf/branches/2.5.x-fixes/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/idl/IDLToWSDLProcessor.java
Fri Jun 29 14:54:34 2012
@@ -505,6 +505,7 @@ public class IDLToWSDLProcessor extends 
                     FileReader fileReader = new FileReader(addrFile);
                     BufferedReader bufferedReader = new BufferedReader(fileReader);
                     addr = bufferedReader.readLine();
+                    bufferedReader.close();
                 } catch (Exception ex) {
                     throw new ToolException(ex.getMessage(), ex);
                 }
@@ -635,6 +636,7 @@ public class IDLToWSDLProcessor extends 
                     while (token != null) {
                         int pos = token.indexOf("=");
                         if (pos == -1) {
+                            reader.close();
                             throw new RuntimeException("Mapping of idl modules to namespaces
"
                                                        + "is not specified correctly in the
file "
                                                        + mapping + "."
@@ -645,6 +647,7 @@ public class IDLToWSDLProcessor extends 
                         map.put(token.substring(0, pos), token.substring(pos + 1));
                         token = reader.readLine();
                     }
+                    reader.close();
                 } catch (Exception ex) {
                     throw new RuntimeException("Incorrect properties file for mns mapping
- " + mapping
                                                + ". Cause: " + ex.getMessage());

Modified: cxf/branches/2.5.x-fixes/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/wsdl/WSDLToCorbaBinding.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.5.x-fixes/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/wsdl/WSDLToCorbaBinding.java?rev=1355423&r1=1355422&r2=1355423&view=diff
==============================================================================
--- cxf/branches/2.5.x-fixes/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/wsdl/WSDLToCorbaBinding.java
(original)
+++ cxf/branches/2.5.x-fixes/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/wsdl/WSDLToCorbaBinding.java
Fri Jun 29 14:54:34 2012
@@ -347,6 +347,7 @@ public class WSDLToCorbaBinding {
                     FileReader fileReader = new FileReader(addrFile);
                     BufferedReader bufferedReader = new BufferedReader(fileReader);
                     addr = bufferedReader.readLine();
+                    bufferedReader.close();
                 } catch (Exception ex) {
                     throw new ToolException(ex.getMessage(), ex);
                 }

Modified: cxf/branches/2.5.x-fixes/tools/wsdlto/misc/src/test/java/org/apache/cxf/tools/misc/processor/XSDToWSDLProcessorTest.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.5.x-fixes/tools/wsdlto/misc/src/test/java/org/apache/cxf/tools/misc/processor/XSDToWSDLProcessorTest.java?rev=1355423&r1=1355422&r2=1355423&view=diff
==============================================================================
--- cxf/branches/2.5.x-fixes/tools/wsdlto/misc/src/test/java/org/apache/cxf/tools/misc/processor/XSDToWSDLProcessorTest.java
(original)
+++ cxf/branches/2.5.x-fixes/tools/wsdlto/misc/src/test/java/org/apache/cxf/tools/misc/processor/XSDToWSDLProcessorTest.java
Fri Jun 29 14:54:34 2012
@@ -49,6 +49,7 @@ public class XSDToWSDLProcessorTest
             sb.append(chars, 0, readLen);
             size = size + readLen;
         }
+        fileReader.close();
         String serviceString = new String(sb);
         assertTrue(serviceString.indexOf("<wsdl:types>") >= 0);
         assertTrue(serviceString.indexOf("<schema targetNamespace=\"http:/"
@@ -78,6 +79,7 @@ public class XSDToWSDLProcessorTest
             sb.append(chars, 0, readLen);
             size = size + readLen;
         }
+        fileReader.close();
         String serviceString = new String(sb);
         assertTrue(serviceString.indexOf("<wsdl:types>") >= 0);
         assertTrue(serviceString.indexOf("<schema targetNamespace=\"http:/"

Modified: cxf/branches/2.5.x-fixes/tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenBugTest.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.5.x-fixes/tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenBugTest.java?rev=1355423&r1=1355422&r2=1355423&view=diff
==============================================================================
--- cxf/branches/2.5.x-fixes/tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenBugTest.java
(original)
+++ cxf/branches/2.5.x-fixes/tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenBugTest.java
Fri Jun 29 14:54:34 2012
@@ -225,6 +225,7 @@ public class CodeGenBugTest extends Abst
         byte[] buffer = new byte[(int)file.length()];
         filebuffer.read(buffer);
         String content = IOUtils.newStringFromBytes(buffer);
+        filebuffer.close();
         assertTrue("wsdl location should be url style in build.xml", content.indexOf("param1=\"file:")
> -1);
 
     }
@@ -425,6 +426,7 @@ public class CodeGenBugTest extends Abst
             }
             size = fin.read(buffer);
         }
+        fin.close();
         assertTrue("Service QName in client is not correct", index > -1);
     }
 



Mime
View raw message