SonarOpenCommunity / sonar-cxx

Static field accessed before being written JAVA-W1060
Bug risk
Major
5 months agoa year old
Static field NOP_HANDLER is accessed before assignment
122
123  // @VisibleForTesting
124  public static boolean execute(Instruction[] instructions, Token... input) {
125    var machine = new Machine(null, input, instructions, NOP_HANDLER);126    while (machine.address != -1 && machine.address < instructions.length) {
127      instructions[machine.address].execute(machine);
128    }
Static field currentPreprocessorInstance is accessed before assignment
37  }
38
39  public static void finishedParsing() {
40    currentPreprocessorInstance.get().finishedPreprocessing();41  }
42
43  public static Parser<Grammar> create() {