Project

General

Profile

Revision 958bbf47

ID958bbf476593607623b66d533fe396f1deecb79b
Parent b06d238e
Child cbfc2a5f

Added by Andreas Müller over 1 year ago

cleanup

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/common/ReferencedEntityBase.java
107 107

  
108 108
//****************** CLONE ************************************************/
109 109

  
110
	/* (non-Javadoc)
111
	 * @see java.lang.Object#clone()
112
	 */
113 110
	@Override
114 111
	public Object clone() throws CloneNotSupportedException{
115 112
		ReferencedEntityBase result = (ReferencedEntityBase)super.clone();
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/description/DescriptionElementBase.java
507 507
        }
508 508

  
509 509
        //Sources
510
        result.sources = new HashSet<DescriptionElementSource>();
510
        result.sources = new HashSet<>();
511 511
        for (DescriptionElementSource source : getSources()){
512 512
            DescriptionElementSource newSource = (DescriptionElementSource)source.clone();
513 513
            result.addSource(newSource);
514 514
        }
515 515

  
516 516
        //media
517
        result.media = new ArrayList<Media>();
517
        result.media = new ArrayList<>();
518 518
        for (Media media : getMedia()){
519 519
            result.media.add(media);
520 520
        }
......
523 523
        result.modifyingText = cloneLanguageString(getModifyingText());
524 524

  
525 525
        //modifiers
526
        result.modifiers = new HashSet<DefinedTerm>();
526
        result.modifiers = new HashSet<>();
527 527
        for (DefinedTerm modifier : getModifiers()){
528 528
            result.modifiers.add(modifier);
529 529
        }

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)