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 {
* @see #focusComponentOrChild
* @deprecated replaced by {@link #getFocusableComponentOrChild(Component, boolean)}
*/
public static Component getFocusableComponentOrChild(Component c) {
@Deprecated
public static Component getFocusableComponentOrChild(Component c) {
return getFocusableComponentOrChild(c, false);
}
......
......@@ -450,7 +450,8 @@ public interface MUCRoom extends Externalizable, Result {
* @throws ConflictException If the room was going to lose all its owners.
* @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;
/**
......
......@@ -71,7 +71,8 @@ public class Log {
* @deprecated replaced by {@link org.slf4j.Logger#isDebugEnabled()}.
* Functionality of this method is delegated there.
*/
public static boolean isDebugEnabled() {
@Deprecated
public static boolean isDebugEnabled() {
return Logger.isDebugEnabled();
}
......@@ -91,7 +92,8 @@ public class Log {
* @deprecated replaced by {@link org.slf4j.Logger#isInfoEnabled()}.
* Functionality of this method is delegated there.
*/
public static boolean isInfoEnabled() {
@Deprecated
public static boolean isInfoEnabled() {
return Logger.isInfoEnabled();
}
......@@ -99,7 +101,8 @@ public class Log {
* @deprecated replaced by {@link org.slf4j.Logger#isWarnEnabled()}.
* Functionality of this method is delegated there.
*/
public static boolean isWarnEnabled() {
@Deprecated
public static boolean isWarnEnabled() {
return Logger.isWarnEnabled();
}
......@@ -107,7 +110,8 @@ public class Log {
* @deprecated replaced by {@link org.slf4j.Logger#debug(String)}.
* Functionality of this method is delegated there.
*/
public static void debug(String s) {
@Deprecated
public static void debug(String s) {
if (isDebugEnabled()) {
Logger.debug(s);
}
......@@ -117,7 +121,8 @@ public class Log {
* @deprecated replaced by {@link org.slf4j.Logger#debug(String, Throwable)}.
* Functionality of this method is delegated there.
*/
public static void debug(Throwable throwable) {
@Deprecated
public static void debug(Throwable throwable) {
if (isDebugEnabled()) {
Logger.debug("", throwable);
}
......@@ -127,7 +132,8 @@ public class Log {
* @deprecated replaced by {@link org.slf4j.Logger#debug(String, Throwable)}.
* 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()) {
Logger.debug(s, throwable);
}
......@@ -148,7 +154,8 @@ public class Log {
* @deprecated replaced by {@link org.slf4j.Logger#info(String)}.
* Functionality of this method is delegated there.
*/
public static void info(String s) {
@Deprecated
public static void info(String s) {
if (isInfoEnabled()) {
Logger.info(s);
}
......@@ -158,7 +165,8 @@ public class Log {
* @deprecated replaced by {@link org.slf4j.Logger#info(String, Throwable)}.
* Functionality of this method is delegated there.
*/
public static void info(Throwable throwable) {
@Deprecated
public static void info(Throwable throwable) {
if (isInfoEnabled()) {
Logger.info("", throwable);
}
......@@ -168,7 +176,8 @@ public class Log {
* @deprecated replaced by {@link org.slf4j.Logger#info(String, Throwable)}.
* 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()) {
Logger.info(s, throwable);
}
......@@ -189,7 +198,8 @@ public class Log {
* @deprecated replaced by {@link org.slf4j.Logger#warn(String)}.
* Functionality of this method is delegated there.
*/
public static void warn(String s) {
@Deprecated
public static void warn(String s) {
if (isWarnEnabled()) {
Logger.warn(s);
}
......@@ -199,7 +209,8 @@ public class Log {
* @deprecated replaced by {@link org.slf4j.Logger#warn(String, Throwable)}.
* Functionality of this method is delegated there.
*/
public static void warn(Throwable throwable) {
@Deprecated
public static void warn(Throwable throwable) {
if (isWarnEnabled()) {
Logger.warn("", throwable);
}
......@@ -209,7 +220,8 @@ public class Log {
* @deprecated replaced by {@link org.slf4j.Logger#debug(String, Throwable)}.
* 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()) {
Logger.warn(s, throwable);
}
......@@ -230,7 +242,8 @@ public class Log {
* @deprecated replaced by {@link org.slf4j.Logger#error(String)}.
* Functionality of this method is delegated there.
*/
public static void error(String s) {
@Deprecated
public static void error(String s) {
if (isErrorEnabled()) {
Logger.error(s);
if (isDebugEnabled()) {
......@@ -243,7 +256,8 @@ public class Log {
* @deprecated replaced by {@link org.slf4j.Logger#error(String, Throwable)}.
* Functionality of this method is delegated there.
*/
public static void error(Throwable throwable) {
@Deprecated
public static void error(Throwable throwable) {
if (isErrorEnabled()) {
Logger.error("", throwable);
if (isDebugEnabled()) {
......@@ -256,7 +270,8 @@ public class Log {
* @deprecated replaced by {@link org.slf4j.Logger#error(String, Throwable)}.
* 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()) {
Logger.error(s, throwable);
if (isDebugEnabled()) {
......
......@@ -80,7 +80,8 @@ public interface StatsViewer {
* more than one array is returned.
* @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.
......
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