Close some streams.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163245 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Emmanuel Venisse 2004-12-06 10:47:39 +00:00
parent 0e31910a59
commit 8a83719263
2 changed files with 9 additions and 1 deletions

View File

@ -124,6 +124,8 @@ public class Verifier
lines.add( line );
}
reader.close();
}
catch ( Exception e )
{
@ -245,6 +247,8 @@ public class Verifier
{
throw new VerificationException( "Expected JAR resource was not found: " + line );
}
is.close();
}
catch ( Exception e )
{

View File

@ -184,7 +184,11 @@ public class ResourcesMojo
in.close();
return buffer.toByteArray();
byte[] content = buffer.toByteArray();
buffer.close();
return content;
}
public static void fileWrite( String fileName, byte[] data ) throws Exception