Skip to content

Commit 298a132

Browse files
committed
Refactor to use String.isEmpty
1 parent 538286d commit 298a132

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

commonmark/src/main/java/org/commonmark/renderer/text/CoreTextContentNodeRenderer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ private void writeText(String text) {
236236
private void writeLink(Node node, String title, String destination) {
237237
boolean hasChild = node.getFirstChild() != null;
238238
boolean hasTitle = title != null && !title.equals(destination);
239-
boolean hasDestination = destination != null && !destination.equals("");
239+
boolean hasDestination = destination != null && !destination.isEmpty();
240240

241241
if (hasChild) {
242242
textContent.write('"');

0 commit comments

Comments
 (0)