Home | History | Annotate | Download | only in rmtypedefs

Lines Matching refs:Files

21 import com.google.common.io.Files;
101 System.out.println("Deleting @IntDef and @StringDef annotation class files");
104 // Record typedef annotation names and files
109 // Rewrite the .class files for any classes that *contain* typedefs as innerclasses
112 // Removes the actual .class files for the typedef annotations
120 * for any .class files encountered
124 File[] files = file.listFiles();
125 if (files != null) {
126 for (File f : files) {
135 System.err.println(path + ": Warning: Encountered .jar file; .class files "
136 + "are not scanned and removed inside .jar files");
147 byte[] bytes = Files.toByteArray(file);
167 out.println(" -n,--dry-run dry-run only, leaves files alone");
203 bytes = Files.toByteArray(file);
224 Files.write(rewritten, file);
236 * files
258 * Visitor which visits .class files and checks whether each class is a typedef annotation
294 // Special case: Also delete the actual @IntDef and @StringDef .class files.