Skip to content

Commit

Permalink
Add back SuppressWarnings for org.wartremover.warts.Equals
Browse files Browse the repository at this point in the history
  • Loading branch information
JonMcPherson committed Apr 19, 2024
1 parent 0ce2d09 commit d1c3cb8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/main/scala/com/iterable/scalasoup/Attribute.scala
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ final class Attribute(

override def toString: String = underlying.toString

@SuppressWarnings(Array("org.wartremover.warts.Equals"))
override def equals(other: Any): Boolean = other match {
case otherAttr: Attribute => underlying.equals(otherAttr.underlying)
case _ => false
Expand Down Expand Up @@ -75,6 +76,7 @@ final class Attributes(

override def toString: String = underlying.toString

@SuppressWarnings(Array("org.wartremover.warts.Equals"))
override def equals(other: Any): Boolean = other match {
case otherAttrs: Attributes => underlying.equals(otherAttrs.underlying)
case _ => false
Expand Down
1 change: 1 addition & 0 deletions core/src/main/scala/com/iterable/scalasoup/Node.scala
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ sealed abstract class Node[A <: ParentState] private[scalasoup](private[scalasou

override def toString: String = underlying.toString

@SuppressWarnings(Array("org.wartremover.warts.Equals"))
override def equals(other: Any): Boolean = other match {
case otherNode: Node[_] => underlying.equals(otherNode.underlying)
case _ => false
Expand Down

0 comments on commit d1c3cb8

Please sign in to comment.