From 0992faa38b7dc3eea6a31f0f801721e7797c0e59 Mon Sep 17 00:00:00 2001 From: Peter Nham Date: Mon, 9 Oct 2023 17:13:11 +1100 Subject: [PATCH] Remove package objects (#244) - Deprecated in scala 3 --- src/main/scala/introcourse/level03/package.scala | 12 ++++-------- src/main/scala/introcourse/level04/package.scala | 12 ++++-------- src/main/scala/introcourse/level05/package.scala | 8 ++------ 3 files changed, 10 insertions(+), 22 deletions(-) diff --git a/src/main/scala/introcourse/level03/package.scala b/src/main/scala/introcourse/level03/package.scala index c787bcb1..7932d932 100644 --- a/src/main/scala/introcourse/level03/package.scala +++ b/src/main/scala/introcourse/level03/package.scala @@ -1,11 +1,7 @@ -package introcourse +package introcourse.level03 -package object level03 { - - case class Person(name: String, age: Int) - - enum TrafficLight { - case Red, Yellow, Green - } +case class Person(name: String, age: Int) +enum TrafficLight { + case Red, Yellow, Green } diff --git a/src/main/scala/introcourse/level04/package.scala b/src/main/scala/introcourse/level04/package.scala index ce16aef9..5c2ab097 100644 --- a/src/main/scala/introcourse/level04/package.scala +++ b/src/main/scala/introcourse/level04/package.scala @@ -1,11 +1,7 @@ -package introcourse +package introcourse.level04 -package object level04 { - - case class Person(name: String, age: Int) - - enum TrafficLight { - case Red, Yellow, Green - } +case class Person(name: String, age: Int) +enum TrafficLight { + case Red, Yellow, Green } diff --git a/src/main/scala/introcourse/level05/package.scala b/src/main/scala/introcourse/level05/package.scala index 0fcda59b..25138d22 100644 --- a/src/main/scala/introcourse/level05/package.scala +++ b/src/main/scala/introcourse/level05/package.scala @@ -1,7 +1,3 @@ -package introcourse +package introcourse.level05 -package object level05 { - - case class Person(name: String, age: Int) - -} +case class Person(name: String, age: Int)