Author: batosai
Date: 2008-09-24 19:48:00 +0000 (Wed, 24 Sep 2008)
New Revision: 22821
Modified:
trunk/plugins/WoT/Score.java
Log:
Avoid modification of tree owner and target identity, as suggested by toad.
Modified: trunk/plugins/WoT/Score.java
===================================================================
--- trunk/plugins/WoT/Score.java 2008-09-24 19:38:46 UTC (rev 22820)
+++ trunk/plugins/WoT/Score.java 2008-09-24 19:48:00 UTC (rev 22821)
@@ -22,8 +22,8 @@
*/
public class Score {
- private OwnIdentity treeOwner; // OwnIdentity that owns the trust tree
- private Identity target; // The Identity that has this
Score
+ private final OwnIdentity treeOwner; // OwnIdentity that owns the
trust tree
+ private final Identity target; // Identity that has
this Score
// The actual score of the Identity.
// Used to decide if the OwnIdentity sees the Identity or not
@@ -114,13 +114,6 @@
}
/**
- * Sets in which OwnIdentity's trust tree this score is.
- */
- public void setTreeOwner(OwnIdentity treeOwner) {
- this.treeOwner = treeOwner;
- }
-
- /**
* @return Identity that has this Score
*/
public Identity getTarget() {
@@ -128,13 +121,6 @@
}
/**
- * Sets the Identity that has this Score.
- */
- public void setTarget(Identity target) {
- this.target = target;
- }
-
- /**
* @return the numeric value of this Score
*/
public int getScore() {