[java-opensaml] branch master updated: Remove deprecated method.

Scott Cantor cantor.2 at osu.edu
Thu Feb 21 17:31:35 EST 2019


This is an automated email from the git hooks/post-receive script.

scantor pushed a commit to branch master
in repository java-opensaml.

View the commit online:
http://git.shibboleth.net/view/?p=java-opensaml.git;a=commit;h=9ee140420b451434693680029a6f85c1a4928be3

The following commit(s) were added to refs/heads/master by this push:
       new  9ee1404   Remove deprecated method.
9ee1404 is described below

commit 9ee140420b451434693680029a6f85c1a4928be3
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Thu Feb 21 17:31:30 2019 -0500

    Remove deprecated method.
---
 .../opensaml/core/xml/util/XMLObjectSupport.java   | 45 ----------------------
 1 file changed, 45 deletions(-)

diff --git a/opensaml-core/src/main/java/org/opensaml/core/xml/util/XMLObjectSupport.java b/opensaml-core/src/main/java/org/opensaml/core/xml/util/XMLObjectSupport.java
index 06ae81a..f2d04b6 100644
--- a/opensaml-core/src/main/java/org/opensaml/core/xml/util/XMLObjectSupport.java
+++ b/opensaml-core/src/main/java/org/opensaml/core/xml/util/XMLObjectSupport.java
@@ -28,8 +28,6 @@ import javax.annotation.Nonnull;
 import javax.annotation.Nullable;
 import javax.xml.namespace.QName;
 
-import net.shibboleth.utilities.java.support.primitive.DeprecationSupport;
-import net.shibboleth.utilities.java.support.primitive.DeprecationSupport.ObjectType;
 import net.shibboleth.utilities.java.support.primitive.StringSupport;
 import net.shibboleth.utilities.java.support.xml.AttributeSupport;
 import net.shibboleth.utilities.java.support.xml.ParserPool;
@@ -106,50 +104,7 @@ public final class XMLObjectSupport {
             throws MarshallingException, UnmarshallingException {
         return cloneXMLObject(originalXMLObject, CloneOutputOption.DropDOM);
     }
-    
-    /**
-     * Clone an XMLObject by brute force:
-     * 
-     * <p>
-     * 1) Marshall the original object if necessary
-     * 2) Clone the resulting DOM Element
-     * 3) Unmarshall a new XMLObject tree around it.
-     * </p>
-     * 
-     * <p>
-     * This method variant is equivalent to 
-     * <code>cloneXMLObject(originalXMLObject, CloneOutputOption.RootDOMInNewDocument)</code>
-     * or
-     * <code>cloneXMLObject(originalXMLObject, CloneOutputOption.UnrootedDOM)</code>,
-     * depending on the value of <code>rootInNewDocument</code>
-     * </p>
-     * 
-     * @param originalXMLObject the object to be cloned
-     * @param rootInNewDocument if true the cloned object's cached DOM will be rooted
-     *          in a new Document; if false, the original object's underlying DOM is cloned,
-     *          but the cloned copy remains unrooted and owned by the original Document
-     * @return a clone of the original object
-     * 
-     * @throws MarshallingException if original object can not be marshalled
-     * @throws UnmarshallingException if cloned object tree can not be unmarshalled
-     * 
-     * @param <T> the type of object being cloned
-     * 
-     * @deprecated use instead {@link #cloneXMLObject(XMLObject, CloneOutputOption)}.
-     */
-    @Deprecated
-    @Nullable public static <T extends XMLObject> T cloneXMLObject(@Nullable final T originalXMLObject,
-            final boolean rootInNewDocument) throws MarshallingException, UnmarshallingException {
-        DeprecationSupport.warnOnce(ObjectType.METHOD, "org.opensaml.core.xml.util.XMLObjectSupport" +
-            ".cloneXMLObject(XMLObject, boolean)", null, "cloneXMLObject(XMLObject, CloneOutputOption)");
         
-        if (rootInNewDocument) {
-            return cloneXMLObject(originalXMLObject, CloneOutputOption.RootDOMInNewDocument);
-        } else {
-            return cloneXMLObject(originalXMLObject, CloneOutputOption.UnrootedDOM);
-        }
-    }
-    
     /**
      * Clone an XMLObject by brute force:
      * 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list