Skip to content

Commit fef949e

Browse files
authored
Merge pull request #4559 from TonioGela/useless-public-member
Reduce visibility of value member in the `NonEmptyMap` syntax
2 parents 70dbf8f + a9b2f73 commit fef949e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

core/src/main/scala/cats/data/NonEmptyMapImpl.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ object NonEmptyMapImpl extends NonEmptyMapInstances with Newtype2 {
7070

7171
}
7272

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

7575
/**
7676
* Converts this map to a `SortedMap`.

core/src/main/scala/cats/data/NonEmptySet.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ object NonEmptySetImpl extends NonEmptySetInstances with Newtype {
6262
}
6363

6464
@suppressUnusedImportWarningForScalaVersionSpecific
65-
sealed class NonEmptySetOps[A](val value: NonEmptySet[A]) {
65+
sealed class NonEmptySetOps[A](private[data] val value: NonEmptySet[A]) {
6666

6767
implicit private val ordering: Ordering[A] = toSortedSet.ordering
6868
implicit private val order: Order[A] = Order.fromOrdering

0 commit comments

Comments
 (0)