mirror of
https://github.com/johndoe6345789/tustu.git
synced 2026-04-25 06:04:59 +00:00
This commit introduces a new Python script, `fix_constructors_v2.py`, which automates the process of correcting constructor names in Java files based on Gradle error outputs. The script scans specified Java files, identifies constructors that do not match their class names, and updates them accordingly. It handles various edge cases, ensuring that only relevant constructors are modified. The script also provides feedback on the changes made during execution.
35 lines
849 B
Java
35 lines
849 B
Java
package p;
|
|
|
|
import d.DComponentCharlie;
|
|
import java.util.Objects;
|
|
|
|
class TostringHashcode {
|
|
private DComponentCharlie b;
|
|
|
|
TostringHashcode(D paramD, DComponentCharlie paramc) {
|
|
this.b = paramc;
|
|
}
|
|
|
|
public DComponentCharlie a() {
|
|
return this.b;
|
|
}
|
|
|
|
public String toString() {
|
|
return this.b.b();
|
|
}
|
|
|
|
public boolean equals(Object paramObject) {
|
|
return (paramObject instanceof String) ? paramObject.equals(this.b.a()) : ((paramObject instanceof DComponentCharlie) ? ((DComponentCharlie)paramObject).a().equals(this.b.a()) : super.equals(paramObject));
|
|
}
|
|
|
|
public int hashCode() {
|
|
null = 3;
|
|
return 79 * null + Objects.hashCode(this.b);
|
|
}
|
|
}
|
|
|
|
|
|
/* Location: /home/rewrich/Downloads/TunerStudioMS/TunerStudioMS/!/p/I.class
|
|
* Java compiler version: 8 (52.0)
|
|
* JD-Core Version: 1.1.3
|
|
*/ |