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.
41 lines
1.1 KiB
Java
41 lines
1.1 KiB
Java
package bb;
|
|
|
|
import ae.FileUsingHashMap;
|
|
import java.io.File;
|
|
|
|
class FileEquals {
|
|
private File c;
|
|
|
|
private FileUsingHashMap d;
|
|
|
|
boolean a = false;
|
|
|
|
FileEquals(E paramE, FileUsingHashMap paramk, File paramFile, boolean paramBoolean) {
|
|
this.c = paramFile;
|
|
this.d = paramk;
|
|
this.a = paramBoolean;
|
|
}
|
|
|
|
public File a() {
|
|
return this.c;
|
|
}
|
|
|
|
public boolean equals(Object paramObject) {
|
|
return (paramObject instanceof K && this.c != null) ? ((K)paramObject).a().equals(this.c) : ((paramObject instanceof File && this.c != null) ? ((File)paramObject).equals(this.c) : super.equals(paramObject));
|
|
}
|
|
|
|
public String toString() {
|
|
String str = null;
|
|
if (this.b.j != null)
|
|
str = this.b.j.a(this.c);
|
|
if (str == null)
|
|
str = this.d.h().a(this.c);
|
|
return (str == null || str.isEmpty()) ? this.c.getName() : (this.a ? (str + " (" + this.c.getName() + ") - Recommended") : (str + " (" + this.c.getName() + ")"));
|
|
}
|
|
}
|
|
|
|
|
|
/* Location: /home/rewrich/Downloads/TunerStudioMS/TunerStudioMS/!/bb/K.class
|
|
* Java compiler version: 8 (52.0)
|
|
* JD-Core Version: 1.1.3
|
|
*/ |