Skip to content

Commit

Permalink
payara#4281 Added missing @deprecated annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
sgflt committed Feb 9, 2020
1 parent 117549e commit 4ff359b
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1299,6 +1299,7 @@ public ServletContext getServletContext() {
* Java Servlet API.
*/
@Override
@Deprecated
public HttpSessionContext getSessionContext() {
if (sessionContext == null)
sessionContext = new StandardSessionContext();
Expand Down Expand Up @@ -1368,6 +1369,7 @@ public Enumeration<String> getAttributeNames() {
* <code>getAttribute()</code>
*/
@Override
@Deprecated
public Object getValue(String name) {
return (getAttribute(name));
}
Expand All @@ -1384,6 +1386,7 @@ public Object getValue(String name) {
* <code>getAttributeNames()</code>
*/
@Override
@Deprecated
public String[] getValueNames() {

if (!isValid())
Expand Down Expand Up @@ -1628,6 +1631,7 @@ public boolean isNew() {
* <code>setAttribute()</code>
*/
@Override
@Deprecated
public void putValue(String name, Object value) {
setAttribute(name, value);
}
Expand Down Expand Up @@ -1775,6 +1779,7 @@ public void removeAttribute(String name, boolean notify,
* <code>removeAttribute()</code>
*/
@Override
@Deprecated
public void removeValue(String name) {
removeAttribute(name);
}
Expand Down Expand Up @@ -2445,7 +2450,7 @@ private static Cache<Object, Boolean> buildSerializableCache() {
* @deprecated As of Java Servlet API 2.1 with no replacement. The
* interface will be removed in a future version of this API.
*/

@Deprecated
final class StandardSessionContext implements HttpSessionContext {


Expand All @@ -2460,6 +2465,7 @@ final class StandardSessionContext implements HttpSessionContext {
* and will be removed in a future version of the API.
*/
@Override
@Deprecated
public Enumeration<String> getIds() {
return (new Enumerator<>(dummy));
}
Expand All @@ -2476,6 +2482,7 @@ public Enumeration<String> getIds() {
* future version of the API.
*/
@Override
@Deprecated
public HttpSession getSession(String id) {
return (null);
}
Expand Down

0 comments on commit 4ff359b

Please sign in to comment.