Refactor ProtocolVersionNegotiator: replace instances of 'e' with 'BlockingFactorHolder' for improved clarity and consistency

This commit is contained in:
2026-01-11 18:54:42 +00:00
parent 1321878cb8
commit 01bcf08a6d

View File

@@ -45,46 +45,46 @@ public class ProtocolVersionNegotiator implements cO, Serializable {
}
public boolean a(v paramv, F paramF, int paramInt) {
e e1;
BlockingFactorHolder e1;
if (this.b < 0)
this.b = paramv.a(this.a.e().b(), 10, 1)[0];
this.b = paramv.a(this.a.e().b(), 10, 1)[0];
if (this.c == null) {
this.a.d().a((byte)this.b);
int[] arrayOfInt = paramv.a(this.a.d().a(null), 10, 5);
this.c = new e(this);
this.c = new BlockingFactorHolder(this);
this.c.a(arrayOfInt);
}
}
D.d("Local on CAN ID:" + this.b + ", " + this.c.toString());
paramF.w(this.b);
if (this.b != paramInt) {
this.a.d().a(paramInt);
if (paramF.D() instanceof f)
((f)paramF.D()).b(false);
if (paramF.D() instanceof CrcEnvelopeDecoder)
((CrcEnvelopeDecoder)paramF.D()).b(false);
try {
int[] arrayOfInt = paramv.a(this.a.d().a(null), 10, 5);
e1 = new e(this);
e1 = new BlockingFactorHolder(this);
e1.a(arrayOfInt);
D.d("Target on CAN ID:" + paramInt + ", " + e1.toString());
} catch (Exception exception) {
try {
e1 = new e(this);
e1 = new BlockingFactorHolder(this);
e1.b = paramF.ay();
e1.a = paramF.G(0);
D.d("Failed to get Target BlockingFactors, using ini values on CAN ID:" + paramInt + ", " + e1.toString());
} catch (Exception exception1) {
e1 = new e(this);
e1 = new BlockingFactorHolder(this);
e1.b = 0;
e1.a = 64;
D.d("Failed to get Target BlockingFactors, using default values on CAN ID:" + paramInt + ", " + e1.toString());
}
}
} finally {
if (paramF.D() instanceof f)
((f)paramF.D()).b(true);
}
if (paramF.D() instanceof CrcEnvelopeDecoder)
((CrcEnvelopeDecoder)paramF.D()).b(true);
}
} else {
e1 = this.c;
D.d("Target device is local, using localBlockingFactors");
}
}
paramF.I(Math.min(e1.a, this.c.a));
paramF.H(Math.min(e1.b, this.c.b));
return true;