diff --git a/src/main/resources/de/thetaphi/forbiddenapis/gradle/plugin-init.groovy b/src/main/resources/de/thetaphi/forbiddenapis/gradle/plugin-init.groovy index cce9648e..a8588d47 100644 --- a/src/main/resources/de/thetaphi/forbiddenapis/gradle/plugin-init.groovy +++ b/src/main/resources/de/thetaphi/forbiddenapis/gradle/plugin-init.groovy @@ -23,7 +23,7 @@ if (project.plugins.withType(JavaBasePlugin.class).isEmpty()) { throw new PluginInstantiationException('Forbidden-apis only works in projects using the java plugin.'); } -// chck if running in Gradle Daemon? +// check if running in Gradle Daemon? // see: http://stackoverflow.com/questions/23265217/how-to-know-whether-you-are-running-inside-a-gradle-daemon boolean isGradleDaemon = System.getProperty('sun.java.command', '').startsWith('org.gradle.launcher.daemon.') || Thread.currentThread().stackTrace.any { it.className.startsWith 'org.gradle.launcher.daemon.' }; diff --git a/src/test/java/de/thetaphi/forbiddenapis/CheckerStaticTest.java b/src/test/java/de/thetaphi/forbiddenapis/CheckerStaticTest.java index a9e210dc..a10e619e 100644 --- a/src/test/java/de/thetaphi/forbiddenapis/CheckerStaticTest.java +++ b/src/test/java/de/thetaphi/forbiddenapis/CheckerStaticTest.java @@ -24,7 +24,7 @@ public final class CheckerStaticTest { @Test - public void testTragetVersionFix() throws Exception { + public void testTargetVersionFix() throws Exception { assertEquals("jdk-dummy-1.7", Checker.fixTargetVersion("jdk-dummy-1.7")); assertEquals("jdk-dummy-1.7", Checker.fixTargetVersion("jdk-dummy-7")); assertEquals("jdk-dummy-1.7", Checker.fixTargetVersion("jdk-dummy-7.0"));