aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/annotations.scala
diff options
context:
space:
mode:
authorJakob Odersky <jakob@odersky.com>2018-02-14 15:00:52 -0800
committerJakob Odersky <jakob@odersky.com>2018-02-14 15:00:52 -0800
commit7ab0889d7ab4480d0d90346432006ffd345b4916 (patch)
treefccce4902dfc4241a651dfac32e4ef77288de3c9 /src/main/scala/annotations.scala
parent5a37bfee89a2b5ae17c7980327a92c381c006cf7 (diff)
downloadspray-json-derivation-7ab0889d7ab4480d0d90346432006ffd345b4916.tar.gz
spray-json-derivation-7ab0889d7ab4480d0d90346432006ffd345b4916.tar.bz2
spray-json-derivation-7ab0889d7ab4480d0d90346432006ffd345b4916.zip
Remove need for special case for enums
Diffstat (limited to 'src/main/scala/annotations.scala')
-rw-r--r--src/main/scala/annotations.scala9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/main/scala/annotations.scala b/src/main/scala/annotations.scala
index f23fbcb..ee179ff 100644
--- a/src/main/scala/annotations.scala
+++ b/src/main/scala/annotations.scala
@@ -2,9 +2,6 @@ package xyz.driver.json
import scala.annotation.StaticAnnotation
-/** Indicator trait of anontations related to JSON formatting. */
-sealed trait JsonAnnotation
-
/** An annotation that designates that a sealed trait is a generalized algebraic
* datatype (GADT), and that a type field containing the serialized childrens'
* types should be added to the final JSON objects.
@@ -25,9 +22,3 @@ sealed trait JsonAnnotation
* object */
final class gadt(val typeFieldName: String = "type")
extends StaticAnnotation
- with JsonAnnotation
-
-/** An annotation that designates that a sealed trait is an enumeration (all
- * children are strictly case objects), and that all children should be
- * serialized as strings. */
-final class enum extends StaticAnnotation with JsonAnnotation