You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tiles.apache.org by ap...@apache.org on 2008/06/27 21:11:05 UTC

svn commit: r672359 - in /tiles/framework/trunk/tiles-core/src: main/java/org/apache/tiles/web/util/ServletContextAdapter.java test/java/org/apache/tiles/definition/LocaleDefinitionsFactoryTest.java

Author: apetrelli
Date: Fri Jun 27 12:11:05 2008
New Revision: 672359

URL: http://svn.apache.org/viewvc?rev=672359&view=rev
Log:
Removed unnecessary @SuppressWarnings.

Modified:
    tiles/framework/trunk/tiles-core/src/main/java/org/apache/tiles/web/util/ServletContextAdapter.java
    tiles/framework/trunk/tiles-core/src/test/java/org/apache/tiles/definition/LocaleDefinitionsFactoryTest.java

Modified: tiles/framework/trunk/tiles-core/src/main/java/org/apache/tiles/web/util/ServletContextAdapter.java
URL: http://svn.apache.org/viewvc/tiles/framework/trunk/tiles-core/src/main/java/org/apache/tiles/web/util/ServletContextAdapter.java?rev=672359&r1=672358&r2=672359&view=diff
==============================================================================
--- tiles/framework/trunk/tiles-core/src/main/java/org/apache/tiles/web/util/ServletContextAdapter.java (original)
+++ tiles/framework/trunk/tiles-core/src/main/java/org/apache/tiles/web/util/ServletContextAdapter.java Fri Jun 27 12:11:05 2008
@@ -124,19 +124,18 @@
     }
 
     /** {@inheritDoc} */
-    @SuppressWarnings("deprecation")
     public Servlet getServlet(String string) throws ServletException {
         return rootContext.getServlet(string);
     }
 
     /** {@inheritDoc} */
-    @SuppressWarnings({ "deprecation", "unchecked" })
+    @SuppressWarnings({ "unchecked" })
     public Enumeration getServlets() {
         return rootContext.getServlets();  //To change body of implemented methods use File | Settings | File Templates.
     }
 
     /** {@inheritDoc} */
-    @SuppressWarnings({ "deprecation", "unchecked" })
+    @SuppressWarnings({ "unchecked" })
     public Enumeration getServletNames() {
         return rootContext.getServletNames();
     }
@@ -147,7 +146,6 @@
     }
 
     /** {@inheritDoc} */
-    @SuppressWarnings("deprecation")
     public void log(Exception exception, String string) {
         rootContext.log(exception, string);
     }

Modified: tiles/framework/trunk/tiles-core/src/test/java/org/apache/tiles/definition/LocaleDefinitionsFactoryTest.java
URL: http://svn.apache.org/viewvc/tiles/framework/trunk/tiles-core/src/test/java/org/apache/tiles/definition/LocaleDefinitionsFactoryTest.java?rev=672359&r1=672358&r2=672359&view=diff
==============================================================================
--- tiles/framework/trunk/tiles-core/src/test/java/org/apache/tiles/definition/LocaleDefinitionsFactoryTest.java (original)
+++ tiles/framework/trunk/tiles-core/src/test/java/org/apache/tiles/definition/LocaleDefinitionsFactoryTest.java Fri Jun 27 12:11:05 2008
@@ -85,7 +85,6 @@
      *
      * @throws Exception If something goes wrong.
      */
-    @SuppressWarnings("unchecked")
     public void testReadDefinitions() throws Exception {
         // Set up multiple data sources.
         URL url1 = this.getClass().getClassLoader().getResource(
@@ -131,7 +130,6 @@
      *
      * @throws Exception If something goes wrong.
      */
-    @SuppressWarnings("unchecked")
     public void testGetDefinition() throws Exception {
         // Set up multiple data sources.
         URL url1 = this.getClass().getClassLoader().getResource(
@@ -229,7 +227,6 @@
      *
      * @throws Exception If something goes wrong.
      */
-    @SuppressWarnings("unchecked")
     public void testReadByLocale() throws Exception {
         // Set up multiple data sources.
         URL url1 = this.getClass().getClassLoader().getResource(