Here you can find the source of unsetFlag(int bitset, int flag)
public static int unsetFlag(int bitset, int flag)
//package com.java2s; //License from project: Apache License public class Main { public static int unsetFlag(int bitset, int flag) { return bitset & (~flag); }// ww w.j av a 2 s .c o m }