src/java/org/apache/cassandra/db/commitlog/CommitLogSegment.java
// assume filename is a 'possibleCommitLogFile()'
assume filename is a 'possibleCommitLogFile()'
assume filename is a ' possibleCommitLogFile () '
public static long idFromFilename(String filename)
    {
        Matcher matcher = COMMIT_LOG_FILE_PATTERN.matcher(filename);
        try
        {
            if (matcher.matches())
                return Long.valueOf(matcher.group(1));
            else
                return -1L;
        }
        catch (NumberFormatException e)
        {
            return -1L;
        }
    }
public static long idFromFilename ( String filename ) { Matcher matcher = COMMIT_LOG_FILE_PATTERN . matcher ( filename ) ; try { if ( matcher . matches ( ) ) return Long . valueOf ( matcher . group ( 1 ) ) ; else return - 1L ; } catch ( NumberFormatException e ) { return - 1L ; } }
assume filename is a 'possibleCommitLogFile()'
assume filename is a ' possibleCommitLogFile () '