List of usage examples for com.google.gwt.dev.util Preconditions checkNotNull
public static <T> T checkNotNull(T reference)
From source file:org.waveprotocol.wave.client.editor.harness.HighlightingDiffState.java
License:Apache License
private DiffHighlightingFilter getDiffFilter() { Preconditions.checkNotNull(editor.getContent()); if (editor.getContent() != currentContentDoc) { currentContentDoc = editor.getContent(); diffFilter = new DiffHighlightingFilter(currentContentDoc.getDiffTarget()); }/*from w w w. j ava 2 s .co m*/ return diffFilter; }