Project

General

Profile

« Previous | Next » 

Revision 6eee71ca

Added by Andreas Müller about 3 years ago

cleanup

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/component/distributionStatus/AreaAndTaxonSettingsConfigWindow.java
265 265
            }
266 266
        }
267 267
        else if(property==distAreaBox){
268
            TermVocabulary<NamedArea> vocabulary = (TermVocabulary<NamedArea>) event.getProperty().getValue();
268
            @SuppressWarnings("unchecked")
269
            TermVocabulary<NamedArea> vocabulary = (TermVocabulary<NamedArea>) property.getValue();
269 270
            NamedAreaContainer container = new NamedAreaContainer(vocabulary);
270 271
            namedAreaList.setContainerDataSource(container);
271 272
        }
......
285 286
            TermVocabulary<NamedArea> areaVoc = null;
286 287
            String uuidString = (String) classificationBox.getContainerProperty(classificationBox.getValue(),"uuid").getValue(); //$NON-NLS-1$
287 288
            UUID classificationUuid = UUID.fromString(uuidString);
289
            @SuppressWarnings("unchecked")
288 290
            Set<UuidAndTitleCache<TaxonNode>> treeSelection = (Set<UuidAndTitleCache<TaxonNode>>) taxonTree.getValue();
289 291
			if(!treeSelection.isEmpty()){
290 292
				for (UuidAndTitleCache<TaxonNode> uuidAndTitleCache : treeSelection) {
......
297 299
                }
298 300
			}
299 301
            areaVoc = (TermVocabulary<NamedArea>) distAreaBox.getValue();
302
            @SuppressWarnings("unchecked")
300 303
            List<NamedArea> selectedAreas = new ArrayList<>((Set<NamedArea>)namedAreaList.getValue()); //getValue is LinkedHashSet and therefore sorted
301 304
            DistributionEditorUtil.updateDistributionView(distributionTableView, taxonNodes, areaVoc, selectedAreas, classificationUuid);
302 305
            window.close();

Also available in: Unified diff