From e6da84191ac8ebaf973be765101dd63c0cda1198 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 9 Mar 2009 21:31:58 +0100 Subject: [PATCH] Simplify link title extraction. --- src/net/pterodactylus/arachne/parser/HtmlEditorKitParser.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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) { -- 2.7.4