VIVO-235 Reduce "deprecation" messages in the build
It's OK for these stub classes to implement deprecated methods in the interfaces, as long as they declare those methods with @Override and @Deprecated.
This commit is contained in:
parent
56b963d8bc
commit
c75c0d0f9f
3 changed files with 54 additions and 11 deletions
|
@ -126,12 +126,14 @@ public class HttpSessionStub implements HttpSession {
|
|||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public Object getValue(String arg0) {
|
||||
throw new RuntimeException(
|
||||
"HttpSessionStub.getValue() not implemented.");
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public String[] getValueNames() {
|
||||
throw new RuntimeException(
|
||||
"HttpSessionStub.getValueNames() not implemented.");
|
||||
|
@ -149,12 +151,14 @@ public class HttpSessionStub implements HttpSession {
|
|||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public void putValue(String arg0, Object arg1) {
|
||||
throw new RuntimeException(
|
||||
"HttpSessionStub.putValue() not implemented.");
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public void removeValue(String arg0) {
|
||||
throw new RuntimeException(
|
||||
"HttpSessionStub.removeValue() not implemented.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue