code: public boolean containsLong(long value) {
  		for (int i = 1; i < maxPoolSize; i++) {
  			if (types[i] == LONG && readLong(i) == value) return true;
  		}
  		return false;
  	}
docs: Checks if the constant pool contains the provided long constant, which implies the constant is used somewhere in the code.
  
  NB: compile-time constant expressions are evaluated at compile time.