Refactor class names for clarity: rename 'l' to 'TcpWifiConnection', 'c' to 'ProtocolAdapterFactory', 'd' to 'ProtocolVersionNegotiator', and 'a' to 'AccelEnrichmentWizard'; update method parameters for improved readability

This commit is contained in:
2026-01-11 18:54:14 +00:00
parent ed8457a914
commit 1321878cb8
8 changed files with 36 additions and 36 deletions

View File

@@ -51,7 +51,7 @@ public abstract class AbstractConnectionManager implements ControllerInterface {
}
protected void c() {
for (e e : this.b) {
for (ConnectionEventListener e : this.b) {
try {
e.b();
} catch (Exception exception) {
@@ -62,7 +62,7 @@ public abstract class AbstractConnectionManager implements ControllerInterface {
}
protected void d() {
for (e e : this.b) {
for (ConnectionEventListener e : this.b) {
try {
e.a();
} catch (Exception exception) {
@@ -73,7 +73,7 @@ public abstract class AbstractConnectionManager implements ControllerInterface {
}
protected void e() {
for (e e : this.b) {
for (ConnectionEventListener e : this.b) {
try {
e.e();
} catch (Exception exception) {

View File

@@ -15,7 +15,7 @@ import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
public class l extends a {
public class TcpWifiConnection extends a {
public static String b = "TCP/IP - WiFi driver";
private int l = 0;
@@ -75,7 +75,7 @@ public class l extends a {
} catch (Exception exception) {
b(0);
b();
Logger.getLogger(l.class.getName()).log(Level.SEVERE, (String)null, exception);
Logger.getLogger(TcpWifiConnection.class.getName()).log(Level.SEVERE, (String)null, exception);
throw new G.l("Unable to open device: " + exception.getLocalizedMessage() + ", " + v());
}
}
@@ -130,7 +130,7 @@ public class l extends a {
this.m = null;
} catch (Exception exception) {
D.c("Error closing TCP Connection");
Logger.getLogger(l.class.getName()).log(Level.SEVERE, (String)null, exception);
Logger.getLogger(TcpWifiConnection.class.getName()).log(Level.SEVERE, (String)null, exception);
}
}
} finally {

View File

@@ -18,7 +18,7 @@ import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
public class o extends a {
public class UdpConnection extends a {
public static String b = "UDP - User Datagram Protocol";
private int k = 0;
@@ -33,9 +33,9 @@ public class o extends a {
int e = 2000;
p f = null;
r g = null;
UdpInputStream f = null;
UdpOutputStream g = null;
List h = null;
@@ -61,8 +61,8 @@ public class o extends a {
this.l = t();
this.l.setSoTimeout(A());
this.l.setTrafficClass(20);
this.g = new r(this.l);
this.f = new p(this.l, this.g);
this.g = new UdpOutputStream(this.l);
this.f = new UdpInputStream(this.l, this.g);
b(3);
a();
} catch (UnknownHostException unknownHostException) {
@@ -76,7 +76,7 @@ public class o extends a {
} catch (Exception exception) {
b(0);
b();
Logger.getLogger(o.class.getName()).log(Level.SEVERE, (String)null, exception);
Logger.getLogger(UdpConnection.class.getName()).log(Level.SEVERE, (String)null, exception);
throw new l("Unable to open device: " + exception.getLocalizedMessage() + ", " + y());
}
}
@@ -108,8 +108,8 @@ public class o extends a {
}
D.c("Refresh socket to UDP Device: " + y());
this.l = t();
this.g = new r(this.l);
this.f = new p(this.l, this.g);
this.g = new UdpOutputStream(this.l);
this.f = new UdpInputStream(this.l, this.g);
bool = true;
} catch (Exception exception) {
exception.printStackTrace();

View File

@@ -85,7 +85,7 @@ public class LocalizationManager {
return (str == null || str.equals("")) ? paramString2 : str;
}
public void b(e parame) {
public void b(TranslationMapLoader parame) {
this.j = parame;
}

View File

@@ -10,12 +10,12 @@ import G.bb;
import G.r;
import java.io.Serializable;
public class e implements aI, Serializable {
public class ReplayDataSource implements aI, Serializable {
private String a;
private String b;
public e(R paramR) {
public ReplayDataSource(R paramR) {
this.a = paramR.c();
this.b = paramR.c() + "_Replay";
}

View File

@@ -2,20 +2,20 @@ package J;
import G.F;
public class c {
private static c a = null;
public static c a() {
public class ProtocolAdapterFactory {
private static ProtocolAdapterFactory a = null;
public static ProtocolAdapterFactory a() {
if (a == null)
a = new c();
a = new ProtocolAdapterFactory();
return a;
}
public void a(F paramF, int paramInt) {
if (paramInt > 0 && !(paramF.D() instanceof f))
paramF.a(new f());
if (paramInt > 0 && !(paramF.C() instanceof g))
paramF.a(new g());
if (paramInt > 0 && !(paramF.D() instanceof CrcEnvelopeDecoder))
paramF.a(new CrcEnvelopeDecoder());
if (paramInt > 0 && !(paramF.C() instanceof CrcEnvelopeEncoder))
paramF.a(new CrcEnvelopeEncoder());
}
}

View File

@@ -8,14 +8,14 @@ import bH.D;
import bH.c;
import java.io.Serializable;
public class d implements cO, Serializable {
public class ProtocolVersionNegotiator implements cO, Serializable {
bY a = null;
int b = -1;
e c = null;
public d() {
BlockingFactorHolder c = null;
public ProtocolVersionNegotiator() {
this.a = new bY();
this.a.a("F");
this.a.e("I");

View File

@@ -12,12 +12,12 @@ import G.bv;
import G.c;
import G.db;
public class a extends bv {
public class AccelEnrichmentWizard extends bv {
private String a = "";
private R f = null;
public a(R paramR, int paramInt, boolean paramBoolean) {
public AccelEnrichmentWizard(R paramR, int paramInt, boolean paramBoolean) {
if (paramInt > 0)
this.a = paramInt + "";
this.f = paramR;