for (int i = 0; i < length; i++) {
String resName = (String) entryNames.get(i);
// consider that a .java file is not a non-java resource (see bug 12246 Packages view shows .class and .java files when JAR has source)
if (!Util.isJavaLikeFileName(resName)) {
IPath filePath = new Path(resName);
IPath childPath = filePath.removeFirstSegments(this.names.length);
if (jarEntries.containsKey(childPath)) {
// see https://bugs.eclipse.org/bugs/show_bug.cgi?id=222665
continue;
}
JarEntryFile file = new JarEntryFile(filePath.lastSegment());