From a90597f23c1846e1ff18c4a5609ba5eaac5026ef Mon Sep 17 00:00:00 2001 From: Jamie Willis Date: Tue, 9 Jan 2024 19:30:41 +0000 Subject: [PATCH] changed annotation --- .../src/main/scala/parsley/cats/combinator.scala | 6 +++--- scalastyle-config.xml | 10 ---------- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/parsley-cats/shared/src/main/scala/parsley/cats/combinator.scala b/parsley-cats/shared/src/main/scala/parsley/cats/combinator.scala index 8c1efbc..41a722c 100644 --- a/parsley-cats/shared/src/main/scala/parsley/cats/combinator.scala +++ b/parsley-cats/shared/src/main/scala/parsley/cats/combinator.scala @@ -5,14 +5,14 @@ */ package parsley.cats -import scala.annotation.unchecked - import cats.data.NonEmptyList import parsley.Parsley, Parsley.{notFollowedBy, many} import parsley.combinator.{manyTill} import parsley.lift.lift2 +import org.typelevel.scalaccompat.annotation.nowarn + /** This module contains pre-made combinators that are very useful for a variety of purposes, specialised to `cats`. * * In particular, it contains functionality found normally in `parsley.combinator`, but returning the `cats` `NonEmptyList` @@ -160,7 +160,7 @@ object combinator { * @since 1.2.0 */ def sepEndBy1[A](p: Parsley[A], sep: =>Parsley[_]): Parsley[NonEmptyList[A]] = parsley.combinator.sepEndBy1(p, sep).map { xxs => - val (x::xs) = xxs: @unchecked + val (x::xs) = xxs: @nowarn NonEmptyList(x, xs) } diff --git a/scalastyle-config.xml b/scalastyle-config.xml index c7d339d..45aed07 100644 --- a/scalastyle-config.xml +++ b/scalastyle-config.xml @@ -12,15 +12,6 @@ - - - true - - \* SPDX-License-Identifier: BSD-3-Clause - \*/]]> - - Each file must have a copyright notice that references the date of the file's creation, acknowledges the contributors, and declares the license. - @@ -101,7 +92,6 @@ java,scala,cats,parsley,parsley.internal,others javax?\..+ scala\..+ - cats\..+ parsley\.(?!internal).+ parsley\.internal\..+ .+