archiva-modules/archiva-base/archiva-policies/src/test/java/org/apache/archiva/policies/ChecksumPolicyTest.java
/**
     * Read the first line from the checksum file, and return it (trimmed).
     */
Read the first line from the checksum file, and return it (trimmed).
Read the first line from the checksum file and return it ( trimmed ) .
private String readChecksumFile( Path checksumFile )
        throws Exception
    {
        FileReader freader = null;
        BufferedReader buf = null;
        try
        {
            freader = new FileReader( checksumFile.toFile() );
            buf = new BufferedReader( freader );
            return buf.readLine();
        }
        finally
        {
            if ( buf != null )
            {
                buf.close();
            }
            if ( freader != null )
            {
                freader.close();
            }
        }
    }
private String readChecksumFile ( Path checksumFile ) throws Exception { FileReader freader = null ; BufferedReader buf = null ; try { freader = new FileReader ( checksumFile . toFile ( ) ) ; buf = new BufferedReader ( freader ) ; return buf . readLine ( ) ; } finally { if ( buf != null ) { buf . close ( ) ; } if ( freader != null ) { freader . close ( ) ; } } }
Read the first line from the checksum file, and return it (trimmed).
Read the first line from the checksum file and return it ( trimmed ) .