@Override\r
public void initBinder(WebDataBinder binder) {\r
super.initBinder(binder);\r
- binder.registerCustomEditor(MarkerType.class, new TermBasePropertyEditor<MarkerType>(termService));\r
+ binder.registerCustomEditor(MarkerType.class, new TermBasePropertyEditor<>(termService));\r
}\r
\r
protected List<String> getTaxonDescriptionInitStrategy() {\r
return getInitializationStrategy();\r
}\r
\r
+\r
/**\r
* Get the accepted {@link Taxon} for a given\r
* {@link TaxonBase} entity identified by the <code>{taxon-uuid}</code>.\r
@RequestParam(value="onlyCongruent", required=false) final boolean onlyCongruent,\r
HttpServletResponse response,\r
HttpServletRequest request) throws IOException {\r
- ModelAndView mv = new ModelAndView();\r
- /**\r
- * List<UUID> classificationFilter,\r
- * boolean includeDoubtful,\r
- * boolean onlyCongruent)\r
- */\r
- List<UUID> classificationFilter = null;\r
- if( classificationStringList != null ){\r
- classificationFilter = new ArrayList<UUID>();\r
- for(String classString :classificationStringList){\r
- classificationFilter.add(UUID.fromString(classString));\r
- }\r
+\r
+ ModelAndView mv = new ModelAndView();\r
+ /**\r
+ * List<UUID> classificationFilter,\r
+ * boolean includeDoubtful,\r
+ * boolean onlyCongruent)\r
+ */\r
+ List<UUID> classificationFilter = null;\r
+ if( classificationStringList != null ){\r
+ classificationFilter = new ArrayList<>();\r
+ for(String classString :classificationStringList){\r
+ classificationFilter.add(UUID.fromString(classString));\r
}\r
- final IncludedTaxonConfiguration configuration =\r
- new IncludedTaxonConfiguration(classificationFilter, includeDoubtful, onlyCongruent);\r
- IncludedTaxaDTO listIncludedTaxa = service.listIncludedTaxa(uuid, configuration);\r
- mv.addObject(listIncludedTaxa);\r
- return mv;\r
+ }\r
+ IncludedTaxonConfiguration configuration =\r
+ new IncludedTaxonConfiguration(classificationFilter, includeDoubtful, onlyCongruent);\r
+ IncludedTaxaDTO listIncludedTaxa = service.listIncludedTaxa(uuid, configuration);\r
+ mv.addObject(listIncludedTaxa);\r
+ return mv;\r
}\r
\r
// TODO ================================================================================ //\r
\r
ModelAndView mv = new ModelAndView();\r
\r
- List<DescriptionElementBase> allElements = new ArrayList<DescriptionElementBase>();\r
+ List<DescriptionElementBase> allElements = new ArrayList<>();\r
List<DescriptionElementBase> elements;\r
int count = 0;\r
\r
\r
Taxon t = getCdmBaseInstance(Taxon.class, uuid, response, (List<String>)null);\r
\r
- Set<MarkerType> markerTypesSet = new HashSet<MarkerType>();\r
+ Set<MarkerType> markerTypesSet = new HashSet<>();\r
if (markerTypes == null) {\r
markerTypesSet.addAll(markerTypes);\r
}\r