|
|
@ -106,17 +106,14 @@ public class LaunchScriptConfiguration implements Serializable {
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (this.script == null) {
|
|
|
|
if (this.script == null) {
|
|
|
|
if (other.script != null) {
|
|
|
|
return other.script == null;
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (!this.script.equals(other.script)) {
|
|
|
|
else if (!this.script.equals(other.script)) {
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (!equalContents(this.script, other.script)) {
|
|
|
|
else {
|
|
|
|
return false;
|
|
|
|
return equalContents(this.script, other.script);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private boolean equalContents(File one, File two) {
|
|
|
|
private boolean equalContents(File one, File two) {
|
|
|
@ -132,7 +129,7 @@ public class LaunchScriptConfiguration implements Serializable {
|
|
|
|
public int hashCode() {
|
|
|
|
public int hashCode() {
|
|
|
|
final int prime = 31;
|
|
|
|
final int prime = 31;
|
|
|
|
int result = 1;
|
|
|
|
int result = 1;
|
|
|
|
result = prime * result + ((this.properties == null) ? 0 : this.properties.hashCode());
|
|
|
|
result = prime * result + this.properties.hashCode();
|
|
|
|
result = prime * result + ((this.script == null) ? 0 : this.script.hashCode());
|
|
|
|
result = prime * result + ((this.script == null) ? 0 : this.script.hashCode());
|
|
|
|
return result;
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|