[jboss-cvs] JBossAS SVN: r95781 - projects/mc-ann/trunk/core/src/main/java/org/jboss/mcann/repository.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Oct 29 15:29:07 EDT 2009
Author: alesj
Date: 2009-10-29 15:29:07 -0400 (Thu, 29 Oct 2009)
New Revision: 95781
Modified:
projects/mc-ann/trunk/core/src/main/java/org/jboss/mcann/repository/AbstractGroupingStrategy.java
projects/mc-ann/trunk/core/src/main/java/org/jboss/mcann/repository/MergeGroupingStrategy.java
projects/mc-ann/trunk/core/src/main/java/org/jboss/mcann/repository/SourceLocationGroupingStrategy.java
Log:
Return unchecked wrap.
Modified: projects/mc-ann/trunk/core/src/main/java/org/jboss/mcann/repository/AbstractGroupingStrategy.java
===================================================================
--- projects/mc-ann/trunk/core/src/main/java/org/jboss/mcann/repository/AbstractGroupingStrategy.java 2009-10-29 19:23:54 UTC (rev 95780)
+++ projects/mc-ann/trunk/core/src/main/java/org/jboss/mcann/repository/AbstractGroupingStrategy.java 2009-10-29 19:29:07 UTC (rev 95781)
@@ -26,7 +26,7 @@
/**
* Abstract grouping strategy.
*
- * @param <T> exact rturn type
+ * @param <T> exact return type
* @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
*/
public abstract class AbstractGroupingStrategy<T> implements GroupingStrategy<T>
@@ -58,4 +58,10 @@
{
return putToCache;
}
+
+ @SuppressWarnings("unchecked")
+ public T wrap(Object result)
+ {
+ return (T)result;
+ }
}
\ No newline at end of file
Modified: projects/mc-ann/trunk/core/src/main/java/org/jboss/mcann/repository/MergeGroupingStrategy.java
===================================================================
--- projects/mc-ann/trunk/core/src/main/java/org/jboss/mcann/repository/MergeGroupingStrategy.java 2009-10-29 19:23:54 UTC (rev 95780)
+++ projects/mc-ann/trunk/core/src/main/java/org/jboss/mcann/repository/MergeGroupingStrategy.java 2009-10-29 19:29:07 UTC (rev 95781)
@@ -68,9 +68,4 @@
}
return null;
}
-
- public Void wrap(Object result)
- {
- return null;
- }
}
\ No newline at end of file
Modified: projects/mc-ann/trunk/core/src/main/java/org/jboss/mcann/repository/SourceLocationGroupingStrategy.java
===================================================================
--- projects/mc-ann/trunk/core/src/main/java/org/jboss/mcann/repository/SourceLocationGroupingStrategy.java 2009-10-29 19:23:54 UTC (rev 95780)
+++ projects/mc-ann/trunk/core/src/main/java/org/jboss/mcann/repository/SourceLocationGroupingStrategy.java 2009-10-29 19:29:07 UTC (rev 95781)
@@ -67,10 +67,4 @@
}
return map;
}
-
- @SuppressWarnings("unchecked")
- public Map<URL, AnnotationRepository> wrap(Object result)
- {
- return (Map<URL, AnnotationRepository>)result;
- }
}
\ No newline at end of file
More information about the jboss-cvs-commits
mailing list