[ https://issues.apache.org/jira/browse/OPENNLP-856?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joern Kottmann updated OPENNLP-856: ----------------------------------- Labels: feature features generator java1.8 (was: feature features generator) > Refactor AdaptiveFeatureGenerator and FeatureGeneratorAdapter > ------------------------------------------------------------- > > Key: OPENNLP-856 > URL: https://issues.apache.org/jira/browse/OPENNLP-856 > Project: OpenNLP > Issue Type: Improvement > Components: Name Finder > Affects Versions: 1.6.1 > Reporter: Jeff Zemerick > Assignee: Joern Kottmann > Priority: Minor > Labels: feature, features, generator, java1.8 > > Under the package opennlp.tools.util.featuregen there is an interface > AdaptiveFeatureGenerator and an abstract class FeatureGeneratorAdapter. The > interface defines the createFeatures(), updateAdaptiveData(), and > clearAdaptiveData() methods. The abstract class implements this interface to > provide default implementations of the updateAdaptiveData() and > clearAdaptiveData() functions. Feature generators then either implement the > interface or extend the abstract class. > The purpose of this task is to refactor these classes to remove confusion > caused by the similarity between the interface and the abstract class. This > task deprecates the AdaptiveFeatureGenerator interface in favor of the > abstract class FeatureGeneratorAdapter. > Default methods will be added to the AdaptiveFeatureGenerator interface to > maintain backward compatibility. To support the default methods the version > of the Java compiler will be set to 1.8. -- This message was sent by Atlassian JIRA (v6.3.4#6332)