support for jdk 1.6 added
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5683 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@ -143,6 +143,8 @@ public class ReviewResourceForRuleCommand extends AbstractDefaultCommand {
|
||||
pmdEngine.setJavaVersion(SourceType.JAVA_14);
|
||||
} else if (JavaCore.VERSION_1_5.equals(compilerCompliance)) {
|
||||
pmdEngine.setJavaVersion(SourceType.JAVA_15);
|
||||
} else if (JavaCore.VERSION_1_6.equals(compilerCompliance)) {
|
||||
pmdEngine.setJavaVersion(SourceType.JAVA_16);
|
||||
} else {
|
||||
throw new CommandException("The target JDK, " + compilerCompliance + " is not yet supported"); // TODO:
|
||||
// NLS
|
||||
|
Reference in New Issue
Block a user