From: David ‘Bombe’ Roden Date: Fri, 5 Nov 2010 20:50:02 +0000 (+0100) Subject: Parse changed property names. X-Git-Tag: 0.2-RC1~9 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=02b72e2a9a8537f64570f05419e177d821d39598;p=Sone.git Parse changed property names. --- diff --git a/src/main/java/net/pterodactylus/sone/freenet/wot/WebOfTrustConnector.java b/src/main/java/net/pterodactylus/sone/freenet/wot/WebOfTrustConnector.java index 7127e8f..68f9e5f 100644 --- a/src/main/java/net/pterodactylus/sone/freenet/wot/WebOfTrustConnector.java +++ b/src/main/java/net/pterodactylus/sone/freenet/wot/WebOfTrustConnector.java @@ -265,11 +265,11 @@ public class WebOfTrustConnector implements ConnectorListener { Map properties = new HashMap(); int propertiesCounter = -1; while (true) { - String propertyName = fields.get(prefix + "Property" + ++propertiesCounter + "Name"); + String propertyName = fields.get(prefix + "PropertyName" + ++propertiesCounter); if (propertyName == null) { break; } - String propertyValue = fields.get(prefix + "Property" + propertiesCounter + "Value"); + String propertyValue = fields.get(prefix + "PropertyValue" + propertiesCounter); properties.put(propertyName, propertyValue); } return properties;