Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ac2672b8 authored by Ian Rogers's avatar Ian Rogers
Browse files

Fix self assignment bugs.

Bugs detected by error prone.

Change-Id: Ie8162c0716d49cac14f0a70bfbcdb85d801362a8
parent 22a17f5f
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -112,7 +112,7 @@ public class HardwareConfig {
     * default constructor.
     */
    public HardwareConfig(int type) {
        type = type;
        this.type = type;
    }

    /**
@@ -152,7 +152,7 @@ public class HardwareConfig {
        if (type == DEV_HARDWARE_TYPE_MODEM) {
            char[] bits = Integer.toBinaryString(ratBits).toCharArray();
            uuid = id;
            state = state;
            this.state = state;
            rilModel = model;
            rat = new BitSet(bits.length);
            for (int i = 0 ; i < bits.length ; i++) {
@@ -168,7 +168,7 @@ public class HardwareConfig {
        if (type == DEV_HARDWARE_TYPE_SIM) {
            uuid = id;
            modemUuid = link;
            state = state;
            this.state = state;
        }
    }