[ofbiz-framework] branch trunk updated: Fixed: NotSerializableException using uploadPartyContentFile service (OFBIZ-12050)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ofbiz-framework] branch trunk updated: Fixed: NotSerializableException using uploadPartyContentFile service (OFBIZ-12050)

jleroux@apache.org
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 9a6ed02  Fixed: NotSerializableException using uploadPartyContentFile service (OFBIZ-12050)
9a6ed02 is described below

commit 9a6ed0279bfec72f28e4209fabe6a38a294a2f8b
Author: Jacques Le Roux <[hidden email]>
AuthorDate: Fri Nov 6 11:27:16 2020 +0100

    Fixed: NotSerializableException using uploadPartyContentFile service (OFBIZ-12050)
   
    Removes a warning:
   
    UtilMisc.java:202: warning: [rawtypes] found raw type: Iterator
    Iterator itr = arrayList.iterator();
    ^
    missing type arguments for generic class Iterator<E>
    where E is a type-variable:
    E extends Object declared in interface Iterator
---
 framework/base/src/main/java/org/apache/ofbiz/base/util/UtilMisc.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilMisc.java b/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilMisc.java
index 3381038..5c724f9 100644
--- a/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilMisc.java
+++ b/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilMisc.java
@@ -199,7 +199,7 @@ public final class UtilMisc {
      */
     public static <V> void makeArrayListSerializable(ArrayList<Object> arrayList) {
         // now filter out all non-serializable values
-        Iterator itr = arrayList.iterator();
+        Iterator<Object> itr = arrayList.iterator();
         while (itr.hasNext()) {
             Object obj = itr.next();
             if (!(obj instanceof Serializable)) {