Top Description Methods
com.google.common.annotations

public @Interface GwtIncompatible

extends Annotation
Annotations
@Retention:CLASS
@Target:TYPE, METHOD, CONSTRUCTOR, FIELD
@Documented
@GwtCompatible
Imports
java.lang.annotation.Documented, .ElementType, .Retention, .RetentionPolicy, .Target

The presence of this annotation on an API indicates that the method may not be used with the Google Web Toolkit (GWT).

This annotation behaves identically to the @GwtIncompatible annotation in GWT itself.

Author
Charles Fry

Method Summary

Modifier and TypeMethod and Description
public String
value()

Describes why the annotated element is incompatible with GWT.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public String value()

Describes why the annotated element is incompatible with GWT. Since this is generally due to a dependence on a type/method which GWT doesn't support, it is sufficient to simply reference the unsupported type/method. E.g. "Class.isInstance".

As of Guava 20.0, this value is optional. We encourage authors who wish to describe why an API is @GwtIncompatible to instead leave an implementation comment.