Fix unit test

This commit is contained in:
Andreas Dangel
2016-06-04 20:19:19 +02:00
parent 0ec5f63744
commit 2e9b73141e

View File

@ -141,7 +141,7 @@ public class CodeClimateRenderer extends AbstractIncrementingRenderer {
private static String getPmdDeveloperURL() { private static String getPmdDeveloperURL() {
String url = "http://pmd.github.io/pmd-" + PMD.VERSION + "/customizing/pmd-developer.html"; String url = "http://pmd.github.io/pmd-" + PMD.VERSION + "/customizing/pmd-developer.html";
if (PMD.VERSION.contains("SNAPSHOT")) { if (PMD.VERSION.contains("SNAPSHOT") || "unknown".equals(PMD.VERSION)) {
url = "http://pmd.sourceforge.net/snapshot/customizing/pmd-developer.html"; url = "http://pmd.sourceforge.net/snapshot/customizing/pmd-developer.html";
} }
return url; return url;