Skip to content

Commit

Permalink
Fixes for changes to nowarn behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
bplommer committed Jan 7, 2024
1 parent b99bb03 commit 58cbc6b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion modules/core/src/main/scala-2/AvroDoc.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

package vulcan

import scala.annotation.StaticAnnotation
import scala.annotation.{StaticAnnotation, nowarn}

/**
* Annotation which can be used to include documentation
Expand All @@ -30,6 +30,7 @@ final class AvroDoc(final val doc: String) extends StaticAnnotation {
}

private[vulcan] object AvroDoc {
@nowarn("cat=deprecation")
final def unapply(avroDoc: AvroDoc): Some[String] =
Some(avroDoc.doc)
}
3 changes: 2 additions & 1 deletion modules/core/src/main/scala-2/AvroNamespace.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

package vulcan

import scala.annotation.StaticAnnotation
import scala.annotation.{StaticAnnotation, nowarn}

/**
* Annotation which can be used to set the namespace
Expand All @@ -27,6 +27,7 @@ final class AvroNamespace(final val namespace: String) extends StaticAnnotation
}

private[vulcan] object AvroNamespace {
@nowarn("cat=deprecation")
final def unapply(avroNamespace: AvroNamespace): Some[String] =
Some(avroNamespace.namespace)
}

0 comments on commit 58cbc6b

Please sign in to comment.