Example usage for com.google.gwt.dev.util Preconditions checkNotNull

List of usage examples for com.google.gwt.dev.util Preconditions checkNotNull

Introduction

In this page you can find the example usage for com.google.gwt.dev.util Preconditions checkNotNull.

Prototype

public static <T> T checkNotNull(T reference) 

Source Link

Document

Ensures that an object reference passed as a parameter to the calling method is not null.

Usage

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;
}