Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions src/main/java/org/codehaus/plexus/util/xml/Xpp3DomUtils.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
package org.codehaus.plexus.util.xml;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

/*
* Copyright The Codehaus Foundation.
*
Expand All @@ -18,10 +22,6 @@

import org.codehaus.plexus.util.xml.pull.XmlSerializer;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

/** @author Jason van Zyl */
public class Xpp3DomUtils
{
Expand Down Expand Up @@ -275,11 +275,19 @@ public static Xpp3Dom mergeXpp3Dom( Xpp3Dom dominant, Xpp3Dom recessive )
return recessive;
}

/**
* @deprecated Use {@link org.codehaus.plexus.util.StringUtils#isNotEmpty(String)} instead
*/
@Deprecated
public static boolean isNotEmpty( String str )
{
return ( str != null && str.length() > 0 );
}

/**
* @deprecated Use {@link org.codehaus.plexus.util.StringUtils#isEmpty(String)} instead
*/
@Deprecated
public static boolean isEmpty( String str )
{
return ( str == null || str.trim().length() == 0 );
Expand Down