Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenAPI Tools
openapi-generator
Commits
a049e4c2
Commit
a049e4c2
authored
5 years ago
by
William Cheng
Browse files
Options
Download
Email Patches
Plain Diff
better comment
parent
eee7a406
java_fix_enum
1 merge request
!3676
Remove dollar sign from Java const name
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractJavaCodegen.java
+1
-1
...g/openapitools/codegen/languages/AbstractJavaCodegen.java
with
1 addition
and
1 deletion
+1
-1
modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractJavaCodegen.java
+
1
-
1
View file @
a049e4c2
...
@@ -986,7 +986,7 @@ public abstract class AbstractJavaCodegen extends DefaultCodegen implements Code
...
@@ -986,7 +986,7 @@ public abstract class AbstractJavaCodegen extends DefaultCodegen implements Code
model
.
imports
.
add
(
"ApiModel"
);
model
.
imports
.
add
(
"ApiModel"
);
}
}
//
add
java constan
cc
t name
//
store
java constan
t property name in vendor extension, remove dollar sign from the constan
t name
property
.
vendorExtensions
.
put
(
"x-java-const-name"
,
CaseFormat
.
UPPER_CAMEL
.
to
(
CaseFormat
.
UPPER_UNDERSCORE
,
property
.
nameInCamelCase
.
replaceAll
(
"\\$"
,
""
)));
property
.
vendorExtensions
.
put
(
"x-java-const-name"
,
CaseFormat
.
UPPER_CAMEL
.
to
(
CaseFormat
.
UPPER_UNDERSCORE
,
property
.
nameInCamelCase
.
replaceAll
(
"\\$"
,
""
)));
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets