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,6 +253,7 @@ public final class GraphicUtils {
* @see #focusComponentOrChild
* @deprecated replaced by {@link #getFocusableComponentOrChild(Component, boolean)}
*/
@Deprecated
public static Component getFocusableComponentOrChild(Component c) {
return getFocusableComponentOrChild(c, false);
}
......
......@@ -450,6 +450,7 @@ 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)}
*/
@Deprecated
public List<Presence> addNone(String bareJID, MUCRole senderRole) throws ForbiddenException,
ConflictException;
......
......@@ -71,6 +71,7 @@ public class Log {
* @deprecated replaced by {@link org.slf4j.Logger#isDebugEnabled()}.
* Functionality of this method is delegated there.
*/
@Deprecated
public static boolean isDebugEnabled() {
return Logger.isDebugEnabled();
}
......@@ -91,6 +92,7 @@ public class Log {
* @deprecated replaced by {@link org.slf4j.Logger#isInfoEnabled()}.
* Functionality of this method is delegated there.
*/
@Deprecated
public static boolean isInfoEnabled() {
return Logger.isInfoEnabled();
}
......@@ -99,6 +101,7 @@ public class Log {
* @deprecated replaced by {@link org.slf4j.Logger#isWarnEnabled()}.
* Functionality of this method is delegated there.
*/
@Deprecated
public static boolean isWarnEnabled() {
return Logger.isWarnEnabled();
}
......@@ -107,6 +110,7 @@ public class Log {
* @deprecated replaced by {@link org.slf4j.Logger#debug(String)}.
* Functionality of this method is delegated there.
*/
@Deprecated
public static void debug(String s) {
if (isDebugEnabled()) {
Logger.debug(s);
......@@ -117,6 +121,7 @@ public class Log {
* @deprecated replaced by {@link org.slf4j.Logger#debug(String, Throwable)}.
* Functionality of this method is delegated there.
*/
@Deprecated
public static void debug(Throwable throwable) {
if (isDebugEnabled()) {
Logger.debug("", throwable);
......@@ -127,6 +132,7 @@ public class Log {
* @deprecated replaced by {@link org.slf4j.Logger#debug(String, Throwable)}.
* Functionality of this method is delegated there.
*/
@Deprecated
public static void debug(String s, Throwable throwable) {
if (isDebugEnabled()) {
Logger.debug(s, throwable);
......@@ -148,6 +154,7 @@ public class Log {
* @deprecated replaced by {@link org.slf4j.Logger#info(String)}.
* Functionality of this method is delegated there.
*/
@Deprecated
public static void info(String s) {
if (isInfoEnabled()) {
Logger.info(s);
......@@ -158,6 +165,7 @@ public class Log {
* @deprecated replaced by {@link org.slf4j.Logger#info(String, Throwable)}.
* Functionality of this method is delegated there.
*/
@Deprecated
public static void info(Throwable throwable) {
if (isInfoEnabled()) {
Logger.info("", throwable);
......@@ -168,6 +176,7 @@ public class Log {
* @deprecated replaced by {@link org.slf4j.Logger#info(String, Throwable)}.
* Functionality of this method is delegated there.
*/
@Deprecated
public static void info(String s, Throwable throwable) {
if (isInfoEnabled()) {
Logger.info(s, throwable);
......@@ -189,6 +198,7 @@ public class Log {
* @deprecated replaced by {@link org.slf4j.Logger#warn(String)}.
* Functionality of this method is delegated there.
*/
@Deprecated
public static void warn(String s) {
if (isWarnEnabled()) {
Logger.warn(s);
......@@ -199,6 +209,7 @@ public class Log {
* @deprecated replaced by {@link org.slf4j.Logger#warn(String, Throwable)}.
* Functionality of this method is delegated there.
*/
@Deprecated
public static void warn(Throwable throwable) {
if (isWarnEnabled()) {
Logger.warn("", throwable);
......@@ -209,6 +220,7 @@ public class Log {
* @deprecated replaced by {@link org.slf4j.Logger#debug(String, Throwable)}.
* Functionality of this method is delegated there.
*/
@Deprecated
public static void warn(String s, Throwable throwable) {
if (isWarnEnabled()) {
Logger.warn(s, throwable);
......@@ -230,6 +242,7 @@ public class Log {
* @deprecated replaced by {@link org.slf4j.Logger#error(String)}.
* Functionality of this method is delegated there.
*/
@Deprecated
public static void error(String s) {
if (isErrorEnabled()) {
Logger.error(s);
......@@ -243,6 +256,7 @@ public class Log {
* @deprecated replaced by {@link org.slf4j.Logger#error(String, Throwable)}.
* Functionality of this method is delegated there.
*/
@Deprecated
public static void error(Throwable throwable) {
if (isErrorEnabled()) {
Logger.error("", throwable);
......@@ -256,6 +270,7 @@ public class Log {
* @deprecated replaced by {@link org.slf4j.Logger#error(String, Throwable)}.
* Functionality of this method is delegated there.
*/
@Deprecated
public static void error(String s, Throwable throwable) {
if (isErrorEnabled()) {
Logger.error(s, throwable);
......
......@@ -80,6 +80,7 @@ public interface StatsViewer {
* more than one array is returned.
* @deprecated will be removed pending the completion of #getData(String, TimePeriod)
*/
@Deprecated
double[][] getData(String key, long startTime, long endTime, int dataPoints);
/**
......
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