Rework CPD's LanguageFactory to use ServiceLoader, too

This commit is contained in:
Andreas Dangel
2014-10-11 12:16:28 +02:00
parent 72719bd0c3
commit 464b0bcef8
29 changed files with 95 additions and 97 deletions

View File

@ -9,6 +9,6 @@ package net.sourceforge.pmd.cpd;
*/
public class EcmascriptLanguage extends AbstractLanguage {
public EcmascriptLanguage() {
super(new EcmascriptTokenizer(), ".js");
super("ecmascript", new EcmascriptTokenizer(), ".js");
}
}

View File

@ -0,0 +1 @@
net.sourceforge.pmd.cpd.EcmascriptLanguage