From a8dd00df39fe0e1481d166bf0fd63c1a2c0fc50c Mon Sep 17 00:00:00 2001 From: Yicong Huang <17627829+Yicong-Huang@users.noreply.github.com> Date: Sun, 29 Dec 2024 23:42:13 -0800 Subject: [PATCH] fix format --- .../amber/operator/filter/SpecializedFilterOpExecSpec.scala | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/workflow-operator/src/test/scala/edu/uci/ics/amber/operator/filter/SpecializedFilterOpExecSpec.scala b/core/workflow-operator/src/test/scala/edu/uci/ics/amber/operator/filter/SpecializedFilterOpExecSpec.scala index 96a1751685..2826630cee 100644 --- a/core/workflow-operator/src/test/scala/edu/uci/ics/amber/operator/filter/SpecializedFilterOpExecSpec.scala +++ b/core/workflow-operator/src/test/scala/edu/uci/ics/amber/operator/filter/SpecializedFilterOpExecSpec.scala @@ -4,7 +4,6 @@ import edu.uci.ics.amber.core.tuple.{Attribute, AttributeType, Schema, Tuple} import org.scalatest.BeforeAndAfter import org.scalatest.flatspec.AnyFlatSpec -import java.util.Arrays.asList class SpecializedFilterOpExecSpec extends AnyFlatSpec with BeforeAndAfter { val inputPort: Int = 0 @@ -91,7 +90,7 @@ class SpecializedFilterOpExecSpec extends AnyFlatSpec with BeforeAndAfter { assert(attributes.length == 1) val opExec = new SpecializedFilterOpExec( - List(new FilterPredicate(attributes(0).getName, ComparisonType.IS_NULL, null)) + List(new FilterPredicate(attributes.head.getName, ComparisonType.IS_NULL, null)) ) opExec.open() @@ -125,7 +124,7 @@ class SpecializedFilterOpExecSpec extends AnyFlatSpec with BeforeAndAfter { assert(attributes.length == 1) val opExec = new SpecializedFilterOpExec( - List(new FilterPredicate(attributes(0).getName, ComparisonType.IS_NOT_NULL, null)) + List(new FilterPredicate(attributes.head.getName, ComparisonType.IS_NOT_NULL, null)) ) opExec.open()