Skip to content

Commit

Permalink
Merge pull request #4559 from TonioGela/useless-public-member
Browse files Browse the repository at this point in the history
Reduce visibility of value member in the `NonEmptyMap` syntax
  • Loading branch information
satorg authored Apr 8, 2024
2 parents 70dbf8f + a9b2f73 commit fef949e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/src/main/scala/cats/data/NonEmptyMapImpl.scala
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ object NonEmptyMapImpl extends NonEmptyMapInstances with Newtype2 {

}

sealed class NonEmptyMapOps[K, A](val value: NonEmptyMap[K, A]) {
sealed class NonEmptyMapOps[K, A](private[data] val value: NonEmptyMap[K, A]) {

/**
* Converts this map to a `SortedMap`.
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/scala/cats/data/NonEmptySet.scala
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ object NonEmptySetImpl extends NonEmptySetInstances with Newtype {
}

@suppressUnusedImportWarningForScalaVersionSpecific
sealed class NonEmptySetOps[A](val value: NonEmptySet[A]) {
sealed class NonEmptySetOps[A](private[data] val value: NonEmptySet[A]) {

implicit private val ordering: Ordering[A] = toSortedSet.ordering
implicit private val order: Order[A] = Order.fromOrdering
Expand Down

0 comments on commit fef949e

Please sign in to comment.