You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@johnzon.apache.org by rm...@apache.org on 2022/08/08 15:33:29 UTC
[johnzon] branch master updated: try to have more java friendly names in PojoGenerator - bad completion
This is an automated email from the ASF dual-hosted git repository.
rmannibucau pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/johnzon.git
The following commit(s) were added to refs/heads/master by this push:
new 62dbff7b try to have more java friendly names in PojoGenerator - bad completion
62dbff7b is described below
commit 62dbff7b08764c98bf7b1dff8e437322d073a51d
Author: Romain Manni-Bucau <rm...@gmail.com>
AuthorDate: Mon Aug 8 17:33:26 2022 +0200
try to have more java friendly names in PojoGenerator - bad completion
---
.../java/org/apache/johnzon/jsonschema/generator/PojoGenerator.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/johnzon-jsonschema/src/main/java/org/apache/johnzon/jsonschema/generator/PojoGenerator.java b/johnzon-jsonschema/src/main/java/org/apache/johnzon/jsonschema/generator/PojoGenerator.java
index 29316bec..9fd9f4c4 100644
--- a/johnzon-jsonschema/src/main/java/org/apache/johnzon/jsonschema/generator/PojoGenerator.java
+++ b/johnzon-jsonschema/src/main/java/org/apache/johnzon/jsonschema/generator/PojoGenerator.java
@@ -563,7 +563,7 @@ public class PojoGenerator {
boolean up = true;
for (final char c : name.toCharArray()) {
if (up) {
- out.append(Character.isUpperCase(c));
+ out.append(Character.toUpperCase(c));
up = false;
} else if (c == '_') {
up = true;