* @return
*/
private static File[] findSourceRoots(File moduleDir) {
- ArrayList<File> result = new ArrayList<>();
+ ArrayList<File> result = new ArrayList<File>();
for (String name: SOURCE_NAMES) {
File srcDir = new File(moduleDir, name);
if (srcDir.canRead() && srcDir.isDirectory()) {
// separate check to verify all file types (suffixes) are known
if (!"testsrc".equals(srcDir.getName())) {
- ArrayList<File> unknownFiles = new ArrayList<>();
+ ArrayList<File> unknownFiles = new ArrayList<File>();
UnknownFileCheck.SINGLETON.unknownFiles(srcDir, unknownFiles);
if (!unknownFiles.isEmpty()) {
String s = "unknown files (see readme-build-module.html to "
*/
static class UnknownFileCheck implements FileFilter {
private static final UnknownFileCheck SINGLETON = new UnknownFileCheck();
- private static final ArrayList<String> STATIC_ERRORS = new ArrayList<>();
+ private static final ArrayList<String> STATIC_ERRORS = new ArrayList<String>();
// Builder.BINARY_SOURCE_PATTERN and Builder.RESOURCE_PATTERN
public static final List<String> KNOWN_SUFFIXES;
static {
- List<String> suffixes = new ArrayList<>();
+ List<String> suffixes = new ArrayList<String>();
// sources from org.aspectj.util.FileUtil.SOURCE_SUFFIXES
suffixes.add(".aj");
suffixes.add(".java");
}
}
- ArrayList<File> tempFiles = new ArrayList<>();
+ ArrayList<File> tempFiles = new ArrayList<File>();
private File jarDir;
private boolean deleteJars;
boolean building; // must be enabled for tests to run
try {
zipFile = new ZipFile(weaverAllJar);
Enumeration e = zipFile.entries();
- ArrayList<String> entryNames = new ArrayList<>();
+ ArrayList<String> entryNames = new ArrayList<String>();
while (e.hasMoreElements()) {
ZipEntry entry = (ZipEntry) e.nextElement();
String name = entry.getName();
}
}
- ArrayList<File> tempFiles = new ArrayList<>();
+ ArrayList<File> tempFiles = new ArrayList<File>();
public ModulesTest(String name) {
super(name);
}
public void testAllModulesCreation() {
- ArrayList<Module> badModules = new ArrayList<>();
+ ArrayList<Module> badModules = new ArrayList<Module>();
for (String name: MODULE_NAMES) {
File dir = new File(BASE_DIR, name);
if (dir.isDirectory()) {