Skip to content

Commit

Permalink
Fixing a bug with arrays in API
Browse files Browse the repository at this point in the history
  • Loading branch information
computate committed Dec 13, 2023
1 parent 6e0945b commit 6b112db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/computate/frFR/java/EcrireGenClasse.java
Original file line number Diff line number Diff line change
Expand Up @@ -5128,9 +5128,9 @@ else if(entiteNomSimple.equals("List") || entiteNomSimple.equals("ArrayList") ||
tl(4, "if(val instanceof ", entiteNomSimple, "<?>) {");
tl(5, "((", entiteNomSimpleComplet, ")val).stream().forEach(v -> add", entiteVarCapitalise, "(v));");
tl(4, "} else if(val instanceof JsonArray) {");
tl(5, "((JsonArray)val).stream().forEach(v -> set", entiteVarCapitalise, "(v.toString()));");
tl(5, "((JsonArray)val).stream().forEach(v -> add", entiteVarCapitalise, "(staticSet", entiteVarCapitalise, "(", langueConfig.getString(ConfigCles.var_requeteSite), "_, v.toString())));");
tl(4, "} else if(val instanceof ", entiteNomSimpleGenerique, "[]) {");
tl(5, "Arrays.asList((", entiteNomSimpleGenerique, "[])val).stream().forEach(v -> set", entiteVarCapitalise, "((", entiteNomSimpleGenerique, ")v));");
tl(5, "Arrays.asList((", entiteNomSimpleGenerique, "[])val).stream().forEach(v -> add", entiteVarCapitalise, "((", entiteNomSimpleGenerique, ")v));");
if(VAL_nomCanoniqueLong.equals(entiteNomCanoniqueGenerique)
|| VAL_nomCanoniqueInteger.equals(entiteNomCanoniqueGenerique)
|| VAL_nomCanoniqueDouble.equals(entiteNomCanoniqueGenerique)
Expand Down

0 comments on commit 6b112db

Please sign in to comment.