From f5ebce786ab99e62352f010b412610555a494383 Mon Sep 17 00:00:00 2001 From: Toshiyuki Takahashi Date: Mon, 1 Jul 2024 13:35:57 +0900 Subject: [PATCH] Move a default instance from package object to companion object --- .../com/github/tototoshi/csv/CSVFormat.scala | 4 ++++ .../com/github/tototoshi/csv/package.scala | 23 ------------------- 2 files changed, 4 insertions(+), 23 deletions(-) delete mode 100644 src/main/scala/com/github/tototoshi/csv/package.scala diff --git a/src/main/scala/com/github/tototoshi/csv/CSVFormat.scala b/src/main/scala/com/github/tototoshi/csv/CSVFormat.scala index 5798b40a..57a1aefb 100644 --- a/src/main/scala/com/github/tototoshi/csv/CSVFormat.scala +++ b/src/main/scala/com/github/tototoshi/csv/CSVFormat.scala @@ -30,3 +30,7 @@ trait CSVFormat extends Serializable { val treatEmptyLineAsNil: Boolean } + +object CSVFormat { + implicit val defaultCSVFormat: DefaultCSVFormat = new DefaultCSVFormat {} +} \ No newline at end of file diff --git a/src/main/scala/com/github/tototoshi/csv/package.scala b/src/main/scala/com/github/tototoshi/csv/package.scala deleted file mode 100644 index c5ba6640..00000000 --- a/src/main/scala/com/github/tototoshi/csv/package.scala +++ /dev/null @@ -1,23 +0,0 @@ -/* -* Copyright 2013 Toshiyuki Takahashi -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -package com.github.tototoshi - -package object csv { - - implicit val defaultCSVFormat: DefaultCSVFormat = new DefaultCSVFormat {} - -}