From c9166f39e881fc9291027843524815ff9cced7b8 Mon Sep 17 00:00:00 2001 From: Uwe Schindler Date: Wed, 15 Jun 2016 14:55:59 +0200 Subject: [PATCH] Fix typos --- .../de/thetaphi/forbiddenapis/gradle/plugin-init.groovy | 2 +- src/test/java/de/thetaphi/forbiddenapis/CheckerStaticTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"));