From 04fd097fb51346f655c7bdc0c88b85e29359ef1c Mon Sep 17 00:00:00 2001 From: bd-912 Date: Sat, 20 Apr 2024 23:43:30 -0600 Subject: Non-function live-interval computation algorithm --- st/AbstractInstance.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'st/AbstractInstance.java') diff --git a/st/AbstractInstance.java b/st/AbstractInstance.java index ddf7156..4e4287d 100644 --- a/st/AbstractInstance.java +++ b/st/AbstractInstance.java @@ -14,16 +14,16 @@ public abstract class AbstractInstance { this.scope = new ArrayList<>(); } - public String toString() { + @Override public String toString() { return this.name; } - public boolean equals(AbstractInstance other) { + @Override public boolean equals(AbstractInstance other) { return this.name == other.getName() && this.type == this.type; } - public int hashCode() { + @Override public int hashCode() { return this.name.hashCode(); } -- cgit v1.2.3