Skip to content
This repository was archived by the owner on Aug 17, 2019. It is now read-only.

Commit af92c91

Browse files
committed
Override toString(), equals() for EmptyHint
1 parent c09f3bd commit af92c91

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/scala/com/ckkloverdos/convert/package.scala

+4-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ package com.ckkloverdos
1818

1919

2020
package object convert {
21-
final val EmptyHint: AnyRef = new java.lang.Object
21+
final val EmptyHint: AnyRef = new java.lang.Object {
22+
override def equals(obj: Any) = obj.asInstanceOf[AnyRef] eq this
23+
override def toString = "EmptyHint"
24+
}
2225

2326
type Type[A] = Manifest[A]
2427

0 commit comments

Comments
 (0)