Skip to content

Commit a433d73

Browse files
author
Vladimir Kotal
committed
Merge pull request #785 from vladak/analyzer_magics
remove too generic MAGICS from Java and Scala analyzers
2 parents 3a4816d + 78afc9d commit a433d73

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

src/org/opensolaris/opengrok/analysis/java/JavaAnalyzerFactory.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,8 @@ public class JavaAnalyzerFactory extends FileAnalyzerFactory {
3838
"JAVA"
3939
};
4040

41-
private static final String[] MAGICS = {
42-
"/*"
43-
};
44-
4541
public JavaAnalyzerFactory() {
46-
super(null, null, SUFFIXES, MAGICS, null, "text/plain", Genre.PLAIN);
42+
super(null, null, SUFFIXES, null, null, "text/plain", Genre.PLAIN);
4743
}
4844

4945
@Override

src/org/opensolaris/opengrok/analysis/scala/ScalaAnalyzerFactory.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
/*
21-
* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
21+
* Copyright (c) 2013-2014, Oracle and/or its affiliates. All rights reserved.
2222
*/
2323

2424
package org.opensolaris.opengrok.analysis.scala;
@@ -43,12 +43,9 @@ public class ScalaAnalyzerFactory extends FileAnalyzerFactory {
4343
private static final String[] SUFFIXES = {
4444
"SCALA"
4545
};
46-
private static final String[] MAGICS = {
47-
"/"
48-
};
4946

5047
public ScalaAnalyzerFactory() {
51-
super(null, null, SUFFIXES, MAGICS, null, "text/plain", Genre.PLAIN);
48+
super(null, null, SUFFIXES, null, null, "text/plain", Genre.PLAIN);
5249
}
5350

5451
@Override

0 commit comments

Comments
 (0)