From 73102c9897ee319a2b63335fc1a80fed071a73c5 Mon Sep 17 00:00:00 2001 From: Ahmad Date: Tue, 21 May 2024 14:56:04 +0200 Subject: [PATCH] Made a line code better to read --- src/main/java/de/maishai/typedast/typedclass/TypedBlock.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/maishai/typedast/typedclass/TypedBlock.java b/src/main/java/de/maishai/typedast/typedclass/TypedBlock.java index 95e3271..9a48cf8 100644 --- a/src/main/java/de/maishai/typedast/typedclass/TypedBlock.java +++ b/src/main/java/de/maishai/typedast/typedclass/TypedBlock.java @@ -37,8 +37,8 @@ public class TypedBlock implements TypedNode { } for (var stmt : unTypedBlock.stmts()) { - if (stmt instanceof Declaration){ - vars.add(new TypedLocalVariable(typedProgram,(Declaration) stmt)); + if (stmt instanceof Declaration declaration) { + vars.add(new TypedLocalVariable(typedProgram, declaration)); } if (stmt instanceof Assignment assignment) { TypedAssignment typedAssignment = new TypedAssignment(typedProgram, assignment);