8003134: CheckResourceKeys issues

Reviewed-by: jjh, bpatel
This commit is contained in:
Jonathan Gibbons 2012-11-07 17:20:12 -08:00
parent eb055bba92
commit 18b3a4951e
3 changed files with 3 additions and 6 deletions

View file

@ -91,9 +91,7 @@ doclet.Subclasses=Direct Known Subclasses:
doclet.Subinterfaces=All Known Subinterfaces:
doclet.Implementing_Classes=All Known Implementing Classes:
doclet.also=also
doclet.FRAMES=FRAMES
doclet.Frames=Frames
doclet.NO_FRAMES=NO FRAMES
doclet.No_Frames=No Frames
doclet.Package_Hierarchies=Package Hierarchies:
doclet.Hierarchy_For_Package=Hierarchy For Package {0}

View file

@ -310,9 +310,8 @@ public class CheckResourceKeys {
pkg, EnumSet.of(JavaFileObject.Kind.CLASS), true)) {
String name = fo.getName();
// ignore resource files, and files which are not really part of javac
if (name.matches(".*resources.[A-Za-z_0-9]+\\.class")
|| name.endsWith("Launcher.class")
|| name.endsWith("CreateSymbols.class"))
if (name.matches(".*resources.[A-Za-z_0-9]+\\.class.*")
|| name.matches(".*CreateSymbols\\.class.*"))
continue;
scan(fo, results);
}

View file

@ -151,7 +151,7 @@ public class CheckResourceKeys {
pkg, EnumSet.of(JavaFileObject.Kind.CLASS), true)) {
String name = fo.getName();
// ignore resource files
if (name.matches(".*resources.[A-Za-z_0-9]+\\.class"))
if (name.matches(".*resources.[A-Za-z_0-9]+\\.class.*"))
continue;
scan(fo, results);
}