Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
Fix for #320
Browse files Browse the repository at this point in the history
  • Loading branch information
jpbelang committed Jan 26, 2018
1 parent 256b63c commit b02ad5c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
<generateTypesWith>
<value>jackson</value>
<value>jsr303</value>
<value>javadoc</value>
</generateTypesWith>
</configuration>
</plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ types:
type: Gender

/complexhumans:
description: Hello!!!
get:
(ramltojaxrs.methods):
onResourceMethodCreation: [ org.raml.jaxrs.generator.builders.extensions.resources.TrialResourceMethodExtension ]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public void into(JCodeModel g) throws IOException {

@Override
public void into(TypeSpec g) throws IOException {
JavaFile.Builder file = JavaFile.builder(getResourcePackage(), g);
JavaFile.Builder file = JavaFile.builder(getResourcePackage(), g).skipJavaLangImports(true);
file.build().writeTo(rootDirectory);
}
});
Expand All @@ -194,7 +194,7 @@ public void into(TypeSpec g) throws IOException {
@Override
public void into(TypeSpec.Builder g) throws IOException {

JavaFile.Builder file = JavaFile.builder(getSupportPackage(), g.build());
JavaFile.Builder file = JavaFile.builder(getSupportPackage(), g.build()).skipJavaLangImports(true);
file.build().writeTo(rootDirectory);
}
});
Expand Down Expand Up @@ -231,7 +231,7 @@ public void into(TypeSpec.Builder g) throws IOException {

if (containing != null) {

JavaFile.Builder file = JavaFile.builder(getModelPackage(), containing.build());
JavaFile.Builder file = JavaFile.builder(getModelPackage(), containing.build()).skipJavaLangImports(true);
file.build().writeTo(rootDirectory);
}
}
Expand Down Expand Up @@ -259,7 +259,7 @@ public void into(TypeSpec.Builder g) throws IOException {
}

if (containing != null) {
JavaFile.Builder file = JavaFile.builder(getModelPackage(), containing.build());
JavaFile.Builder file = JavaFile.builder(getModelPackage(), containing.build()).skipJavaLangImports(true);
file.build().writeTo(rootDirectory);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public static void buildSupportClasses(File rootDir, String defaultPackage) thro


builder.addType(headerBuilderBase.build());
JavaFile.Builder file = JavaFile.builder(defaultPackage, builder.build());
JavaFile.Builder file = JavaFile.builder(defaultPackage, builder.build()).skipJavaLangImports(true);
file.build().writeTo(rootDir);

}
Expand Down

0 comments on commit b02ad5c

Please sign in to comment.