Skip to content

Commit e2cafcf

Browse files
kwinmichael-o
authored andcommitted
Deprecate Xpp3DomUtils#isEmpty(String) and Xpp3DomUtils#isNotEmpty(String) in favour of same named methods in StringUtils (#215)
This fixes #215 and closes #218
1 parent 7f5114a commit e2cafcf

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

src/main/java/org/codehaus/plexus/util/xml/Xpp3DomUtils.java

+12-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
package org.codehaus.plexus.util.xml;
22

3+
import java.io.IOException;
4+
import java.util.HashMap;
5+
import java.util.Map;
6+
37
/*
48
* Copyright The Codehaus Foundation.
59
*
@@ -18,10 +22,6 @@
1822

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

21-
import java.io.IOException;
22-
import java.util.HashMap;
23-
import java.util.Map;
24-
2525
/** @author Jason van Zyl */
2626
public class Xpp3DomUtils
2727
{
@@ -275,11 +275,19 @@ public static Xpp3Dom mergeXpp3Dom( Xpp3Dom dominant, Xpp3Dom recessive )
275275
return recessive;
276276
}
277277

278+
/**
279+
* @deprecated Use {@link org.codehaus.plexus.util.StringUtils#isNotEmpty(String)} instead
280+
*/
281+
@Deprecated
278282
public static boolean isNotEmpty( String str )
279283
{
280284
return ( str != null && str.length() > 0 );
281285
}
282286

287+
/**
288+
* @deprecated Use {@link org.codehaus.plexus.util.StringUtils#isEmpty(String)} instead
289+
*/
290+
@Deprecated
283291
public static boolean isEmpty( String str )
284292
{
285293
return ( str == null || str.trim().length() == 0 );

0 commit comments

Comments
 (0)