import java.util.Set;
import org.apache.commons.lang.StringUtils;
-import org.apache.log4j.Logger;
+import org.apache.logging.log4j.LogManager;import org.apache.logging.log4j.Logger;
import org.springframework.stereotype.Component;
import eu.etaxonomy.cdm.format.description.DefaultCategoricalDescriptionBuilder;
*/
@Component
public class NaturalLanguageGenerator implements INaturalLanguageGenerator {
+
@SuppressWarnings("unused")
- private static final Logger logger = Logger.getLogger(NaturalLanguageGenerator.class);
+ private static final Logger logger = LogManager.getLogger(NaturalLanguageGenerator.class);
private String firstSeparator = ",";
private String secondSeparator = ".";
- private List<Integer> levels = new ArrayList<Integer>();
+ private List<Integer> levels = new ArrayList<>();
private DescriptionBuilder<QuantitativeData> quantitativeDescriptionBuilder = new DefaultQuantitativeDescriptionBuilder();
private DescriptionBuilder<CategoricalData> categoricalDescriptionBuilder = new DefaultCategoricalDescriptionBuilder();
private TextData previousTextData;
- DeltaTextDataProcessor deltaTextDataProcessor = new DeltaTextDataProcessor();
+ private DeltaTextDataProcessor deltaTextDataProcessor = new DeltaTextDataProcessor();
private Map<String, INaturalLanguageTextDataProcessor> elementProcessors;