aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@gmail.com>2013-03-14 16:01:06 +0100
committerJulien Lancelot <julien.lancelot@gmail.com>2013-03-14 16:03:31 +0100
commit56b30607c4a0d8c54222cb29ce49bb429e8a09e3 (patch)
tree130fe8fba2f04a27f4c65721c84438c088a2731c /plugins
parent8e7ffed1b130c47fe5ac394b4f5c78dd901bff1b (diff)
downloadsonarqube-56b30607c4a0d8c54222cb29ce49bb429e8a09e3.tar.gz
sonarqube-56b30607c4a0d8c54222cb29ce49bb429e8a09e3.zip
SONAR-4139 Move Java language definition to sonar-java-plugin
Diffstat (limited to 'plugins')
-rw-r--r--plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/CorePlugin.java4
-rw-r--r--plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/SonarEngine.java3
2 files changed, 3 insertions, 4 deletions
diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/CorePlugin.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/CorePlugin.java
index 188bf6d0ee2..2af797f7ff8 100644
--- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/CorePlugin.java
+++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/CorePlugin.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.plugins.core;
import com.google.common.collect.ImmutableList;
@@ -412,9 +413,6 @@ public final class CorePlugin extends SonarPlugin {
UserManagedMetrics.class,
Periods.class,
- // languages
- Java.class,
-
// pages
Lcom4Viewer.class,
TestsViewer.class,
diff --git a/plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/SonarEngine.java b/plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/SonarEngine.java
index 9f99584f2aa..17636206353 100644
--- a/plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/SonarEngine.java
+++ b/plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/SonarEngine.java
@@ -17,6 +17,7 @@
* License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
+
package org.sonar.plugins.cpd;
import com.google.common.collect.Iterables;
@@ -97,7 +98,7 @@ public class SonarEngine extends CpdEngine {
@Override
public boolean isLanguageSupported(Language language) {
- return Java.INSTANCE.equals(language);
+ return Java.KEY.equals(language.getKey());
}
static String getFullKey(Project project, Resource<?> resource) {