Project

General

Profile

Revision 63ed6f1b

ID63ed6f1b9c4d4719634dc0128f08d8b98ccb3989
Parent 83d93c4c
Child 964efbfc

Added by Andreas Müller 7 months 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

Add picture from clipboard (Maximum size: 40 MB)