From 9c8a6f00fe09b5257ad3446d0126eb63fa9c59f9 Mon Sep 17 00:00:00 2001 From: "Edward A. Lee" Date: Tue, 31 Dec 2024 11:10:29 -0800 Subject: [PATCH] Spotless --- .../java/org/lflang/generator/c/CParameterGenerator.java | 3 +-- test/C/src/ParameterOverride.lf | 5 +++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/main/java/org/lflang/generator/c/CParameterGenerator.java b/core/src/main/java/org/lflang/generator/c/CParameterGenerator.java index f73f3aefb5..bcf03ea33a 100644 --- a/core/src/main/java/org/lflang/generator/c/CParameterGenerator.java +++ b/core/src/main/java/org/lflang/generator/c/CParameterGenerator.java @@ -1,13 +1,12 @@ package org.lflang.generator.c; +import java.util.HashSet; import org.lflang.ast.ASTUtils; import org.lflang.generator.CodeBuilder; import org.lflang.generator.ParameterInstance; import org.lflang.lf.Initializer; import org.lflang.lf.Parameter; -import java.util.HashSet; - /** * Generates C code to declare and initialize parameters. * diff --git a/test/C/src/ParameterOverride.lf b/test/C/src/ParameterOverride.lf index d639eea3af..b586281dee 100644 --- a/test/C/src/ParameterOverride.lf +++ b/test/C/src/ParameterOverride.lf @@ -1,6 +1,6 @@ target C -reactor A(x:int = 0) { +reactor A(x: int = 0) { reaction(startup) {= if (self->x != 1) { lf_print_error_and_exit("x is %d. Should be 1.", self->x); @@ -8,7 +8,8 @@ reactor A(x:int = 0) { =} } -reactor B(x:int = 1) extends A { } +reactor B(x: int = 1) extends A { +} main reactor { b = new B()