Skip to content

Commit

Permalink
[from now] 2014/06/18 01:03:24
Browse files Browse the repository at this point in the history
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<PageSource> 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 {
  • Loading branch information
yamkazu committed Jun 17, 2014
1 parent fed74f1 commit e21e701
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/main/groovy/gaiden/kai/DocumentSource.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@

package gaiden.kai

import groovy.transform.CompileStatic

@CompileStatic
class DocumentSource {

TocSource tocSource

List<PageSource> pageSources

}
7 changes: 6 additions & 1 deletion src/main/groovy/gaiden/kai/GaidenMain.groovy
Original file line number Diff line number Diff line change
@@ -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) {
Expand All @@ -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"
Expand All @@ -32,6 +36,7 @@ class GaidenMain {
null
}

@CompileStatic(TypeCheckingMode.SKIP)
private OptionAccessor getOptions(String[] args) {
def cliBuilder = new CliBuilder()
cliBuilder.with {
Expand Down

0 comments on commit e21e701

Please sign in to comment.