Project

General

Profile

« Previous | Next » 

Revision 63ed6f1b

Added by Andreas Müller over 3 years ago

try to improve DefinedTermBase.clone() (cont.)

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/description/Feature.java
1170 1170
//*********************************** CLONE *********************************************************/
1171 1171

  
1172 1172
    @Override
1173
    public Object clone() {
1173
    public Feature clone() {
1174 1174
        Feature result = (Feature)super.clone();
1175 1175

  
1176 1176
        result.inverseRepresentations = new HashSet<Representation>();
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/term/OrderedTermBase.java
246 246
     * @see java.lang.Object#clone()
247 247
     */
248 248
    @Override
249
    public Object clone() {
250
        OrderedTermBase<?> result = (OrderedTermBase<?>) super.clone();
249
    public OrderedTermBase<T> clone() {
250
        OrderedTermBase<T> result = (OrderedTermBase<T>) super.clone();
251 251
        //no changes to orderIndex
252 252
        return result;
253 253
    }

Also available in: Unified diff