svn commit: r1809821 - in /ofbiz/ofbiz-framework/trunk/framework/widget/src/main/java/org/apache/ofbiz/widget: model/ModelTheme.java renderer/VisualTheme.java

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

svn commit: r1809821 - in /ofbiz/ofbiz-framework/trunk/framework/widget/src/main/java/org/apache/ofbiz/widget: model/ModelTheme.java renderer/VisualTheme.java

jleroux@apache.org
Author: jleroux
Date: Wed Sep 27 09:43:10 2017
New Revision: 1809821

URL: http://svn.apache.org/viewvc?rev=1809821&view=rev
Log:
Fixed: Unable to run the MRP
(OFBIZ-9794)

This is only loosely related to this issue but I believe it could help and is
needed anyway

Modified:
    ofbiz/ofbiz-framework/trunk/framework/widget/src/main/java/org/apache/ofbiz/widget/model/ModelTheme.java
    ofbiz/ofbiz-framework/trunk/framework/widget/src/main/java/org/apache/ofbiz/widget/renderer/VisualTheme.java

Modified: ofbiz/ofbiz-framework/trunk/framework/widget/src/main/java/org/apache/ofbiz/widget/model/ModelTheme.java
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/framework/widget/src/main/java/org/apache/ofbiz/widget/model/ModelTheme.java?rev=1809821&r1=1809820&r2=1809821&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/framework/widget/src/main/java/org/apache/ofbiz/widget/model/ModelTheme.java (original)
+++ ofbiz/ofbiz-framework/trunk/framework/widget/src/main/java/org/apache/ofbiz/widget/model/ModelTheme.java Wed Sep 27 09:43:10 2017
@@ -24,6 +24,7 @@ import java.util.Collections;
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
+
 import org.apache.commons.lang.SerializationUtils;
 import org.apache.ofbiz.base.util.Debug;
 import org.apache.ofbiz.base.util.GeneralException;
@@ -352,7 +353,8 @@ public class ModelTheme implements Seria
     /**
      * the ModelTemplate class, manage the complexity of macro library definition and the rendering technology
      */
-    private class ModelTemplate {
+    @SuppressWarnings("serial")
+    private class ModelTemplate implements Serializable {
         private final String name;
         private final String type;
         private final String compress;

Modified: ofbiz/ofbiz-framework/trunk/framework/widget/src/main/java/org/apache/ofbiz/widget/renderer/VisualTheme.java
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/framework/widget/src/main/java/org/apache/ofbiz/widget/renderer/VisualTheme.java?rev=1809821&r1=1809820&r2=1809821&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/framework/widget/src/main/java/org/apache/ofbiz/widget/renderer/VisualTheme.java (original)
+++ ofbiz/ofbiz-framework/trunk/framework/widget/src/main/java/org/apache/ofbiz/widget/renderer/VisualTheme.java Wed Sep 27 09:43:10 2017
@@ -18,10 +18,12 @@
  *******************************************************************************/
 package org.apache.ofbiz.widget.renderer;
 
+import java.io.Serializable;
 import java.util.ArrayList;
 import java.util.Collections;
 import java.util.List;
 import java.util.Map;
+
 import org.apache.ofbiz.base.util.UtilXml;
 import org.apache.ofbiz.base.util.string.FlexibleStringExpander;
 import org.apache.ofbiz.widget.model.ModelTheme;
@@ -30,8 +32,9 @@ import org.w3c.dom.Element;
 /**
  * Widget Theme Library - VisualTheme class
  */
-public final class VisualTheme {
-
+@SuppressWarnings("serial")
+public final class VisualTheme implements Serializable {
+    
     public static final String module = VisualTheme.class.getName();
     private ModelTheme modelTheme;
     private final String visualThemeId;