Commit 6dda669f authored by guus's avatar guus

Add @Deprecated annotations where appropiate (OF-344)

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@11609 b35dd754-fafc-0310-a699-88a17e54d16e
parent 094f319f
...@@ -253,7 +253,8 @@ public final class GraphicUtils { ...@@ -253,7 +253,8 @@ public final class GraphicUtils {
* @see #focusComponentOrChild * @see #focusComponentOrChild
* @deprecated replaced by {@link #getFocusableComponentOrChild(Component, boolean)} * @deprecated replaced by {@link #getFocusableComponentOrChild(Component, boolean)}
*/ */
public static Component getFocusableComponentOrChild(Component c) { @Deprecated
public static Component getFocusableComponentOrChild(Component c) {
return getFocusableComponentOrChild(c, false); return getFocusableComponentOrChild(c, false);
} }
......
...@@ -450,7 +450,8 @@ public interface MUCRoom extends Externalizable, Result { ...@@ -450,7 +450,8 @@ public interface MUCRoom extends Externalizable, Result {
* @throws ConflictException If the room was going to lose all its owners. * @throws ConflictException If the room was going to lose all its owners.
* @deprecated Replaced by {@link #addNone(JID, MUCRole)} * @deprecated Replaced by {@link #addNone(JID, MUCRole)}
*/ */
public List<Presence> addNone(String bareJID, MUCRole senderRole) throws ForbiddenException, @Deprecated
public List<Presence> addNone(String bareJID, MUCRole senderRole) throws ForbiddenException,
ConflictException; ConflictException;
/** /**
......
...@@ -71,7 +71,8 @@ public class Log { ...@@ -71,7 +71,8 @@ public class Log {
* @deprecated replaced by {@link org.slf4j.Logger#isDebugEnabled()}. * @deprecated replaced by {@link org.slf4j.Logger#isDebugEnabled()}.
* Functionality of this method is delegated there. * Functionality of this method is delegated there.
*/ */
public static boolean isDebugEnabled() { @Deprecated
public static boolean isDebugEnabled() {
return Logger.isDebugEnabled(); return Logger.isDebugEnabled();
} }
...@@ -91,7 +92,8 @@ public class Log { ...@@ -91,7 +92,8 @@ public class Log {
* @deprecated replaced by {@link org.slf4j.Logger#isInfoEnabled()}. * @deprecated replaced by {@link org.slf4j.Logger#isInfoEnabled()}.
* Functionality of this method is delegated there. * Functionality of this method is delegated there.
*/ */
public static boolean isInfoEnabled() { @Deprecated
public static boolean isInfoEnabled() {
return Logger.isInfoEnabled(); return Logger.isInfoEnabled();
} }
...@@ -99,7 +101,8 @@ public class Log { ...@@ -99,7 +101,8 @@ public class Log {
* @deprecated replaced by {@link org.slf4j.Logger#isWarnEnabled()}. * @deprecated replaced by {@link org.slf4j.Logger#isWarnEnabled()}.
* Functionality of this method is delegated there. * Functionality of this method is delegated there.
*/ */
public static boolean isWarnEnabled() { @Deprecated
public static boolean isWarnEnabled() {
return Logger.isWarnEnabled(); return Logger.isWarnEnabled();
} }
...@@ -107,7 +110,8 @@ public class Log { ...@@ -107,7 +110,8 @@ public class Log {
* @deprecated replaced by {@link org.slf4j.Logger#debug(String)}. * @deprecated replaced by {@link org.slf4j.Logger#debug(String)}.
* Functionality of this method is delegated there. * Functionality of this method is delegated there.
*/ */
public static void debug(String s) { @Deprecated
public static void debug(String s) {
if (isDebugEnabled()) { if (isDebugEnabled()) {
Logger.debug(s); Logger.debug(s);
} }
...@@ -117,7 +121,8 @@ public class Log { ...@@ -117,7 +121,8 @@ public class Log {
* @deprecated replaced by {@link org.slf4j.Logger#debug(String, Throwable)}. * @deprecated replaced by {@link org.slf4j.Logger#debug(String, Throwable)}.
* Functionality of this method is delegated there. * Functionality of this method is delegated there.
*/ */
public static void debug(Throwable throwable) { @Deprecated
public static void debug(Throwable throwable) {
if (isDebugEnabled()) { if (isDebugEnabled()) {
Logger.debug("", throwable); Logger.debug("", throwable);
} }
...@@ -127,7 +132,8 @@ public class Log { ...@@ -127,7 +132,8 @@ public class Log {
* @deprecated replaced by {@link org.slf4j.Logger#debug(String, Throwable)}. * @deprecated replaced by {@link org.slf4j.Logger#debug(String, Throwable)}.
* Functionality of this method is delegated there. * Functionality of this method is delegated there.
*/ */
public static void debug(String s, Throwable throwable) { @Deprecated
public static void debug(String s, Throwable throwable) {
if (isDebugEnabled()) { if (isDebugEnabled()) {
Logger.debug(s, throwable); Logger.debug(s, throwable);
} }
...@@ -148,7 +154,8 @@ public class Log { ...@@ -148,7 +154,8 @@ public class Log {
* @deprecated replaced by {@link org.slf4j.Logger#info(String)}. * @deprecated replaced by {@link org.slf4j.Logger#info(String)}.
* Functionality of this method is delegated there. * Functionality of this method is delegated there.
*/ */
public static void info(String s) { @Deprecated
public static void info(String s) {
if (isInfoEnabled()) { if (isInfoEnabled()) {
Logger.info(s); Logger.info(s);
} }
...@@ -158,7 +165,8 @@ public class Log { ...@@ -158,7 +165,8 @@ public class Log {
* @deprecated replaced by {@link org.slf4j.Logger#info(String, Throwable)}. * @deprecated replaced by {@link org.slf4j.Logger#info(String, Throwable)}.
* Functionality of this method is delegated there. * Functionality of this method is delegated there.
*/ */
public static void info(Throwable throwable) { @Deprecated
public static void info(Throwable throwable) {
if (isInfoEnabled()) { if (isInfoEnabled()) {
Logger.info("", throwable); Logger.info("", throwable);
} }
...@@ -168,7 +176,8 @@ public class Log { ...@@ -168,7 +176,8 @@ public class Log {
* @deprecated replaced by {@link org.slf4j.Logger#info(String, Throwable)}. * @deprecated replaced by {@link org.slf4j.Logger#info(String, Throwable)}.
* Functionality of this method is delegated there. * Functionality of this method is delegated there.
*/ */
public static void info(String s, Throwable throwable) { @Deprecated
public static void info(String s, Throwable throwable) {
if (isInfoEnabled()) { if (isInfoEnabled()) {
Logger.info(s, throwable); Logger.info(s, throwable);
} }
...@@ -189,7 +198,8 @@ public class Log { ...@@ -189,7 +198,8 @@ public class Log {
* @deprecated replaced by {@link org.slf4j.Logger#warn(String)}. * @deprecated replaced by {@link org.slf4j.Logger#warn(String)}.
* Functionality of this method is delegated there. * Functionality of this method is delegated there.
*/ */
public static void warn(String s) { @Deprecated
public static void warn(String s) {
if (isWarnEnabled()) { if (isWarnEnabled()) {
Logger.warn(s); Logger.warn(s);
} }
...@@ -199,7 +209,8 @@ public class Log { ...@@ -199,7 +209,8 @@ public class Log {
* @deprecated replaced by {@link org.slf4j.Logger#warn(String, Throwable)}. * @deprecated replaced by {@link org.slf4j.Logger#warn(String, Throwable)}.
* Functionality of this method is delegated there. * Functionality of this method is delegated there.
*/ */
public static void warn(Throwable throwable) { @Deprecated
public static void warn(Throwable throwable) {
if (isWarnEnabled()) { if (isWarnEnabled()) {
Logger.warn("", throwable); Logger.warn("", throwable);
} }
...@@ -209,7 +220,8 @@ public class Log { ...@@ -209,7 +220,8 @@ public class Log {
* @deprecated replaced by {@link org.slf4j.Logger#debug(String, Throwable)}. * @deprecated replaced by {@link org.slf4j.Logger#debug(String, Throwable)}.
* Functionality of this method is delegated there. * Functionality of this method is delegated there.
*/ */
public static void warn(String s, Throwable throwable) { @Deprecated
public static void warn(String s, Throwable throwable) {
if (isWarnEnabled()) { if (isWarnEnabled()) {
Logger.warn(s, throwable); Logger.warn(s, throwable);
} }
...@@ -230,7 +242,8 @@ public class Log { ...@@ -230,7 +242,8 @@ public class Log {
* @deprecated replaced by {@link org.slf4j.Logger#error(String)}. * @deprecated replaced by {@link org.slf4j.Logger#error(String)}.
* Functionality of this method is delegated there. * Functionality of this method is delegated there.
*/ */
public static void error(String s) { @Deprecated
public static void error(String s) {
if (isErrorEnabled()) { if (isErrorEnabled()) {
Logger.error(s); Logger.error(s);
if (isDebugEnabled()) { if (isDebugEnabled()) {
...@@ -243,7 +256,8 @@ public class Log { ...@@ -243,7 +256,8 @@ public class Log {
* @deprecated replaced by {@link org.slf4j.Logger#error(String, Throwable)}. * @deprecated replaced by {@link org.slf4j.Logger#error(String, Throwable)}.
* Functionality of this method is delegated there. * Functionality of this method is delegated there.
*/ */
public static void error(Throwable throwable) { @Deprecated
public static void error(Throwable throwable) {
if (isErrorEnabled()) { if (isErrorEnabled()) {
Logger.error("", throwable); Logger.error("", throwable);
if (isDebugEnabled()) { if (isDebugEnabled()) {
...@@ -256,7 +270,8 @@ public class Log { ...@@ -256,7 +270,8 @@ public class Log {
* @deprecated replaced by {@link org.slf4j.Logger#error(String, Throwable)}. * @deprecated replaced by {@link org.slf4j.Logger#error(String, Throwable)}.
* Functionality of this method is delegated there. * Functionality of this method is delegated there.
*/ */
public static void error(String s, Throwable throwable) { @Deprecated
public static void error(String s, Throwable throwable) {
if (isErrorEnabled()) { if (isErrorEnabled()) {
Logger.error(s, throwable); Logger.error(s, throwable);
if (isDebugEnabled()) { if (isDebugEnabled()) {
......
...@@ -80,7 +80,8 @@ public interface StatsViewer { ...@@ -80,7 +80,8 @@ public interface StatsViewer {
* more than one array is returned. * more than one array is returned.
* @deprecated will be removed pending the completion of #getData(String, TimePeriod) * @deprecated will be removed pending the completion of #getData(String, TimePeriod)
*/ */
double[][] getData(String key, long startTime, long endTime, int dataPoints); @Deprecated
double[][] getData(String key, long startTime, long endTime, int dataPoints);
/** /**
* Retrieves the data for the related stat for the time period. * Retrieves the data for the related stat for the time period.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment