Added missing @Deprecated annotations. (cherry picking from commit be90106b8430386d93ecba7afcd465c09e2b0125)

This commit is contained in:
Daniel Ruthardt 2010-12-07 21:30:42 +01:00 committed by Tobi Schäfer
parent 37307708fd
commit e0f590da98
4 changed files with 5 additions and 0 deletions

View file

@ -586,6 +586,7 @@ public class ResponseBean implements Serializable {
* Old version for push() kept for compatibility
* @deprecated
*/
@Deprecated
public void pushStringBuffer() {
res.pushBuffer(null);
}
@ -595,6 +596,7 @@ public class ResponseBean implements Serializable {
* @deprecated
* @return ...
*/
@Deprecated
public String popStringBuffer() {
return res.popString();
}

View file

@ -142,6 +142,7 @@ public class RequestPath {
* @return the index of the element, or -1 if it isn't contained
* @deprecated use {@link #indexOf(Object)} instead.
*/
@Deprecated
public int contains(Object obj) {
return objects.indexOf(obj);
}

View file

@ -380,6 +380,7 @@ public class GlobalObject extends ImporterTopLevel implements PropertyRecorder {
* @param name the name of the libary namespace
* @deprecated should be implemented in JavaScript instead
*/
@Deprecated
public void defineLibraryScope(final String name) {
Object obj = get(name, this);
if (obj != NOT_FOUND) {

View file

@ -707,6 +707,7 @@ public class HopObject extends ScriptableObject implements Wrapper, PropertyReco
* Return its index position if it is, and -1 otherwise.
* @deprecated use indexOf(Object) instead.
*/
@Deprecated
public int jsFunction_contains(Object obj) {
return jsFunction_indexOf(obj);
}