Skip to content

Commit e2f0c1f

Browse files
committed
Make a couple items in SemanticGraphEdge final
1 parent 2e136eb commit e2f0c1f

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/edu/stanford/nlp/semgraph/SemanticGraphEdge.java

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ public class SemanticGraphEdge
2121
public static boolean printOnlyRelation = false; // a hack for displaying SemanticGraph in JGraph. Should be redone better.
2222

2323
private GrammaticalRelation relation;
24-
private double weight;
24+
private final double weight;
2525

26-
private boolean isExtra;
26+
private final boolean isExtra;
2727

2828
private final IndexedWord source;
2929
private final IndexedWord target;
@@ -87,18 +87,10 @@ public double getWeight() {
8787
return weight;
8888
}
8989

90-
public void setWeight(double weight) {
91-
this.weight = weight;
92-
}
93-
9490
public boolean isExtra() {
9591
return isExtra;
9692
}
9793

98-
public void setIsExtra(boolean isExtra) {
99-
this.isExtra = isExtra;
100-
}
101-
10294
/**
10395
* @return true if the edges are of the same relation type
10496
*/

0 commit comments

Comments
 (0)