Author: simonetripodi
Date: Sun Sep 4 16:19:18 2011
New Revision: 1165067
URL: http://svn.apache.org/viewvc?rev=1165067&view=rev
Log:
muted HttpServletReuqets.getAttrbibuteNames() warnings, it is known that
Servlet request attribute names are String
Modified:
commons/proper/chain/branches/version-2.0-work/src/main/java/org/apache/commons/chain/web/servlet/ServletRequestScopeMap.java
Modified:
commons/proper/chain/branches/version-2.0-work/src/main/java/org/apache/commons/chain/web/servlet/ServletRequestScopeMap.java
URL:
http://svn.apache.org/viewvc/commons/proper/chain/branches/version-2.0-work/src/main/java/org/apache/commons/chain/web/servlet/ServletRequestScopeMap.java?rev=1165067&r1=1165066&r2=1165067&view=diff
==============================================================================
---
commons/proper/chain/branches/version-2.0-work/src/main/java/org/apache/commons/chain/web/servlet/ServletRequestScopeMap.java
(original)
+++
commons/proper/chain/branches/version-2.0-work/src/main/java/org/apache/commons/chain/web/servlet/ServletRequestScopeMap.java
Sun Sep 4 16:19:18 2011
@@ -63,6 +63,7 @@ final class ServletRequestScopeMap imple
if (value == null) {
return (false);
}
+ @SuppressWarnings( "unchecked" ) // it is known that attribute names
are String
Enumeration<String> keys = request.getAttributeNames();
while (keys.hasMoreElements()) {
Object next = request.getAttribute(keys.nextElement());
@@ -76,6 +77,7 @@ final class ServletRequestScopeMap imple
public Set<Entry<String, Object>> entrySet() {
Set<Entry<String, Object>> set = new HashSet<Entry<String, Object>>();
+ @SuppressWarnings( "unchecked" ) // it is known that attribute names
are String
Enumeration<String> keys = request.getAttributeNames();
String key;
while (keys.hasMoreElements()) {
@@ -108,6 +110,7 @@ final class ServletRequestScopeMap imple
public Set<String> keySet() {
Set<String> set = new HashSet<String>();
+ @SuppressWarnings( "unchecked" ) // it is known that attribute names
are String
Enumeration<String> keys = request.getAttributeNames();
while (keys.hasMoreElements()) {
set.add(keys.nextElement());
@@ -144,7 +147,8 @@ final class ServletRequestScopeMap imple
public int size() {
int n = 0;
- Enumeration keys = request.getAttributeNames();
+ @SuppressWarnings( "unchecked" ) // it is known that attribute names
are String
+ Enumeration<String> keys = request.getAttributeNames();
while (keys.hasMoreElements()) {
keys.nextElement();
n++;
@@ -155,6 +159,7 @@ final class ServletRequestScopeMap imple
public Collection<Object> values() {
List<Object> list = new ArrayList<Object>();
+ @SuppressWarnings( "unchecked" ) // it is known that attribute names
are String
Enumeration<String> keys = request.getAttributeNames();
while (keys.hasMoreElements()) {
list.add(request.getAttribute(keys.nextElement()));