Skip to content

Commit 96fd717

Browse files
committed
Renaming some duplicate variables
1 parent c1f2ded commit 96fd717

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

src/main/java/org/computate/frFR/java/EcrireApiClasse.java

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1947,16 +1947,16 @@ public void ecrireGenApiServiceImpl2(String classeLangueNom) throws Exception {
19471947
tl(10, "fqs.add(String.format(\"%s:%s\", \"", StringUtils.substringAfter(classeRessourceAutorisation, "-"), "\", ", i18nGlobale.getString(I18n.var_valeur), "));");
19481948
tl(9, "});");
19491949
}
1950-
tl(7, "JsonObject params = ", i18nGlobale.getString(I18n.var_requeteSite), ".get", i18nGlobale.getString(I18n.var_RequeteService), "().getParams();");
1951-
tl(7, "JsonObject query = params.getJsonObject(\"query\");");
1952-
tl(7, "if(query == null) {");
1953-
tl(8, "query = new JsonObject();");
1954-
tl(8, "params.put(\"query\", query);");
1950+
tl(7, "JsonObject authParams = ", i18nGlobale.getString(I18n.var_requeteSite), ".get", i18nGlobale.getString(I18n.var_RequeteService), "().getParams();");
1951+
tl(7, "JsonObject authQuery = authParams.getJsonObject(\"query\");");
1952+
tl(7, "if(authQuery == null) {");
1953+
tl(8, "authQuery = new JsonObject();");
1954+
tl(8, "authParams.put(\"query\", authQuery);");
19551955
tl(7, "}");
1956-
tl(7, "JsonArray fq = query.getJsonArray(\"fq\");");
1956+
tl(7, "JsonArray fq = authQuery.getJsonArray(\"fq\");");
19571957
tl(7, "if(fq == null) {");
19581958
tl(8, "fq = new JsonArray();");
1959-
tl(8, "query.put(\"fq\", fq);");
1959+
tl(8, "authQuery.put(\"fq\", fq);");
19601960
tl(7, "}");
19611961
tl(7, "if(fqs.size() > 0) {");
19621962
tl(8, "fq.add(fqs.stream().collect(Collectors.joining(\" OR \")));");
@@ -2158,16 +2158,16 @@ public void ecrireGenApiServiceImpl2(String classeLangueNom) throws Exception {
21582158
tl(9, "fqs.add(String.format(\"%s:%s\", \"", StringUtils.substringAfter(classeRessourceAutorisation, "-"), "\", ", i18nGlobale.getString(I18n.var_valeur), "));");
21592159
tl(8, "});");
21602160
}
2161-
tl(6, "JsonObject params = ", i18nGlobale.getString(I18n.var_requeteSite), ".get", i18nGlobale.getString(I18n.var_RequeteService), "().getParams();");
2162-
tl(6, "JsonObject query = params.getJsonObject(\"query\");");
2163-
tl(6, "if(query == null) {");
2164-
tl(7, "query = new JsonObject();");
2165-
tl(7, "params.put(\"query\", query);");
2161+
tl(6, "JsonObject authParams = ", i18nGlobale.getString(I18n.var_requeteSite), ".get", i18nGlobale.getString(I18n.var_RequeteService), "().getParams();");
2162+
tl(6, "JsonObject authQuery = authParams.getJsonObject(\"query\");");
2163+
tl(6, "if(authQuery == null) {");
2164+
tl(7, "authQuery = new JsonObject();");
2165+
tl(7, "authParams.put(\"query\", authQuery);");
21662166
tl(6, "}");
2167-
tl(6, "JsonArray fq = query.getJsonArray(\"fq\");");
2167+
tl(6, "JsonArray fq = authQuery.getJsonArray(\"fq\");");
21682168
tl(6, "if(fq == null) {");
21692169
tl(7, "fq = new JsonArray();");
2170-
tl(7, "query.put(\"fq\", fq);");
2170+
tl(7, "authQuery.put(\"fq\", fq);");
21712171
tl(6, "}");
21722172
tl(6, "if(fqs.size() > 0) {");
21732173
tl(7, "fq.add(fqs.stream().collect(Collectors.joining(\" OR \")));");

0 commit comments

Comments
 (0)