diff options
author | Jens Jansson <peppe@vaadin.com> | 2011-12-01 17:12:17 +0200 |
---|---|---|
committer | Jens Jansson <peppe@vaadin.com> | 2011-12-01 17:12:17 +0200 |
commit | 4ef794e54318325e4f810be275c9e58b8fc4d3db (patch) | |
tree | 519d0ca63a9db5256e85040803d233e1b0897bad | |
parent | 9c5d27412f86e81dad12e74cb94c8b1b9bde65d2 (diff) | |
download | vaadin-framework-4ef794e54318325e4f810be275c9e58b8fc4d3db.tar.gz vaadin-framework-4ef794e54318325e4f810be275c9e58b8fc4d3db.zip |
#8019 Added deprecated comments on deprecated constants.
-rw-r--r-- | src/com/vaadin/terminal/ErrorMessage.java | 20 | ||||
-rw-r--r-- | src/com/vaadin/terminal/UserError.java | 15 |
2 files changed, 35 insertions, 0 deletions
diff --git a/src/com/vaadin/terminal/ErrorMessage.java b/src/com/vaadin/terminal/ErrorMessage.java index d93ba62478..6436b0b472 100644 --- a/src/com/vaadin/terminal/ErrorMessage.java +++ b/src/com/vaadin/terminal/ErrorMessage.java @@ -72,14 +72,34 @@ public interface ErrorMessage extends Paintable, Serializable { } + /** + * @deprecated from 7.0, use {@link ErrorLevel#SYSTEMERROR} instead + */ @Deprecated public static final ErrorLevel SYSTEMERROR = ErrorLevel.SYSTEMERROR; + + /** + * @deprecated from 7.0, use {@link ErrorLevel#CRITICAL} instead + */ @Deprecated public static final ErrorLevel CRITICAL = ErrorLevel.CRITICAL; + + /** + * @deprecated from 7.0, use {@link ErrorLevel#ERROR} instead + */ + @Deprecated public static final ErrorLevel ERROR = ErrorLevel.ERROR; + + /** + * @deprecated from 7.0, use {@link ErrorLevel#WARNING} instead + */ @Deprecated public static final ErrorLevel WARNING = ErrorLevel.WARNING; + + /** + * @deprecated from 7.0, use {@link ErrorLevel#INFORMATION} instead + */ @Deprecated public static final ErrorLevel INFORMATION = ErrorLevel.INFORMATION; diff --git a/src/com/vaadin/terminal/UserError.java b/src/com/vaadin/terminal/UserError.java index f2879f45bf..8d9e568a1e 100644 --- a/src/com/vaadin/terminal/UserError.java +++ b/src/com/vaadin/terminal/UserError.java @@ -38,12 +38,27 @@ public class UserError implements ErrorMessage { XHTML; } + /** + * @deprecated from 7.0, use {@link ContentMode#TEXT} instead + */ @Deprecated public static final ContentMode CONTENT_TEXT = ContentMode.TEXT; + + /** + * @deprecated from 7.0, use {@link ContentMode#PREFORMATTED} instead + */ @Deprecated public static final ContentMode CONTENT_PREFORMATTED = ContentMode.PREFORMATTED; + + /** + * @deprecated from 7.0, use {@link ContentMode#UIDL} instead + */ @Deprecated public static final ContentMode CONTENT_UIDL = ContentMode.UIDL; + + /** + * @deprecated from 7.0, use {@link ContentMode#XHTML} instead + */ @Deprecated public static final ContentMode CONTENT_XHTML = ContentMode.XHTML; |