mirror of
https://github.com/apache/struts.git
synced 2026-08-06 23:27:07 +00:00
WW-5331 Adds missing @Override annotations
This commit is contained in:
@@ -36,10 +36,9 @@ public class ApplicationMap extends AbstractMap<String, Object> implements Seria
|
||||
|
||||
private static final long serialVersionUID = 9136809763083228202L;
|
||||
|
||||
private ServletContext context;
|
||||
private final ServletContext context;
|
||||
private Set<Entry<String, Object>> entries;
|
||||
|
||||
|
||||
/**
|
||||
* Creates a new map object given the servlet context.
|
||||
*
|
||||
@@ -117,6 +116,7 @@ public class ApplicationMap extends AbstractMap<String, Object> implements Seria
|
||||
* @param key the entry key.
|
||||
* @return the servlet context attribute or init parameter or <tt>null</tt> if the entry is not found.
|
||||
*/
|
||||
@Override
|
||||
public Object get(final Object key) {
|
||||
if (key == null) {
|
||||
return null;
|
||||
|
||||
@@ -35,8 +35,7 @@ public class PortletApplicationMap extends AbstractMap<String, Object> implement
|
||||
|
||||
private static final long serialVersionUID = 2296107511063504414L;
|
||||
|
||||
private PortletContext context;
|
||||
|
||||
private final PortletContext context;
|
||||
private Set<Entry<String, Object>> entries;
|
||||
|
||||
/**
|
||||
@@ -52,6 +51,7 @@ public class PortletApplicationMap extends AbstractMap<String, Object> implement
|
||||
* Removes all entries from the Map and removes all attributes from the
|
||||
* portlet context.
|
||||
*/
|
||||
@Override
|
||||
public void clear() {
|
||||
entries = null;
|
||||
|
||||
@@ -69,6 +69,7 @@ public class PortletApplicationMap extends AbstractMap<String, Object> implement
|
||||
* @return a Set of all portlet context attributes as well as context init
|
||||
* parameters.
|
||||
*/
|
||||
@Override
|
||||
public Set<Entry<String, Object>> entrySet() {
|
||||
if (entries == null) {
|
||||
entries = new HashSet<Entry<String, Object>>();
|
||||
@@ -160,6 +161,7 @@ public class PortletApplicationMap extends AbstractMap<String, Object> implement
|
||||
* @return the portlet context attribute or init parameter or <tt>null</tt>
|
||||
* if the entry is not found.
|
||||
*/
|
||||
@Override
|
||||
public Object get(Object key) {
|
||||
if (key == null) {
|
||||
return null;
|
||||
@@ -180,6 +182,7 @@ public class PortletApplicationMap extends AbstractMap<String, Object> implement
|
||||
* the value to set.
|
||||
* @return the attribute that was just set.
|
||||
*/
|
||||
@Override
|
||||
public Object put(String key, Object value) {
|
||||
entries = null;
|
||||
context.setAttribute(key, value);
|
||||
|
||||
Reference in New Issue
Block a user