Skip to content

Commit

Permalink
Any class will do, not just public, final and abstract
Browse files Browse the repository at this point in the history
  • Loading branch information
egonw committed Sep 18, 2009
1 parent 3458dee commit dc9e8c5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/main/net/sf/cdk/tools/MakeJavafilesFiles.java
Expand Up @@ -189,12 +189,10 @@ public String[] getModuleAndSet(File file) {
if (line.indexOf("*/") != -1) inComment = false;
}

if (!inComment && (line.indexOf("public class") != -1 ||
line.indexOf("public enum") != -1 ||
if (!inComment && (line.indexOf("class") != -1 ||
line.indexOf("public enum") != -1 ||
line.indexOf("public interface") != -1 ||
line.indexOf("public @interface") != -1 ||
line.indexOf("abstract class") != -1 ||
line.indexOf("final class") != -1)) {
line.indexOf("public @interface") != -1)) {
// Nothing specified: return the default 'extra'
reader.close();
return results;
Expand Down

0 comments on commit dc9e8c5

Please sign in to comment.