code: public static void addLoadInstruction(CodeAttribute code, String type, int variable) {
          char tp = type.charAt(0);
          if (tp != 'L' && tp != '[') {
              // we have a primitive type
              switch (tp) {
                  case 'J':
                      code.lload(variable);
                      break;
                  case 'D':
                      code.dload(variable);
                      break;
                  case 'F':
                      code.fload(variable);
                      break;
                  default:
                      code.iload(variable);
              }
          } else {
              code.aload(variable);
          }
      }
docs: Adds the correct load instruction based on the type descriptor
  
  @param code     the bytecode to add the instruction to
  @param type     the type of the variable
  @param variable the variable number