diff --git a/beam/src/main/scala/magnolify/beam/unsafe/package.scala b/beam/src/main/scala/magnolify/beam/unsafe/package.scala index 9379200c..88ba49f3 100644 --- a/beam/src/main/scala/magnolify/beam/unsafe/package.scala +++ b/beam/src/main/scala/magnolify/beam/unsafe/package.scala @@ -1,6 +1,22 @@ +/* + * Copyright 2024 Spotify AB + * + * 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 magnolify.beam -import magnolify.shared._ +import magnolify.shared.* package object unsafe { implicit def afUnsafeEnum[T: EnumType]: BeamSchemaField[UnsafeEnum[T]] = diff --git a/shared/src/main/scala/magnolify/shared/Time.scala b/shared/src/main/scala/magnolify/shared/Time.scala index 5c61e960..83ce8b8f 100644 --- a/shared/src/main/scala/magnolify/shared/Time.scala +++ b/shared/src/main/scala/magnolify/shared/Time.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2024 Spotify AB + * + * 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 magnolify.shared import org.joda.time as joda @@ -5,9 +21,6 @@ import java.time.{Duration, Instant, LocalDateTime, LocalTime, ZoneOffset} import java.util.concurrent.TimeUnit object Time { -// @inline def microsToMillis(micros: Long): Long = TimeUnit.MICROSECONDS.toMillis(micros) -// @inline def millisToMicros(millis: Long): Long = TimeUnit.MILLISECONDS.toMicros(millis) - // millis ///////////////////////////////////////////////////// @inline def millisToInstant(millisFromEpoch: Long): Instant = Instant.ofEpochMilli(millisFromEpoch)