From: David ‘Bombe’ Roden Date: Mon, 9 Mar 2009 20:31:58 +0000 (+0100) Subject: Simplify link title extraction. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=e6da84191ac8ebaf973be765101dd63c0cda1198;p=arachne.git Simplify link title extraction. --- diff --git a/src/net/pterodactylus/arachne/parser/HtmlEditorKitParser.java b/src/net/pterodactylus/arachne/parser/HtmlEditorKitParser.java index 47e2d52..888e2df 100644 --- a/src/net/pterodactylus/arachne/parser/HtmlEditorKitParser.java +++ b/src/net/pterodactylus/arachne/parser/HtmlEditorKitParser.java @@ -89,11 +89,7 @@ public class HtmlEditorKitParser extends HTMLEditorKit.ParserCallback implements linkTarget = href; inLink = true; linkText = new StringBuilder(); - linkTitle = null; - String title = (String) attributeSet.getAttribute(HTML.Attribute.TITLE); - if (title != null) { - linkTitle = title; - } + linkTitle = (String) attributeSet.getAttribute(HTML.Attribute.TITLE); } } if (inLink) {