for (int i = 0; i < max; i++) {
String resName = resNames[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);
JarEntryFile file = new JarEntryFile(filePath.lastSegment());
jarEntries.put(childPath, file);
if (childPath.segmentCount() == 1) {
file.setParent(pkg);
topJarEntries.add(file);