IDEMPIERE-455 Discover and fix FindBugs problems / Pattern HE_EQUALS_USE_HASHCODE
This commit is contained in:
parent
5e425251c9
commit
d42b5a12c3
|
@ -419,6 +419,12 @@ public class MLocation extends X_C_Location implements Comparator<Object>
|
|||
return equals(cmp);
|
||||
} // equals
|
||||
|
||||
public int hashCode()
|
||||
{
|
||||
assert false : "hashCode not designed";
|
||||
return 42; // any arbitrary constant will do
|
||||
}
|
||||
|
||||
/**
|
||||
* Print Address Reverse Order
|
||||
* @return true if reverse depending on country
|
||||
|
|
|
@ -277,6 +277,12 @@ public final class MLookup extends Lookup implements Serializable
|
|||
return false;
|
||||
} // equals
|
||||
|
||||
public int hashCode()
|
||||
{
|
||||
assert false : "hashCode not designed";
|
||||
return 42; // any arbitrary constant will do
|
||||
}
|
||||
|
||||
/**
|
||||
* Return Size
|
||||
* @return size
|
||||
|
|
|
@ -232,6 +232,12 @@ public class MRfQResponseLineQty extends X_C_RfQResponseLineQty implements Compa
|
|||
return false;
|
||||
} // equals
|
||||
|
||||
public int hashCode()
|
||||
{
|
||||
assert false : "hashCode not designed";
|
||||
return 42; // any arbitrary constant will do
|
||||
}
|
||||
|
||||
/**
|
||||
* Before Save
|
||||
* @param newRecord new
|
||||
|
|
|
@ -235,6 +235,12 @@ public final class MultiMap<K,V> implements Map<K,V>, Serializable
|
|||
throw new java.lang.UnsupportedOperationException("Method equals() not implemented.");
|
||||
}
|
||||
|
||||
public int hashCode()
|
||||
{
|
||||
assert false : "hashCode not designed";
|
||||
return 42; // any arbitrary constant will do
|
||||
}
|
||||
|
||||
/**************************************************************************
|
||||
* Returns class name and number of entries
|
||||
* @return info
|
||||
|
|
|
@ -314,6 +314,12 @@ public abstract class PO
|
|||
return super.equals(cmp);
|
||||
} // equals
|
||||
|
||||
public int hashCode()
|
||||
{
|
||||
assert false : "hashCode not designed";
|
||||
return 42; // any arbitrary constant will do
|
||||
}
|
||||
|
||||
/**
|
||||
* Compare based on DocumentNo, Value, Name, Description
|
||||
* @param o1 Object 1
|
||||
|
|
|
@ -412,6 +412,12 @@ public class CPaper extends Paper
|
|||
return false;
|
||||
} // equals
|
||||
|
||||
public int hashCode()
|
||||
{
|
||||
assert false : "hashCode not designed";
|
||||
return 42; // any arbitrary constant will do
|
||||
}
|
||||
|
||||
/*************************************************************************/
|
||||
|
||||
/**
|
||||
|
|
|
@ -165,6 +165,12 @@ public final class MSort implements Comparator<Object>, Serializable
|
|||
return false;
|
||||
} // equals
|
||||
|
||||
public int hashCode()
|
||||
{
|
||||
assert false : "hashCode not designed";
|
||||
return 42; // any arbitrary constant will do
|
||||
}
|
||||
|
||||
/**
|
||||
* String Representation
|
||||
* @return info
|
||||
|
|
|
@ -104,6 +104,12 @@ public class ALayoutConstraint implements Comparable<Object>
|
|||
return false;
|
||||
} // equal
|
||||
|
||||
public int hashCode()
|
||||
{
|
||||
assert false : "hashCode not designed";
|
||||
return 42; // any arbitrary constant will do
|
||||
}
|
||||
|
||||
/**
|
||||
* To String
|
||||
* @return info
|
||||
|
|
|
@ -104,6 +104,12 @@ public class ALayoutConstraint implements Comparable<Object>
|
|||
return false;
|
||||
} // equal
|
||||
|
||||
public int hashCode()
|
||||
{
|
||||
assert false : "hashCode not designed";
|
||||
return 42; // any arbitrary constant will do
|
||||
}
|
||||
|
||||
/**
|
||||
* To String
|
||||
* @return info
|
||||
|
|
Loading…
Reference in New Issue