langtools/test/tools/javac/diags/MessageFile.java
changeset 28334 1633de6070ae
parent 22448 a85fbad9d687
equal deleted inserted replaced
28333:8eeea699174c 28334:1633de6070ae
    29 /**
    29 /**
    30  * Class to facilitate manipulating compiler.properties.
    30  * Class to facilitate manipulating compiler.properties.
    31  */
    31  */
    32 class MessageFile {
    32 class MessageFile {
    33     static final Pattern emptyOrCommentPattern = Pattern.compile("( *#.*)?");
    33     static final Pattern emptyOrCommentPattern = Pattern.compile("( *#.*)?");
    34     static final Pattern infoPattern = Pattern.compile("# ([0-9]+: [-A-Za-z ]+, )*[0-9]+: [-A-Za-z ]+");
    34     static final Pattern typePattern = Pattern.compile("[-\\\\'A-Z\\.a-z ]+( \\([A-Za-z 0-9]+\\))?");
       
    35     static final Pattern infoPattern = Pattern.compile(String.format("# ([0-9]+: %s, )*[0-9]+: %s",
       
    36             typePattern.pattern(), typePattern.pattern()));
    35 
    37 
    36     /**
    38     /**
    37      * A line of text within the message file.
    39      * A line of text within the message file.
    38      * The lines form a doubly linked list for simple navigation.
    40      * The lines form a doubly linked list for simple navigation.
    39      */
    41      */