maven-doxia-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vsive...@apache.org
Subject svn commit: r735474 - /maven/doxia/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/parser/AbstractParserTest.java
Date Sun, 18 Jan 2009 15:33:21 GMT
Author: vsiveton
Date: Sun Jan 18 07:33:20 2009
New Revision: 735474

URL: http://svn.apache.org/viewvc?rev=735474&view=rev
Log:
o used IOUtil.close

Modified:
    maven/doxia/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/parser/AbstractParserTest.java

Modified: maven/doxia/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/parser/AbstractParserTest.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/parser/AbstractParserTest.java?rev=735474&r1=735473&r2=735474&view=diff
==============================================================================
--- maven/doxia/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/parser/AbstractParserTest.java
(original)
+++ maven/doxia/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/parser/AbstractParserTest.java
Sun Jan 18 07:33:20 2009
@@ -70,11 +70,9 @@
     public final void testParser()
         throws IOException, ParseException
     {
-
         WellformednessCheckingSink sink = new WellformednessCheckingSink();
 
         Reader reader = null;
-
         try
         {
             reader = getTestReader( "test", outputExtension() );
@@ -86,10 +84,7 @@
         }
         finally
         {
-            if ( reader != null )
-            {
-                reader.close();
-            }
+            IOUtil.close( reader );
         }
     }
 



Mime
View raw message