diff --git a/pmd-kotlin/src/main/java/net/sourceforge/pmd/lang/kotlin/KotlinHandler.java b/pmd-kotlin/src/main/java/net/sourceforge/pmd/lang/kotlin/KotlinHandler.java index 6eaa0c5752..e7df396ec2 100644 --- a/pmd-kotlin/src/main/java/net/sourceforge/pmd/lang/kotlin/KotlinHandler.java +++ b/pmd-kotlin/src/main/java/net/sourceforge/pmd/lang/kotlin/KotlinHandler.java @@ -22,4 +22,8 @@ public class KotlinHandler extends AbstractPmdLanguageVersionHandler { public Parser getParser() { return new PmdKotlinParser(); } + + public String getKotlinRelease() { + return kotlinRelease; + } } diff --git a/pmd-kotlin/src/main/java/net/sourceforge/pmd/lang/kotlin/KotlinLanguageModule.java b/pmd-kotlin/src/main/java/net/sourceforge/pmd/lang/kotlin/KotlinLanguageModule.java index e61608b108..9a26caf4e0 100644 --- a/pmd-kotlin/src/main/java/net/sourceforge/pmd/lang/kotlin/KotlinLanguageModule.java +++ b/pmd-kotlin/src/main/java/net/sourceforge/pmd/lang/kotlin/KotlinLanguageModule.java @@ -21,8 +21,8 @@ public class KotlinLanguageModule extends BaseLanguageModule { */ public KotlinLanguageModule() { super(NAME, null, TERSE_NAME, "kt", "ktm"); - addVersion("", new KotlinHandler("1.3")); - addVersion("", new KotlinHandler("1.4")); - addDefaultVersion("", new KotlinHandler("1.5")); + addVersion("1.3", new KotlinHandler("1.3")); + addVersion("1.4", new KotlinHandler("1.4")); + addDefaultVersion("1.5", new KotlinHandler("1.5")); } }