This is an automated email from the ASF dual-hosted git repository.

rec pushed a commit to branch 
feature/UIMA-5818-Use-List-instead-of-Collection-where-possible
in repository https://gitbox.apache.org/repos/asf/uima-uimafit.git


The following commit(s) were added to 
refs/heads/feature/UIMA-5818-Use-List-instead-of-Collection-where-possible by 
this push:
     new 89fb8e8  [UIMA-5818] Use List instead of Collection where possible
89fb8e8 is described below

commit 89fb8e83c9de12cb6feb6457cfb12e77d041ae97
Author: Richard Eckart de Castilho <[email protected]>
AuthorDate: Wed Jul 25 00:46:59 2018 +0200

    [UIMA-5818] Use List instead of Collection where possible
    
    - Use a less safe typecast because the JDK compiler is a bit too strict
---
 .../src/main/java/org/apache/uima/fit/util/FSCollectionFactory.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/uimafit-core/src/main/java/org/apache/uima/fit/util/FSCollectionFactory.java 
b/uimafit-core/src/main/java/org/apache/uima/fit/util/FSCollectionFactory.java
index fe969e5..67f1d73 100644
--- 
a/uimafit-core/src/main/java/org/apache/uima/fit/util/FSCollectionFactory.java
+++ 
b/uimafit-core/src/main/java/org/apache/uima/fit/util/FSCollectionFactory.java
@@ -136,7 +136,7 @@ public abstract class FSCollectionFactory {
     // Was: return new AnnotationIndexAdapter<T>(aIndex);
     // return aIndex.select().asList(); // That call is still buggy in UIMA 
3.0.0
     Collection<T> result = new AnnotationIndexAdapter<T>(aIndex);
-    return (List<T>) asList(result.toArray());
+    return (List) asList(result.toArray());
   }
 
   /**

Reply via email to