Skip to content

Deprecate isEmpty(String) and isNotEmpty(String) in favour of same named #218

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
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