mirror of
https://github.com/nsacyber/HIRS.git
synced 2025-02-07 03:40:10 +00:00
Cleaned up some stuff I found during code compare in github.
This commit is contained in:
parent
acc022d784
commit
5589096443
@ -288,18 +288,7 @@ public class ComponentIdentifier {
|
|||||||
|
|
||||||
return Collections.unmodifiableList(addresses);
|
return Collections.unmodifiableList(addresses);
|
||||||
}
|
}
|
||||||
//
|
|
||||||
// @Override
|
|
||||||
// public boolean equals(Object o) {
|
|
||||||
// if (this == o) return true;
|
|
||||||
// if (o == null || getClass() != o.getClass()) return false;
|
|
||||||
// ComponentIdentifier that = (ComponentIdentifier) o;
|
|
||||||
// return componentManufacturer.equals(that.componentManufacturer)
|
|
||||||
// && componentModel.equals(that.componentModel) && Objects.equals
|
|
||||||
// (componentSerial, that.componentSerial) && Objects.equals(componentRevision,
|
|
||||||
// that.componentRevision);
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(componentManufacturer, componentModel,
|
return Objects.hash(componentManufacturer, componentModel,
|
||||||
|
@ -111,8 +111,7 @@ public class ComponentInfo implements Serializable {
|
|||||||
componentManufacturer,
|
componentManufacturer,
|
||||||
componentModel,
|
componentModel,
|
||||||
componentSerial,
|
componentSerial,
|
||||||
componentRevision
|
componentRevision));
|
||||||
));
|
|
||||||
this.componentManufacturer = componentManufacturer.trim();
|
this.componentManufacturer = componentManufacturer.trim();
|
||||||
this.componentModel = componentModel.trim();
|
this.componentModel = componentModel.trim();
|
||||||
if (componentSerial != null) {
|
if (componentSerial != null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user