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