diff options
Diffstat (limited to 'sources/scala/runtime/types/TypeChar.java')
-rw-r--r-- | sources/scala/runtime/types/TypeChar.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sources/scala/runtime/types/TypeChar.java b/sources/scala/runtime/types/TypeChar.java index 2f26ffb866..970451bfcd 100644 --- a/sources/scala/runtime/types/TypeChar.java +++ b/sources/scala/runtime/types/TypeChar.java @@ -1,6 +1,6 @@ /* __ *\ ** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2003, LAMP/EPFL ** +** / __/ __// _ | / / / _ | (c) 2003-2005, LAMP/EPFL ** ** __\ \/ /__/ __ |/ /__/ __ | ** ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** @@ -29,4 +29,9 @@ public class TypeChar extends ValueType { } public String toString() { return "scala.Char"; } public int hashCode() { return 0x66666666; } -}; + + // Make TypeChar a serializable singleton + public static TypeChar INSTANCE = new TypeChar(); + protected TypeChar() { /* exists only to that instantiation */ } + private Object readResolve() { return INSTANCE; } +} |