Author: batosai
Date: 2008-08-31 11:40:48 +0000 (Sun, 31 Aug 2008)
New Revision: 22272
Modified:
trunk/apps/WoT/src/plugins/WoT/WoTplugin.java
Log:
Cleanup
Modified: trunk/apps/WoT/src/plugins/WoT/WoTplugin.java
===================================================================
--- trunk/apps/WoT/src/plugins/WoT/WoTplugin.java 2008-08-31 11:39:39 UTC
(rev 22271)
+++ trunk/apps/WoT/src/plugins/WoT/WoTplugin.java 2008-08-31 11:40:48 UTC
(rev 22272)
@@ -254,11 +254,9 @@
private void setTrust(String truster, String trustee, String value,
String comment) throws InvalidParameterException, UnknownIdentityException,
NumberFormatException, TransformerConfigurationException,
FileNotFoundException, ParserConfigurationException, TransformerException,
IOException, InsertException {
- Identity trusterId = wot.getIdentityByURI(truster);
+ OwnIdentity trusterId = wot.getOwnIdentityByURI(truster);
Identity trusteeId = wot.getIdentityByURI(trustee);
- if(!(trusterId instanceof OwnIdentity)) throw new
InvalidParameterException ("Truster isn't an OwnIdentity");
-
setTrust((OwnIdentity)trusterId, trusteeId,
Integer.parseInt(value), comment);
}