< prev index next >

test/langtools/tools/lib/toolbox/ToolBox.java

Print this page

        

*** 648,658 **** private static Pattern modulePattern = Pattern.compile("module\\s+((?:\\w+\\.)*)"); private static Pattern packagePattern = Pattern.compile("package\\s+(((?:\\w+\\.)*)(?:\\w+))"); private static Pattern classPattern = ! Pattern.compile("(?:public\\s+)?(?:class|enum|interface)\\s+(\\w+)"); /** * Extracts the Java file name from the class declaration. * This method is intended for simple files and uses regular expressions. * Comments in the source are stripped before looking for the --- 648,658 ---- private static Pattern modulePattern = Pattern.compile("module\\s+((?:\\w+\\.)*)"); private static Pattern packagePattern = Pattern.compile("package\\s+(((?:\\w+\\.)*)(?:\\w+))"); private static Pattern classPattern = ! Pattern.compile("(?:public\\s+)?(?:class|enum|interface|record)\\s+(\\w+)"); /** * Extracts the Java file name from the class declaration. * This method is intended for simple files and uses regular expressions. * Comments in the source are stripped before looking for the
< prev index next >