corliber / cleartk

Automatically exported from code.google.com/p/cleartk
0 stars 0 forks source link

Clean up reflection related code in annotation handlers and AEs #91

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I just added a method called getClass to UIMAUtil which has the same
parameters as the create method but returns the class instead of a new
instance of the class.  This is now used by the create method.  The
getClass method is useful for annotation handlers and AEs that get class
names of types to be used for analysis.  I just replaced about 20 lines of
code in ChunkerHandler's initialize method with 4 lines that call these two
methods.  I am sure that I have done this elsewhere.  TokenAnnotator comes
to mind - but there must be other places too.  

Original issue reported on code.google.com by pvogren@gmail.com on 24 Apr 2009 at 3:01

GoogleCodeExporter commented 8 years ago
TokenAnnotator's initialize method was updated a while back and is much cleaner 
now.
 I don't want to close this issue until we've looked through the code base for other
places to clean up the code.

Original comment by pvogren@gmail.com on 23 Jul 2009 at 3:19

GoogleCodeExporter commented 8 years ago
I have fixed/cleaned up code in a number of places.  This morning I did a 
search for
"Class.forName" and found another place where the code could be cleaned up
(ViterbiDataWriter).  I am satisfied that this issue is resolved now.  

Original comment by pvogren@gmail.com on 27 Oct 2009 at 2:50