Skip to content

Commit 727c267

Browse files
committed
Replaced deprecated APIs
1 parent 8b3e03f commit 727c267

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ph-css/src/main/java/com/helger/css/handler/ECSSNodeType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ private static void _dumpRecursive (@Nonnull final CSSNode aParserNode,
193193
@Nonnull final String sPrefix)
194194
{
195195
aSB.append (sPrefix).append (getNodeName (aParserNode));
196-
if (aParserNode.hasText ())
196+
if (aParserNode.isNotEmpty ())
197197
aSB.append ('[').append (aParserNode.getText ()).append (']');
198198
aSB.append ('\n');
199199
for (final CSSNode aChildNode : aParserNode)

ph-css/src/main/java/com/helger/css/parser/CSSNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public String getText ()
161161
return m_sText;
162162
}
163163

164-
public boolean hasText ()
164+
public boolean isNotEmpty ()
165165
{
166166
return m_sText != null;
167167
}

0 commit comments

Comments
 (0)