[ 
https://issues.apache.org/jira/browse/UIMA-1524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15487220#comment-15487220
 ] 

Marshall Schor commented on UIMA-1524:
--------------------------------------

Thanks for mentioning the Eclipse "feature/trick" for suggestion list for 
static methods - I didn't know about that.

Here's a plain Java trick I learned recently, that let's you avoid the 
Classname.some_static_method "Classname" prefix in Java 8.  It has 2 steps:

* put the static method in an interface, as a static (default) method.
* in a class where you want to use these, have the class "implement" the 
interface.

Then you can use the name without the prefix.  Works also with static fields.  
It's a nice way to include lots of static field names.

> JFSIndexRepository should be enhanced with new generic methods
> --------------------------------------------------------------
>
>                 Key: UIMA-1524
>                 URL: https://issues.apache.org/jira/browse/UIMA-1524
>             Project: UIMA
>          Issue Type: Improvement
>          Components: Core Java Framework
>    Affects Versions: 2.3
>            Reporter: Joern Kottmann
>
> Existing methods should be overloaded with an additional Class argument to 
> specify the exact return type. This changes make down casting of returned 
> objects unnecessary. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to