mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-17 01:31:01 +00:00
Introduced a private GwtIncompatible annotation
This commit is contained in:
1 parent
1be9963430
commit
6cb01435ae
2 files changed
+27
-1
No files matched your search
@@ -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 "";
|
||||
}
|
||||
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user