maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r680020 - /maven/plugins/trunk/maven-javadoc-plugin/src/main/java/org/apache/maven/plugin/javadoc/JavadocUtil.java
Date Sat, 26 Jul 2008 17:38:39 GMT
Author: hboutemy
Date: Sat Jul 26 10:38:39 2008
New Revision: 680020

URL: http://svn.apache.org/viewvc?rev=680020&view=rev
Log:
use IOUtil.close()

Modified:
    maven/plugins/trunk/maven-javadoc-plugin/src/main/java/org/apache/maven/plugin/javadoc/JavadocUtil.java

Modified: maven/plugins/trunk/maven-javadoc-plugin/src/main/java/org/apache/maven/plugin/javadoc/JavadocUtil.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/main/java/org/apache/maven/plugin/javadoc/JavadocUtil.java?rev=680020&r1=680019&r2=680020&view=diff
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/main/java/org/apache/maven/plugin/javadoc/JavadocUtil.java
(original)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/main/java/org/apache/maven/plugin/javadoc/JavadocUtil.java
Sat Jul 26 10:38:39 2008
@@ -757,7 +757,7 @@
      * Validate if a charset is supported on this platform.
      *
      * @param charsetName the charsetName to be check.
-     * @return <code>true</code> if the charset is supported by the JVM, <code>false</code>
other wise.
+     * @return <code>true</code> if the charset is supported by the JVM, <code>false</code>
otherwise.
      */
     protected static boolean validateEncoding( String charsetName )
     {
@@ -778,17 +778,7 @@
         }
         finally
         {
-            try
-            {
-                if ( osw != null )
-                {
-                    osw.close();
-                }
-            }
-            catch ( IOException exc )
-            {
-                //nop
-            }
+            IOUtil.close( osw );
         }
         return true;
     }



Mime
View raw message