You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by sc...@apache.org on 2017/08/02 02:03:14 UTC

svn commit: r1803735 - /uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/cas/FSIndexRepository.java

Author: schor
Date: Wed Aug  2 02:03:14 2017
New Revision: 1803735

URL: http://svn.apache.org/viewvc?rev=1803735&view=rev
Log:
no Jira, slight adjustment to generic typing

Modified:
    uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/cas/FSIndexRepository.java

Modified: uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/cas/FSIndexRepository.java
URL: http://svn.apache.org/viewvc/uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/cas/FSIndexRepository.java?rev=1803735&r1=1803734&r2=1803735&view=diff
==============================================================================
--- uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/cas/FSIndexRepository.java (original)
+++ uima/uv3/uimaj-v3/trunk/uimaj-core/src/main/java/org/apache/uima/cas/FSIndexRepository.java Wed Aug  2 02:03:14 2017
@@ -129,7 +129,7 @@ public interface FSIndexRepository {
    * @param clazz the JCas class of the type to remove.  To remove all use TOP.class
    * @exception NullPointerException if the <code>clazz</code> parameter is <code>null</code>.
   */
-  default void removeAllIncludingSubtypes(Class<? extends TOP> clazz) {
+  default <T extends TOP> void removeAllIncludingSubtypes(Class<T> clazz) {
     removeAllIncludingSubtypes(((FSIndexRepositoryImpl)this).getCasImpl().getJCasImpl().getCasType(clazz));
   }
   
@@ -145,7 +145,7 @@ public interface FSIndexRepository {
    * @param clazz the JCas Class of the type to remove
    * @exception NullPointerException if the <code>type</code> parameter is <code>null</code>.
   */
-  default void removeAllExcludingSubtypes(Class<? extends TOP> clazz) {
+  default <T extends TOP> void removeAllExcludingSubtypes(Class<T> clazz) {
     removeAllExcludingSubtypes(((FSIndexRepositoryImpl)this).getCasImpl().getJCasImpl().getCasType(clazz));
   }