public static String toHuman(int[] bits) {
    StringBuilder sb = new StringBuilder();

    boolean needsComma = false;

    sb.append('{');

    int bitsLength = 32 * bits.length;
    for (int i = 0; i < bitsLength; i++) {
      if (Bits.get(bits, i)) {
        if (needsComma) {
          sb.append(',');
        }
        needsComma = true;
        sb.append(i);
      }
    }
    sb.append('}');

    return sb.toString();
  }
Ors bit array {@code b} into bit array {@code a}. {@code a.length} must be greater than or
equal to {@code b.length}.

@param a {@code non-null;} int array to be ored with other argument. This argument is modified.
@param b {@code non-null;} int array to be ored into {@code a}. This argument is not modified.
android/android_framework/dex-maker/src/main/java/com/android/dx/util/Bits.java