Files
why3/bench/java/expected/Exception2.java
2024-10-02 11:28:58 +02:00

45 lines
844 B
Java

/* This file has been extracted from module Exception2. */
public class Exception2 extends Exception {
public final int value;
public final boolean d;
public final boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (!(this.getClass() == obj.getClass())) {
return false;
}
Exception2 other = (Exception2) obj;
if (!(this.value == other.value)) {
return false;
}
if (!(this.d == other.d)) {
return false;
}
return true;
}
public final int hashCode() {
int hashValue = 1;
hashValue = 31 * hashValue + this.value;
hashValue = 31 * hashValue + (this.d ? 1 : 0);
return hashValue;
}
public Exception2(int i) {
this.value = i;
this.d = false;
}
}