diff --git a/framework/common/src/main/java/org/apache/ofbiz/common/CommonServices.java b/framework/common/src/main/java/org/apache/ofbiz/common/CommonServices.java index c01822be4b..982f71ebb8 100644 --- a/framework/common/src/main/java/org/apache/ofbiz/common/CommonServices.java +++ b/framework/common/src/main/java/org/apache/ofbiz/common/CommonServices.java @@ -474,8 +474,7 @@ public class CommonServices { String line; - try ( - BufferedReader reader = new BufferedReader(new InputStreamReader(in, UtilIO.getUtf8())); + try (BufferedReader reader = new BufferedReader(new InputStreamReader(in, UtilIO.getUtf8())); Writer writer = new OutputStreamWriter(out, UtilIO.getUtf8())) { while ((line = reader.readLine()) != null) { Debug.logInfo("Read line: " + line, module); diff --git a/framework/common/src/main/java/org/apache/ofbiz/common/FindServices.java b/framework/common/src/main/java/org/apache/ofbiz/common/FindServices.java index 9f3b74aa4a..ac64e2c7d5 100644 --- a/framework/common/src/main/java/org/apache/ofbiz/common/FindServices.java +++ b/framework/common/src/main/java/org/apache/ofbiz/common/FindServices.java @@ -113,7 +113,7 @@ public class FindServices { // Contained in the associated entity. // Those extra fields will be ignored in the second half of this method. Map>> normalizedFields = new LinkedHashMap>>(); - for (Entry entry : inputFields.entrySet()) { // The name as it appeas in the HTML form + for (Entry entry : inputFields.entrySet()) { // The name as it appears in the HTML form String fieldNameRaw = entry.getKey(); String fieldNameRoot = null; // The entity field name. Everything to the left of the first "_" if // it exists, or the whole word, if not. @@ -697,7 +697,7 @@ public class FindServices { ModelEntity modelEntity = delegator.getModelEntity(entityName); Map normalizedFields = new LinkedHashMap(); //StringBuffer queryStringBuf = new StringBuffer(); - for (Entry entry : inputFields.entrySet()) { // The name as it appeas in the HTML form + for (Entry entry : inputFields.entrySet()) { // The name as it appears in the HTML form String fieldNameRaw = entry.getKey(); String fieldNameRoot = null; // The entity field name. Everything to the left of the first "_" if // it exists, or the whole word, if not.