From 7ab0889d7ab4480d0d90346432006ffd345b4916 Mon Sep 17 00:00:00 2001 From: Jakob Odersky Date: Wed, 14 Feb 2018 15:00:52 -0800 Subject: Remove need for special case for enums --- src/main/scala/annotations.scala | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/main/scala/annotations.scala') 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 -- cgit v1.2.3