List of usage examples for com.google.common.base Preconditions checkState
public static void checkState(boolean expression)
From source file:org.opendaylight.netconf.sal.connect.netconf.listener.UncancellableFuture.java
@Override protected boolean setException(final Throwable throwable) { Preconditions.checkState(uncancellable); return super.setException(throwable); }
From source file:com.facebook.buck.util.ChunkAccumulator.java
private void push(String chunk) { Preconditions.checkState(chunk.getBytes(charset).length <= available()); chunks.add(chunk); size += chunk.getBytes(charset).length; }