Skip to content

Commit

Permalink
Deprecate Xpp3DomUtils#isEmpty(String) and Xpp3DomUtils#isNotEmpty(St…
Browse files Browse the repository at this point in the history
…ring) in favour of same named methods in StringUtils (#215)

This fixes #215 and closes #218
  • Loading branch information
kwin authored and michael-o committed Oct 10, 2022
1 parent 7f5114a commit e2cafcf
Showing 1 changed file with 12 additions and 4 deletions.
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

0 comments on commit e2cafcf

Please sign in to comment.