throw new IllegalArgumentException( "File is not readable" );
}
try {
FileInputStream inputStream = new FileInputStream( file );
try {
JSHint jsHint = new JSHint();
jsHint.load( inputStream );
} finally {
inputStream.close();
}
} catch( Exception exception ) {
throw new IllegalArgumentException( "File is not a valid JSHint library", exception );