From fecd6edf750b59fa5d91518c9273472551172a83 Mon Sep 17 00:00:00 2001 From: Chris Beams Date: Thu, 30 Jun 2011 22:34:08 +0000 Subject: [PATCH] Fix unnecessary casts in Servlet*PropertySource --- .../web/context/support/ServletConfigPropertySource.java | 5 +---- .../web/context/support/ServletContextPropertySource.java | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/org.springframework.web/src/main/java/org/springframework/web/context/support/ServletConfigPropertySource.java b/org.springframework.web/src/main/java/org/springframework/web/context/support/ServletConfigPropertySource.java index d97c476086..c933827cff 100644 --- a/org.springframework.web/src/main/java/org/springframework/web/context/support/ServletConfigPropertySource.java +++ b/org.springframework.web/src/main/java/org/springframework/web/context/support/ServletConfigPropertySource.java @@ -16,8 +16,6 @@ package org.springframework.web.context.support; -import java.util.Enumeration; - import javax.servlet.ServletConfig; import org.springframework.core.env.EnumerablePropertySource; @@ -38,10 +36,9 @@ public class ServletConfigPropertySource extends EnumerablePropertySource)this.source.getInitParameterNames(), EMPTY_NAMES_ARRAY); + this.source.getInitParameterNames(), EMPTY_NAMES_ARRAY); } @Override diff --git a/org.springframework.web/src/main/java/org/springframework/web/context/support/ServletContextPropertySource.java b/org.springframework.web/src/main/java/org/springframework/web/context/support/ServletContextPropertySource.java index f922dd5b68..38251f1ad1 100644 --- a/org.springframework.web/src/main/java/org/springframework/web/context/support/ServletContextPropertySource.java +++ b/org.springframework.web/src/main/java/org/springframework/web/context/support/ServletContextPropertySource.java @@ -16,8 +16,6 @@ package org.springframework.web.context.support; -import java.util.Enumeration; - import javax.servlet.ServletContext; import org.springframework.core.env.EnumerablePropertySource; @@ -38,10 +36,9 @@ public class ServletContextPropertySource extends EnumerablePropertySource)this.source.getInitParameterNames(), EMPTY_NAMES_ARRAY); + this.source.getInitParameterNames(), EMPTY_NAMES_ARRAY); } @Override