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.
42 lines
1.1 KiB
Java
42 lines
1.1 KiB
Java
package be;
|
|
|
|
import java.awt.event.ActionEvent;
|
|
import java.awt.event.ActionListener;
|
|
import s.SComponentGolf;
|
|
|
|
class BeInterfaceOscar implements ActionListener {
|
|
BeInterfaceOscar(M paramM) {}
|
|
|
|
public void actionPerformed(ActionEvent paramActionEvent) {
|
|
String str = this.a.d();
|
|
P p = null;
|
|
if (this.a.c.isSelected() && !str.isEmpty())
|
|
p = this.a.c(str);
|
|
switch (this.a.b.getSelectedIndex()) {
|
|
case 0:
|
|
M.a(this.a, 5);
|
|
this.a.o.setText(SComponentGolf.b("Input Value"));
|
|
break;
|
|
case 1:
|
|
M.a(this.a, 255);
|
|
this.a.o.setText(SComponentGolf.b("Input Voltage"));
|
|
break;
|
|
case 2:
|
|
M.a(this.a, 1023);
|
|
this.a.o.setText(SComponentGolf.b("Input Voltage"));
|
|
break;
|
|
case 3:
|
|
M.a(this.a, 4095);
|
|
this.a.o.setText(SComponentGolf.b("Input Voltage"));
|
|
break;
|
|
}
|
|
if (this.a.c.isSelected() && !str.isEmpty() && p != null)
|
|
M.a(this.a, p);
|
|
}
|
|
}
|
|
|
|
|
|
/* Location: /home/rewrich/Downloads/TunerStudioMS/TunerStudioMS/!/be/O.class
|
|
* Java compiler version: 8 (52.0)
|
|
* JD-Core Version: 1.1.3
|
|
*/ |