diff --git a/java/com.sap.sse.common/src/com/sap/sse/common/settings/GwtIncompatible.java b/java/com.sap.sse.common/src/com/sap/sse/common/settings/GwtIncompatible.java new file mode 100644 index 00000000000..5d2d0268bca --- /dev/null +++ b/java/com.sap.sse.common/src/com/sap/sse/common/settings/GwtIncompatible.java @@ -0,0 +1,27 @@ +package com.sap.sse.common.settings; + +import java.lang.annotation.Documented; +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +/** + * Private version of com.google.gwt.core.shared.GwtIncompatible. + * GWT doesn't check for the concrete annotation class but only checks if there is an annotation named GwtIncompatible. + * With this private annotation we can flag something as GWT incompatible without introducing a dependency to GWT core. + * + */ +@Retention(RetentionPolicy.CLASS) +@Target({ + ElementType.TYPE, ElementType.METHOD, + ElementType.CONSTRUCTOR, ElementType.FIELD }) +@Documented +public @interface GwtIncompatible { + /** + * An attribute that can be used to explain why the code is incompatible. + * A GwtIncompatible annotation can have any number of attributes; attributes + * are for documentation purposes and are ignored by the GWT compiler. + */ + String value() default ""; +} \ No newline at end of file diff --git a/java/com.sap.sse.common/src/com/sap/sse/common/settings/SerializableSettings.java b/java/com.sap.sse.common/src/com/sap/sse/common/settings/SerializableSettings.java index cab89231d7d..de99770a70a 100644 --- a/java/com.sap.sse.common/src/com/sap/sse/common/settings/SerializableSettings.java +++ b/java/com.sap.sse.common/src/com/sap/sse/common/settings/SerializableSettings.java @@ -5,7 +5,6 @@ import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.io.Serializable; -import com.google.gwt.core.shared.GwtIncompatible; import com.sap.sse.common.settings.value.SettingsValue; public abstract class SerializableSettings extends AbstractSettings implements Serializable {