We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5727ca commit 314217eCopy full SHA for 314217e
src/java.base/share/classes/jdk/internal/misc/Signal.java
@@ -98,12 +98,12 @@ public String getName() {
98
* @param other the object to compare with.
99
* @return whether two <code>Signal</code> objects are equal.
100
*/
101
- public boolean equals(Object other) {
102
- if (this == other) {
+ public boolean equals(Object oth) {
+ if (this == oth) {
103
return true;
104
}
105
- if (other instanceof Signal other1) {
106
- return name.equals(other1.name) && (number == other1.number);
+ if (oth instanceof Signal other) {
+ return name.equals(other.name) && (number == other.number);
107
108
return false;
109
0 commit comments