@Test public void clearBit() { assertEquals((byte) 0, BitwiseUtil.clearBit((byte) 0b01, 0)); assertEquals((byte) 0, BitwiseUtil.clearBit((byte) 0b10, 1)); assertEquals((byte) 0xFF, BitwiseUtil.clearBit((byte) 0xFF, 8)); }
static byte clearBit(byte value, int bitIndex) { return (byte)((value & ~(1 << bitIndex)) & 0xFF); }
BitwiseUtil { static byte clearBit(byte value, int bitIndex) { return (byte)((value & ~(1 << bitIndex)) & 0xFF); } }
BitwiseUtil { static byte clearBit(byte value, int bitIndex) { return (byte)((value & ~(1 << bitIndex)) & 0xFF); }  }
BitwiseUtil { static byte clearBit(byte value, int bitIndex) { return (byte)((value & ~(1 << bitIndex)) & 0xFF); }   }
BitwiseUtil { static byte clearBit(byte value, int bitIndex) { return (byte)((value & ~(1 << bitIndex)) & 0xFF); }    }