From a5c3599d7bc7a9ef5583ad2d50a55975f030fbea Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Tue, 29 Apr 2025 06:03:56 +0200 Subject: declare variables final when possible --- src/com.example.portfolio3/com/example/portfolio3/Edge.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/com.example.portfolio3/com/example/portfolio3/Edge.java') diff --git a/src/com.example.portfolio3/com/example/portfolio3/Edge.java b/src/com.example.portfolio3/com/example/portfolio3/Edge.java index f5d54db..7cb8d5a 100644 --- a/src/com.example.portfolio3/com/example/portfolio3/Edge.java +++ b/src/com.example.portfolio3/com/example/portfolio3/Edge.java @@ -27,7 +27,7 @@ public class Edge{ /// @param from foo /// @param to foo /// @param w foo - Edge(Vertex from,Vertex to,int w){this.from=from; this.to=to; weight=w;} + Edge(final Vertex from, final Vertex to, final int w){this.from=from; this.to=to; weight=w;} /// foo /// @return String -- cgit v1.2.3