CPD Results
The following document contains the results of PMD's CPD 4.2.5.
Duplications
| File | Line |
|---|
| org/jclouds/cloudsigma/domain/StaticIPInfo.java | 90 |
| org/jclouds/cloudsigma/domain/StaticIPInfo.java | 195 |
StaticIPInfo other = (StaticIPInfo) obj;
if (gateway == null) {
if (other.gateway != null)
return false;
} else if (!gateway.equals(other.gateway))
return false;
if (nameservers == null) {
if (other.nameservers != null)
return false;
} else if (!nameservers.equals(other.nameservers))
return false;
if (netmask == null) {
if (other.netmask != null)
return false;
} else if (!netmask.equals(other.netmask))
return false;
if (user == null) {
if (other.user != null)
return false;
} else if (!user.equals(other.user))
return false;
if (ip == null) {
if (other.ip != null)
return false;
} else if (!ip.equals(other.ip))
return false;
return true;
} |
| File | Line |
|---|
| org/jclouds/cloudsigma/domain/StaticIPInfo.java | 68 |
| org/jclouds/cloudsigma/domain/StaticIPInfo.java | 173 |
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((gateway == null) ? 0 : gateway.hashCode());
result = prime * result + ((nameservers == null) ? 0 : nameservers.hashCode());
result = prime * result + ((netmask == null) ? 0 : netmask.hashCode());
result = prime * result + ((user == null) ? 0 : user.hashCode());
result = prime * result + ((ip == null) ? 0 : ip.hashCode());
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false; |
| File | Line |
|---|
| org/jclouds/cloudsigma/domain/Item.java | 63 |
| org/jclouds/cloudsigma/domain/VLANInfo.java | 59 |
result = prime * result + ((user == null) ? 0 : user.hashCode());
result = prime * result + ((uuid == null) ? 0 : uuid.hashCode());
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
Builder other = (Builder) obj;
if (name == null) {
if (other.name != null)
return false;
} else if (!name.equals(other.name))
return false;
if (user == null) { |
| File | Line |
|---|
| org/jclouds/cloudsigma/domain/CreateDriveRequest.java | 57 |
| org/jclouds/cloudsigma/domain/DriveData.java | 36 |
}
/**
* {@inheritDoc}
*/
@Override
public Builder name(String name) {
return Builder.class.cast(super.name(name));
}
/**
* {@inheritDoc}
*/
@Override
public Builder readers(Iterable<String> readers) {
return Builder.class.cast(super.readers(readers));
}
/**
* {@inheritDoc}
*/
@Override
public Builder size(long size) {
return Builder.class.cast(super.size(size));
}
/**
* {@inheritDoc}
*/
@Override
public Builder use(Iterable<String> use) {
return Builder.class.cast(super.use(use));
}
public DriveData build() { |