From e21e701111935e3ccef085471fd774749ef7c05d Mon Sep 17 00:00:00 2001 From: Kazuki YAMAMOTO Date: Wed, 18 Jun 2014 01:03:24 +0900 Subject: [PATCH] [from now] 2014/06/18 01:03:24 diff --git a/src/main/groovy/gaiden/kai/DocumentSource.groovy b/src/main/groovy/gaiden/kai/DocumentSource.groovy index 14106af..b53c793 100644 --- a/src/main/groovy/gaiden/kai/DocumentSource.groovy +++ b/src/main/groovy/gaiden/kai/DocumentSource.groovy @@ -16,10 +16,12 @@ package gaiden.kai +import groovy.transform.CompileStatic + +@CompileStatic class DocumentSource { TocSource tocSource List pageSources - } diff --git a/src/main/groovy/gaiden/kai/GaidenMain.groovy b/src/main/groovy/gaiden/kai/GaidenMain.groovy index f794320..da7b44f 100644 --- a/src/main/groovy/gaiden/kai/GaidenMain.groovy +++ b/src/main/groovy/gaiden/kai/GaidenMain.groovy @@ -1,7 +1,10 @@ package gaiden.kai -import gaiden.exception.GaidenException +import gaiden.kai.exception.GaidenException +import groovy.transform.CompileStatic +import groovy.transform.TypeCheckingMode +@CompileStatic class GaidenMain { static void main(String... args) { @@ -23,6 +26,7 @@ void run(String... args) { command.execute(options.arguments()) } + @CompileStatic(TypeCheckingMode.SKIP) private String getCommandName(String[] args, OptionAccessor options) { if (options.v) { return "version" @@ -32,6 +36,7 @@ private String getCommandName(String[] args, OptionAccessor options) { null } + @CompileStatic(TypeCheckingMode.SKIP) private OptionAccessor getOptions(String[] args) { def cliBuilder = new CliBuilder() cliBuilder.with { --- src/main/groovy/gaiden/kai/DocumentSource.groovy | 4 +++- src/main/groovy/gaiden/kai/GaidenMain.groovy | 7 ++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/main/groovy/gaiden/kai/DocumentSource.groovy b/src/main/groovy/gaiden/kai/DocumentSource.groovy index 14106af..b53c793 100644 --- a/src/main/groovy/gaiden/kai/DocumentSource.groovy +++ b/src/main/groovy/gaiden/kai/DocumentSource.groovy @@ -16,10 +16,12 @@ package gaiden.kai +import groovy.transform.CompileStatic + +@CompileStatic class DocumentSource { TocSource tocSource List pageSources - } diff --git a/src/main/groovy/gaiden/kai/GaidenMain.groovy b/src/main/groovy/gaiden/kai/GaidenMain.groovy index f794320..da7b44f 100644 --- a/src/main/groovy/gaiden/kai/GaidenMain.groovy +++ b/src/main/groovy/gaiden/kai/GaidenMain.groovy @@ -1,7 +1,10 @@ package gaiden.kai -import gaiden.exception.GaidenException +import gaiden.kai.exception.GaidenException +import groovy.transform.CompileStatic +import groovy.transform.TypeCheckingMode +@CompileStatic class GaidenMain { static void main(String... args) { @@ -23,6 +26,7 @@ class GaidenMain { command.execute(options.arguments()) } + @CompileStatic(TypeCheckingMode.SKIP) private String getCommandName(String[] args, OptionAccessor options) { if (options.v) { return "version" @@ -32,6 +36,7 @@ class GaidenMain { null } + @CompileStatic(TypeCheckingMode.SKIP) private OptionAccessor getOptions(String[] args) { def cliBuilder = new CliBuilder() cliBuilder.with {