From cd24e364096d1e05d063de86c4abad63f3486e58 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Tue, 8 Mar 2011 11:00:56 -0500 Subject: [PATCH] Implement best practice in some classes suppressing warning about serialVersionUID: http://www.adempiere.com/index.php/Release_Commit_Rules#I9_-_Regenerate_serialVersionUID_when_required_.28B.29 --- org.adempiere.base/src/org/compiere/model/MAd.java | 5 ++++- org.adempiere.base/src/org/compiere/model/MTemplate.java | 7 ++++++- .../src/org/adempiere/plaf/PLAFEditorPanel.java | 6 +++++- .../src/org/compiere/apps/ProcessParameterPanel.java | 6 +++++- 4 files changed, 20 insertions(+), 4 deletions(-) diff --git a/org.adempiere.base/src/org/compiere/model/MAd.java b/org.adempiere.base/src/org/compiere/model/MAd.java index 794e3d3c24..6f2232c8a5 100644 --- a/org.adempiere.base/src/org/compiere/model/MAd.java +++ b/org.adempiere.base/src/org/compiere/model/MAd.java @@ -26,9 +26,12 @@ import javax.servlet.http.HttpServletRequest; * @author Yves Sandfort * @version $Id$ */ -@SuppressWarnings("serial") public class MAd extends X_CM_Ad { + /** + * + */ + private static final long serialVersionUID = 7016174881466935574L; /** * Standard constructor for AD diff --git a/org.adempiere.base/src/org/compiere/model/MTemplate.java b/org.adempiere.base/src/org/compiere/model/MTemplate.java index 4c7c23d410..4873867ac6 100644 --- a/org.adempiere.base/src/org/compiere/model/MTemplate.java +++ b/org.adempiere.base/src/org/compiere/model/MTemplate.java @@ -32,9 +32,14 @@ import org.compiere.util.DB; * @author Yves Sandfort * @version $Id: MTemplate.java,v 1.12 2006/08/08 18:56:05 comdivision Exp $ */ -@SuppressWarnings("serial") public class MTemplate extends X_CM_Template { + /** + * + */ + private static final long serialVersionUID = -2349891937695644752L; + + /** * Get MTemplate from Cache * diff --git a/org.adempiere.ui.swing/src/org/adempiere/plaf/PLAFEditorPanel.java b/org.adempiere.ui.swing/src/org/adempiere/plaf/PLAFEditorPanel.java index 66b96f4b33..d3f7e9c315 100644 --- a/org.adempiere.ui.swing/src/org/adempiere/plaf/PLAFEditorPanel.java +++ b/org.adempiere.ui.swing/src/org/adempiere/plaf/PLAFEditorPanel.java @@ -64,8 +64,12 @@ import sun.awt.AppContext; * @author Low Heng Sin * @version 2006-11-27 */ -@SuppressWarnings("serial") public class PLAFEditorPanel extends CPanel { + /** + * + */ + private static final long serialVersionUID = 3991197818429424319L; + /** Logger */ private static Logger log = Logger.getLogger(PLAFEditor.class.getName()); diff --git a/org.adempiere.ui.swing/src/org/compiere/apps/ProcessParameterPanel.java b/org.adempiere.ui.swing/src/org/compiere/apps/ProcessParameterPanel.java index bcd591525f..1908f64b55 100644 --- a/org.adempiere.ui.swing/src/org/compiere/apps/ProcessParameterPanel.java +++ b/org.adempiere.ui.swing/src/org/compiere/apps/ProcessParameterPanel.java @@ -57,8 +57,12 @@ import org.compiere.util.Env; *
  • BF [ 2548216 ] Process Param Panel is not showing any parameter if error * @version 2006-12-01 */ -@SuppressWarnings("serial") public class ProcessParameterPanel extends CPanel implements VetoableChangeListener, IProcessParameter { + /** + * + */ + private static final long serialVersionUID = 4042260793108029845L; + /** * Dynamic generated Parameter panel. * @param WindowNo window