This is an automated email from the ASF dual-hosted git repository.
jleroux pushed a commit to branch release22.01
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/release22.01 by this push:
new 2cf8d185f0 Improved: Json response failed when element not
serializable (OFBIZ-12621)
2cf8d185f0 is described below
commit 2cf8d185f01b87a75e5f74161ca0db6b5767f516
Author: Jacques Le Roux <[email protected]>
AuthorDate: Thu May 26 12:23:54 2022 +0200
Improved: Json response failed when element not serializable (OFBIZ-12621)
No functional changes, just removing a compilation warning
While compiling with Java 11 I got this message:
> Task :compileJava
UtilHttp.java:502: warning: [unchecked] unchecked call to
<R>map(Function<? super T,? extends R>) as a member of the raw type Stream
[...]
This fixes it with the help of Eclipse
---
framework/base/src/main/java/org/apache/ofbiz/base/util/UtilHttp.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilHttp.java
b/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilHttp.java
index 2edcc8e5e7..91b7810d2f 100644
--- a/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilHttp.java
+++ b/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilHttp.java
@@ -499,7 +499,7 @@ public final class UtilHttp {
} else if (val instanceof Map<?, ?>) {
return parseJSONAttributeMap(UtilGenerics.cast(val));
} else if (val instanceof List<?>) {
- return ((List)
val).stream().map(UtilHttp::parseJSONAttributeValue).collect(Collectors.toList());
+ return ((List<?>)
val).stream().map(UtilHttp::parseJSONAttributeValue).collect(Collectors.toList());
}
return null;
}