question: public static boolean isSha1String ( final String string ) { Preconditions . checkNotNull ( string , "Error: String argument can't be null" ) ; return ( string . length ( ) == 40 ) && isHexString ( string ) ; }
target:  Tests whether a given string is a valid SHA1 string.