wing328
ce1cf4606a
[Java][jersey1] add Java6 support to Java (jersey1) API client ( #3919 )
...
* add java6 support to java jersey1
* properly handle boolean value in mustache tag
* add test for supportJava6 option
2016-10-15 17:11:34 +08:00
wing328
6ef0209dea
add back java okhttp petstore client
2016-10-05 22:55:01 +08:00
Griffin Schneider
0844496bad
[Java] Fix bug in generated code if parcelableModel and serializableModel are both true.
2016-10-05 22:53:05 +08:00
Griffin Schneider
1aeceead99
[Java] Make generated models Parcelable for okhttp-gson if the -DparcelableModel=true option is provided.
2016-10-05 22:53:05 +08:00
Stephan Wienczny
e96b177305
Use triple mustache for vendorExtensions.extraAnnotation
...
Triple mustache is required because annotations may contain chars like "=" that
would be mistakenly encoded.
2016-09-19 16:24:51 +02:00
cbornet
3b4465d999
add fluent methods to add items to list and put items to maps
2016-07-27 18:18:48 +02:00
wing328
77c4164b3c
better code injection handling for java
2016-06-29 02:00:43 +08:00
cbornet
8d8858cc51
mutualize jackson and gson models in java clients
...
See #2182
2016-06-28 18:00:34 +02:00
xhh
8588c5ce0a
add enum support to java
2016-05-03 11:16:05 +08:00
xhh
b8beca7f24
Java: do not generate setter for readonly properties
2016-02-22 15:50:43 +08:00
xhh
b2ed17e63e
Remove unused jackson imports from Java models
...
by fixing the logic of enum Boolean checking.
Other changes:
* Remove the `true &&` prefix from the `equals` method in models.
* Apply some changes of Java-default to Java-okhttp-gson, i.e. adding
`this` and parent model handling.
* Some improvements on spaces and blank lines.
2016-02-17 18:03:27 +08:00
Vivin Paliath
04c1940343
Fix for issue #2117
...
This change adds `this` to field names in `equals` within `pojo.mustache` so that an incorrect `equals` method is not generated in cases where a class has an internal field that is the same as the `classVarName` of the class.
2016-02-16 09:07:47 -07:00
Tony Tam
54e78bd533
added builders
2016-02-10 15:40:47 -08:00
Tony Tam
ab5ca625c1
added example property
2016-02-10 15:28:00 -08:00
wing328
be49dc58bd
Merge pull request #1857 from erikvanzijst/erik/java_object_naming_clash
...
Java Class Name Clashes with java.lang.*
2016-01-12 10:57:53 +08:00
Erik van Zijst
dbe62bee37
#1858 : The Java equals/hashcode methods ignores state from superclasses
...
This fixes equals/hashCode for derived classes.
2016-01-08 15:11:59 -08:00
Erik van Zijst
995869f4d5
Java Class Name Clashes with java.lang.*
...
A swagger file that contains a definition named "object" compiles into a
class named Object. This is technically not a problem as it lives in a
different package than java.lang.Object, but this requires the templates to
refer to Java's Object using its fully qualified name.
2016-01-08 11:07:18 -08:00
Tony Tam
adb3795a44
formatting
2015-12-30 14:51:43 -08:00
Tony Tam
1cd54ee685
added bigDecimalAsString option to allow serializing with strings
2015-12-30 12:32:37 -08:00
xhh
3d4b5ff1c7
Java: Move method StringUtil.toIndentedString to model
...
Closes #1701
2015-12-29 12:30:54 +08:00
Tony Tam
5b0b759e4e
added enum class support
2015-12-18 08:12:15 -05:00