This is an automated email from the ASF dual-hosted git repository.

jleroux pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 088b22235d Improved: Json response failed when element not 
serializable (OFBIZ-12621)
088b22235d is described below

commit 088b22235dee122b8b0978d16c1078258b29a324
Author: Jacques Le Roux <jacques.le.r...@les7arts.com>
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;
     }

Reply via email to