You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by hl...@apache.org on 2006/08/21 03:58:28 UTC

svn commit: r433120 - in /tapestry/tapestry5/tapestry-core/trunk/src/test/java/org/apache/tapestry/internal: aspects/NullTarget.java ioc/ContributionDefImplTest.java

Author: hlship
Date: Sun Aug 20 18:58:26 2006
New Revision: 433120

URL: http://svn.apache.org/viewvc?rev=433120&view=rev
Log:
Remove a few warnings.

Modified:
    tapestry/tapestry5/tapestry-core/trunk/src/test/java/org/apache/tapestry/internal/aspects/NullTarget.java
    tapestry/tapestry5/tapestry-core/trunk/src/test/java/org/apache/tapestry/internal/ioc/ContributionDefImplTest.java

Modified: tapestry/tapestry5/tapestry-core/trunk/src/test/java/org/apache/tapestry/internal/aspects/NullTarget.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/tapestry-core/trunk/src/test/java/org/apache/tapestry/internal/aspects/NullTarget.java?rev=433120&r1=433119&r2=433120&view=diff
==============================================================================
--- tapestry/tapestry5/tapestry-core/trunk/src/test/java/org/apache/tapestry/internal/aspects/NullTarget.java (original)
+++ tapestry/tapestry5/tapestry-core/trunk/src/test/java/org/apache/tapestry/internal/aspects/NullTarget.java Sun Aug 20 18:58:26 2006
@@ -36,14 +36,15 @@
 
     public void primitiveParameter(int foo)
     {
-        
+
     }
-    
+
     public void manyParameters(Object p1, String p2, Map p3)
     {
 
     }
 
+    @Override
     public boolean equals(Object other)
     {
         return false;

Modified: tapestry/tapestry5/tapestry-core/trunk/src/test/java/org/apache/tapestry/internal/ioc/ContributionDefImplTest.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/tapestry-core/trunk/src/test/java/org/apache/tapestry/internal/ioc/ContributionDefImplTest.java?rev=433120&r1=433119&r2=433120&view=diff
==============================================================================
--- tapestry/tapestry5/tapestry-core/trunk/src/test/java/org/apache/tapestry/internal/ioc/ContributionDefImplTest.java (original)
+++ tapestry/tapestry5/tapestry-core/trunk/src/test/java/org/apache/tapestry/internal/ioc/ContributionDefImplTest.java Sun Aug 20 18:58:26 2006
@@ -32,6 +32,7 @@
 {
     private Object _toContribute;
 
+    @SuppressWarnings("unchecked")
     @Test
     public void unordered_contribution()
     {
@@ -51,6 +52,7 @@
         verify();
     }
 
+    @SuppressWarnings("unchecked")
     @Test
     public void unordered_collection_with_service_lookup()
     {
@@ -106,6 +108,7 @@
     // From here on in, it's an almost identical code path, so we won't be
     // as exhaustive.
 
+    @SuppressWarnings("unchecked")
     @Test
     public void ordered_collection_with_service_lookup()
     {
@@ -127,6 +130,7 @@
         verify();
     }
 
+    @SuppressWarnings("unchecked")
     @Test
     public void mapped_collection_with_service_lookup()
     {
@@ -153,25 +157,27 @@
         return newMock(UpcaseService.class);
     }
 
+    @SuppressWarnings("unchecked")
     public void contributeUnordered(Configuration configuration)
     {
         configuration.add(_toContribute);
     }
 
-    public void contributeUnorderedParameter(Configuration configuration, @InjectService("zip.Zap")
-    UpcaseService service)
+    public void contributeUnorderedParameter(Configuration<UpcaseService> configuration,
+            @InjectService("zip.Zap")
+            UpcaseService service)
     {
         configuration.add(service);
     }
 
-    public void contributeOrderedParameter(OrderedConfiguration configuration,
+    public void contributeOrderedParameter(OrderedConfiguration<UpcaseService> configuration,
             @InjectService("zip.Zap")
             UpcaseService service)
     {
         configuration.add("fred", service);
     }
 
-    public void contributeMappedParameter(MappedConfiguration configuration,
+    public void contributeMappedParameter(MappedConfiguration<String, UpcaseService> configuration,
             @InjectService("zip.Zap")
             UpcaseService service)
     {