/** * Method clone. * * @return Repository */ public Repository clone() { try { Repository copy = (Repository) super.clone(); if ( this.releases != null ) { copy.releases = (RepositoryPolicy) this.releases.clone(); } if ( this.snapshots != null ) { copy.snapshots = (RepositoryPolicy) this.snapshots.clone(); } return copy; } catch ( java.lang.Exception ex ) { throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName() + " does not support clone()" ).initCause( ex ); } } //-- Repository clone()
/** * Method clone. * * @return Repository */ public Repository clone() { try { Repository copy = (Repository) super.clone(); if ( this.releases != null ) { copy.releases = (RepositoryPolicy) this.releases.clone(); } if ( this.snapshots != null ) { copy.snapshots = (RepositoryPolicy) this.snapshots.clone(); } return copy; } catch ( java.lang.Exception ex ) { throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName() + " does not support clone()" ).initCause( ex ); } } //-- Repository clone()