Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
mederly committed Mar 22, 2019
2 parents 404fcbe + 7797d98 commit 9fa5e23
Showing 1 changed file with 6 additions and 41 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2010-2015 Evolveum
* Copyright (c) 2010-2019 Evolveum
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -14,13 +14,6 @@
* limitations under the License.
*/

//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2012.05.20 at 05:41:15 PM CEST
//


package com.evolveum.prism.xml.ns._public.types_3;

Expand Down Expand Up @@ -51,41 +44,14 @@


/**
*
* THIS IS NOT A GENERATED CLASS. It was heavily modified after it was originally generated long time ago.
*
* Describe a change to a single attribute.
* In this case the path expression used in the "property"
* attribute must select exactly one property.
*
* TODO: this should be renamed to ItemDeltaType
*
*
* <p>Java class for ItemDeltaType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="ItemDeltaType"&gt;
* &lt;complexContent&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
* &lt;sequence&gt;
* &lt;element name="modificationType" type="{http://prism.evolveum.com/xml/ns/public/types-3}ModificationTypeType"/&gt;
* &lt;element name="path" type="{http://prism.evolveum.com/xml/ns/public/types-3}XPathType" minOccurs="0"/&gt;
* &lt;element name="value"&gt;
* &lt;complexType&gt;
* &lt;complexContent&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
* &lt;sequence&gt;
* &lt;any processContents='lax' maxOccurs="unbounded" minOccurs="0"/&gt;
* &lt;/sequence&gt;
* &lt;/restriction&gt;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* &lt;/element&gt;
* &lt;/sequence&gt;
* &lt;/restriction&gt;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ItemDeltaType", propOrder = {
Expand Down Expand Up @@ -299,11 +265,10 @@ public ItemDeltaType clone() {
ItemDeltaType clone = new ItemDeltaType();
clone.setModificationType(getModificationType());
clone.setPath(getPath()); //TODO clone path
// If not to clone inside iteration, then in clone object would be an origin raw objects and manipulations with
// clones wail take effect on origin objects. For example parsing while taking data from raw objects.
// In our case it have bad side effect - equals doesn't work.
// Proper cloning of inner raw values.
List<RawType> cloneValue = clone.getValue();
for (RawType rawType : getValue()) {
clone.getValue().add(rawType.clone());
cloneValue.add(rawType.clone());
}
// delta.setValue(value != null ? value.clone() : null);
clone.getEstimatedOldValue().addAll(getEstimatedOldValue());
Expand Down

0 comments on commit 9fa5e23

Please sign in to comment.