Project

General

Profile

Revision ca813b0a

IDca813b0a468cd2a33fa15fcc4d264f05ae260671
Parent 56a75172
Child 78ee5473

Added by Andreas Müller almost 7 years ago

clean up and remove redundant !removed: #3596

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/name/TaxonNameBase.java
1337 1337
        	 removed = taxonBases.remove(taxonBase);
1338 1338
        }
1339 1339
        if (!removed){
1340
	       if (!removed && !taxonBases.isEmpty()){
1340
	       if (!taxonBases.isEmpty()){
1341 1341
	    	   CopyOnWriteArrayList<TaxonBase> copyTaxonBase = new CopyOnWriteArrayList(taxonBases);
1342 1342
		      
1343 1343
		       for (TaxonBase temp:copyTaxonBase){
1344
		    	   
1344
		
1345 1345
		    	   if (temp.equals(taxonBase)){
1346 1346
		    		   removed = copyTaxonBase.remove(temp);
1347
		    	   }
1348
		    	   
1349
		    	   
1350
		        }
1347
		    	   } 	   
1348
		       }
1351 1349
		       if (removed){
1352 1350
		    	   taxonBases.clear();
1353 1351
		    	   taxonBases.addAll(copyTaxonBase);

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)