From: David ‘Bombe’ Roden Date: Mon, 20 Jul 2015 20:34:47 +0000 (+0200) Subject: Use isFreenetLink() attribute on LinkType X-Git-Tag: 0.9.3^2~12 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=715dd5993d597018dfbc569a83d749f6c70f2b7f;p=Sone.git Use isFreenetLink() attribute on LinkType --- diff --git a/src/main/java/net/pterodactylus/sone/text/SoneTextParser.java b/src/main/java/net/pterodactylus/sone/text/SoneTextParser.java index 62fc7dc..7bdcf7a 100644 --- a/src/main/java/net/pterodactylus/sone/text/SoneTextParser.java +++ b/src/main/java/net/pterodactylus/sone/text/SoneTextParser.java @@ -220,7 +220,7 @@ public class SoneTextParser implements Parser { continue; } - if ((linkType == LinkType.KSK) || (linkType == LinkType.CHK) || (linkType == LinkType.SSK) || (linkType == LinkType.USK)) { + if (linkType.isFreenetLink()) { FreenetURI uri; if (name.indexOf('?') > -1) { name = name.substring(0, name.indexOf('?'));