IDEMPIERE-455 Discover and fix FindBugs problems / Eclipse warning -> The serializable class does not declare a static final serialVersionUID field of type long

This commit is contained in:
Richard Morales 2012-12-12 17:32:09 -05:00
parent 7ba478f6c2
commit 624d5862e2
27 changed files with 131 additions and 1 deletions

View File

@ -18,6 +18,11 @@ import org.idempiere.fa.feature.UseLifeImpl;
*/ */
public class MAssetClass extends X_A_Asset_Class public class MAssetClass extends X_A_Asset_Class
{ {
/**
*
*/
private static final long serialVersionUID = -6526341869523579715L;
/** /**
* *
*/ */

View File

@ -9,6 +9,11 @@ import org.compiere.util.DB;
** @version $Id: X_A_Asset.java,v 1.88 2004/08/27 21:26:37 jjanke Exp $ */ ** @version $Id: X_A_Asset.java,v 1.88 2004/08/27 21:26:37 jjanke Exp $ */
public class MAssetUse extends X_A_Asset_Use public class MAssetUse extends X_A_Asset_Use
{ {
/**
*
*/
private static final long serialVersionUID = -1247516669047870893L;
public MAssetUse (Properties ctx, int A_Asset_Use_ID, String trxName) public MAssetUse (Properties ctx, int A_Asset_Use_ID, String trxName)
{ {
super (ctx, A_Asset_Use_ID, trxName); super (ctx, A_Asset_Use_ID, trxName);

View File

@ -10,6 +10,10 @@ import java.util.Properties;
*/ */
public class MDepreciationBuild extends X_A_Depreciation_Build public class MDepreciationBuild extends X_A_Depreciation_Build
{ {
/**
*
*/
private static final long serialVersionUID = 2075917470265913988L;
/** Standard Constructor */ /** Standard Constructor */
public MDepreciationBuild (Properties ctx, int A_Depreciation_Build_ID, String trxName) public MDepreciationBuild (Properties ctx, int A_Depreciation_Build_ID, String trxName)
{ {

View File

@ -16,6 +16,11 @@ import org.compiere.util.DB;
*/ */
public class MDepreciationConvention extends X_A_Depreciation_Convention public class MDepreciationConvention extends X_A_Depreciation_Convention
{ {
/**
*
*/
private static final long serialVersionUID = 2274629486216430723L;
/** /**
* Default Constructor * Default Constructor
* @param ctx context * @param ctx context

View File

@ -19,6 +19,11 @@ import org.compiere.util.DB;
*/ */
public class MDepreciationMethod extends X_A_Depreciation_Method public class MDepreciationMethod extends X_A_Depreciation_Method
{ {
/**
*
*/
private static final long serialVersionUID = 4622027905888469713L;
/** Standard Constructor */ /** Standard Constructor */
public MDepreciationMethod (Properties ctx, int A_Depreciation_Method_ID, String trxName) public MDepreciationMethod (Properties ctx, int A_Depreciation_Method_ID, String trxName)
{ {

View File

@ -5,6 +5,11 @@ import java.util.Properties;
public class MQualityTest extends X_M_QualityTest { public class MQualityTest extends X_M_QualityTest {
/**
*
*/
private static final long serialVersionUID = -8585270006299484402L;
public MQualityTest(Properties ctx, int M_QualityTest_ID, String trxName) { public MQualityTest(Properties ctx, int M_QualityTest_ID, String trxName) {
super(ctx, M_QualityTest_ID, trxName); super(ctx, M_QualityTest_ID, trxName);
} }

View File

@ -4,6 +4,11 @@ import java.util.Properties;
public class MQualityTestResult extends X_M_QualityTestResult { public class MQualityTestResult extends X_M_QualityTestResult {
/**
*
*/
private static final long serialVersionUID = -4253026765149175778L;
public MQualityTestResult(Properties ctx, int M_QualityTestResult_ID, public MQualityTestResult(Properties ctx, int M_QualityTestResult_ID,
String trxName) { String trxName) {
super(ctx, M_QualityTestResult_ID, trxName); super(ctx, M_QualityTestResult_ID, trxName);

View File

@ -9,6 +9,10 @@ import org.compiere.util.Env;
** @version $Id: X_A_Asset.java,v 1.88 2004/08/27 21:26:37 jjanke Exp $ */ ** @version $Id: X_A_Asset.java,v 1.88 2004/08/27 21:26:37 jjanke Exp $ */
public class MXIFAJournal extends X_I_FAJournal public class MXIFAJournal extends X_I_FAJournal
{ {
/**
*
*/
private static final long serialVersionUID = -1173588601522240768L;
public MXIFAJournal (Properties ctx, int I_FAJournal_ID, String trxName) public MXIFAJournal (Properties ctx, int I_FAJournal_ID, String trxName)
{ {
super (ctx, I_FAJournal_ID, trxName); super (ctx, I_FAJournal_ID, trxName);

View File

@ -41,6 +41,11 @@ import org.compiere.print.MPrintFormatItem;
*/ */
public class BarcodeElement extends PrintElement public class BarcodeElement extends PrintElement
{ {
/**
*
*/
private static final long serialVersionUID = -935853466496345172L;
/** /**
* Barcode Element Constructor * Barcode Element Constructor
* @param code barcode data string * @param code barcode data string

View File

@ -33,6 +33,11 @@ import org.compiere.print.MPrintFormatItem;
*/ */
public class BoxElement extends PrintElement public class BoxElement extends PrintElement
{ {
/**
*
*/
private static final long serialVersionUID = -1956804687979601523L;
/** /**
* BoxElement * BoxElement
* @param item item * @param item item

View File

@ -30,6 +30,11 @@ import org.compiere.print.MPrintGraph;
*/ */
public class GraphElement extends PrintElement public class GraphElement extends PrintElement
{ {
/**
*
*/
private static final long serialVersionUID = -1723609598698053387L;
/** /**
* Constructor * Constructor
* @param pg graph model * @param pg graph model

View File

@ -36,6 +36,11 @@ import java.util.Properties;
*/ */
public class GridElement extends PrintElement public class GridElement extends PrintElement
{ {
/**
*
*/
private static final long serialVersionUID = 1744788593309619751L;
/** /**
* Grid Element Constructor * Grid Element Constructor
* Call setData to initialize content * Call setData to initialize content

View File

@ -32,6 +32,12 @@ import java.util.Properties;
*/ */
public class HTMLElement extends PrintElement public class HTMLElement extends PrintElement
{ {
/**
*
*/
private static final long serialVersionUID = -7752468251586676726L;
/** /**
* HTML String Constructor * HTML String Constructor
* @param html html code * @param html html code

View File

@ -43,6 +43,11 @@ import org.compiere.util.Env;
*/ */
public class ImageElement extends PrintElement public class ImageElement extends PrintElement
{ {
/**
*
*/
private static final long serialVersionUID = 905615948952506059L;
/** /**
* Create Image from URL * Create Image from URL
* @param imageURLString image url * @param imageURLString image url

View File

@ -40,6 +40,11 @@ import org.compiere.model.MLocation;
*/ */
public class LocationElement extends GridElement public class LocationElement extends GridElement
{ {
/**
*
*/
private static final long serialVersionUID = -6740297090803465288L;
/** /**
* Constructor * Constructor
* @param ctx context * @param ctx context

View File

@ -31,6 +31,10 @@ import org.compiere.util.Util;
* <li>FR [ 1966406 ] Report Engine: AD_PInstance_Logs should be displayed * <li>FR [ 1966406 ] Report Engine: AD_PInstance_Logs should be displayed
*/ */
public class PInstanceLogElement extends GridElement { public class PInstanceLogElement extends GridElement {
/**
*
*/
private static final long serialVersionUID = 8315529954507023182L;
private int m_effectiveRowCount = 0; private int m_effectiveRowCount = 0;
public PInstanceLogElement(Properties ctx, MQuery query, MPrintTableFormat tFormat) public PInstanceLogElement(Properties ctx, MQuery query, MPrintTableFormat tFormat)

View File

@ -30,6 +30,11 @@ import org.compiere.util.Msg;
*/ */
public class ParameterElement extends GridElement public class ParameterElement extends GridElement
{ {
/**
*
*/
private static final long serialVersionUID = 4702399095192668527L;
/** /**
* Parameter Element. * Parameter Element.
* <pre> * <pre>

View File

@ -48,6 +48,11 @@ import org.compiere.util.Util;
*/ */
public class StringElement extends PrintElement public class StringElement extends PrintElement
{ {
/**
*
*/
private static final long serialVersionUID = 239112399504036626L;
/** /**
* Standard Field Constructor. * Standard Field Constructor.
* Created in LayoutEngine * Created in LayoutEngine

View File

@ -79,6 +79,12 @@ import org.compiere.util.ValueNamePair;
*/ */
public class TableElement extends PrintElement public class TableElement extends PrintElement
{ {
/**
*
*/
private static final long serialVersionUID = 4185521888252077894L;
/** /**
* Constructor. * Constructor.
* Created in LayoutEngine. * Created in LayoutEngine.

View File

@ -12,6 +12,10 @@ import javax.servlet.http.HttpServlet;
public class DelegatingServlet extends HttpServlet { public class DelegatingServlet extends HttpServlet {
/**
*
*/
private static final long serialVersionUID = 7061080629329202814L;
private final HttpServlet delegate; private final HttpServlet delegate;
public DelegatingServlet(HttpServlet delegate) { public DelegatingServlet(HttpServlet delegate) {

View File

@ -540,6 +540,11 @@ public class WTreeBOM extends TreeBOM implements IFormController, EventListener<
class mySimpleTreeNode extends DefaultTreeNode<Object> class mySimpleTreeNode extends DefaultTreeNode<Object>
{ {
/**
*
*/
private static final long serialVersionUID = -7430786399068849936L;
public mySimpleTreeNode(Object data, List<TreeNode<Object>> children) { public mySimpleTreeNode(Object data, List<TreeNode<Object>> children) {
super(data, children); super(data, children);

View File

@ -177,7 +177,12 @@ public class NumberBox extends Div
private Popup getCalculatorPopup() private Popup getCalculatorPopup()
{ {
Popup popup = new Popup() { Popup popup = new Popup() {
@Override /**
*
*/
private static final long serialVersionUID = -5991248152956632527L;
@Override
public void onPageAttached(Page newpage, Page oldpage) { public void onPageAttached(Page newpage, Page oldpage) {
super.onPageAttached(newpage, oldpage); super.onPageAttached(newpage, oldpage);
if (newpage != null) { if (newpage != null) {

View File

@ -23,6 +23,10 @@ import org.zkoss.zk.ui.event.Event;
*/ */
public class DrillEvent extends Event { public class DrillEvent extends Event {
/**
*
*/
private static final long serialVersionUID = 4877800961258241047L;
public final static String ON_DRILL_DOWN = "onDrillDown"; public final static String ON_DRILL_DOWN = "onDrillDown";
public final static String ON_DRILL_ACROSS = "onDrillAcross"; public final static String ON_DRILL_ACROSS = "onDrillAcross";

View File

@ -23,6 +23,10 @@ import org.zkoss.zk.ui.event.Event;
*/ */
public class TokenEvent extends Event { public class TokenEvent extends Event {
/**
*
*/
private static final long serialVersionUID = 7727018026113457776L;
/** on loading of user token **/ /** on loading of user token **/
public final static String ON_USER_TOKEN = "onUserToken"; public final static String ON_USER_TOKEN = "onUserToken";

View File

@ -23,6 +23,10 @@ import org.zkoss.zk.ui.event.Event;
*/ */
public class ZoomEvent extends Event { public class ZoomEvent extends Event {
/**
*
*/
private static final long serialVersionUID = -8857628145535148973L;
public final static String EVENT_NAME = "onZoom"; public final static String EVENT_NAME = "onZoom";
public ZoomEvent(Component target, Object data) { public ZoomEvent(Component target, Object data) {

View File

@ -15,6 +15,11 @@ import org.idempiere.fitnesse.server.Runner;
* *
*/ */
public class SlimServlet extends HttpServlet { public class SlimServlet extends HttpServlet {
/**
*
*/
private static final long serialVersionUID = 4811874706328623672L;
@Override @Override
public void service(ServletRequest request, ServletResponse response) throws ServletException, IOException { public void service(ServletRequest request, ServletResponse response) throws ServletException, IOException {
String portNumber = request.getParameter(SlimServerParameters.PORT); String portNumber = request.getParameter(SlimServerParameters.PORT);

View File

@ -22,6 +22,11 @@ public class WWindowStatus
{ {
public static class AD_WrongTabException extends Exception public static class AD_WrongTabException extends Exception
{ {
/**
*
*/
private static final long serialVersionUID = -8949499217396844364L;
public AD_WrongTabException( String msg ) { public AD_WrongTabException( String msg ) {
super(msg); super(msg);
} }