Skip to content
Snippets Groups Projects
Commit 920827ff authored by joalhelk's avatar joalhelk
Browse files

removed unused import & fixed string comparison bug

parent ec387f61
No related branches found
No related tags found
No related merge requests found
package com.joelhelkala.watcherGui.Nodes.Node; package com.joelhelkala.watcherGui.Nodes.Node;
import java.awt.LayoutManager;
import java.time.LocalDateTime; import java.time.LocalDateTime;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
......
...@@ -35,7 +35,7 @@ public class Nodes { ...@@ -35,7 +35,7 @@ public class Nodes {
public static Node findByLocation(String location) { public static Node findByLocation(String location) {
for(Node n : nodes) { for(Node n : nodes) {
if(n.getLocation() == location) return n; if(n.getLocation().equals(location)) return n;
} }
return null; return null;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment