Project

General

Profile

Revision b26b271b

IDb26b271b816ef5bc56909537f5c6b5419cb3acd3
Parent 886f5b0b
Child 84046c2e

Added by Andreas Müller over 2 years ago

fix clone method for TaxonBase

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/taxon/TaxonBase.java
438 438

  
439 439
    /**
440 440
     * Clones <i>this</i> taxon. This is a shortcut that enables to create
441
     * a new instance with empty taxon name and sec reference.
441
     * a new instance with exactly the same taxon name and sec reference.
442 442
     *
443 443
     * @see eu.etaxonomy.cdm.model.media.IdentifiableEntity#clone()
444 444
     * @see java.lang.Object#clone()
......
448 448
        TaxonBase<?> result;
449 449
        try {
450 450
            result = (TaxonBase<?>)super.clone();
451
            result.setSec(null);
451
//            result.setSec(null);
452 452

  
453 453
            return result;
454 454
        } catch (CloneNotSupportedException e) {

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)