mirror of https://github.com/apache/maven.git
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:
parent
0e31910a59
commit
8a83719263
|
@ -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 )
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue