[ofbiz-framework] branch release18.12 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 release18.12 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 release18.12
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/release18.12 by this push:
     new b420b0e  Fixed: NotSerializableException using uploadPartyContentFile service (OFBIZ-12050)
b420b0e is described below

commit b420b0ea5dbb4f89e72acd9149bc5af246e68dcd
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 9176094..cd4229f 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
@@ -208,7 +208,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)) {