@Test public void nothing_set_equals() { assertTrue(metaData1.equals(metaData2)); assertTrue(metaData2.equals(metaData1)); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; FalsePositiveMetaData other = (FalsePositiveMetaData) obj; return Objects.equals(code, other.code) && Objects.equals(name, other.name) && scanType == other.scanType && severity == other.severity; }
FalsePositiveMetaData { @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; FalsePositiveMetaData other = (FalsePositiveMetaData) obj; return Objects.equals(code, other.code) && Objects.equals(name, other.name) && scanType == other.scanType && severity == other.severity; } }
FalsePositiveMetaData { @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; FalsePositiveMetaData other = (FalsePositiveMetaData) obj; return Objects.equals(code, other.code) && Objects.equals(name, other.name) && scanType == other.scanType && severity == other.severity; }  }
FalsePositiveMetaData { @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; FalsePositiveMetaData other = (FalsePositiveMetaData) obj; return Objects.equals(code, other.code) && Objects.equals(name, other.name) && scanType == other.scanType && severity == other.severity; }  void setOwasp(String owasp); String getOwasp(); String getCveId(); void setCveId(String cveId); Integer getCweId(); void setCweId(Integer cweId); FalsePositiveCodeMetaData getCode(); void setCode(FalsePositiveCodeMetaData code); String getName(); void setName(String name); void setSeverity(Severity severity); Severity getSeverity(); ScanType getScanType(); void setScanType(ScanType scanType); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); }
FalsePositiveMetaData { @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; FalsePositiveMetaData other = (FalsePositiveMetaData) obj; return Objects.equals(code, other.code) && Objects.equals(name, other.name) && scanType == other.scanType && severity == other.severity; }  void setOwasp(String owasp); String getOwasp(); String getCveId(); void setCveId(String cveId); Integer getCweId(); void setCweId(Integer cweId); FalsePositiveCodeMetaData getCode(); void setCode(FalsePositiveCodeMetaData code); String getName(); void setName(String name); void setSeverity(Severity severity); Severity getSeverity(); ScanType getScanType(); void setScanType(ScanType scanType); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); static final String PROPERTY_SCANTYPE; static final String PROPERTY_NAME; static final String PROPERTY_CWE_ID; static final String PROPERTY_CVE_ID; static final String PROPERTY_OWASP; static final String PROPERTY_SEVERITY; static final String PROPERTY_CODE; }