THRIFT-5707 deprecation warning fixes for extern and enum
Client: hx
Patch: Jens Geyer
diff --git a/lib/haxe/src/org/apache/thrift/TFieldRequirementType.hx b/lib/haxe/src/org/apache/thrift/TFieldRequirementType.hx
index 039a2cf..710c036 100644
--- a/lib/haxe/src/org/apache/thrift/TFieldRequirementType.hx
+++ b/lib/haxe/src/org/apache/thrift/TFieldRequirementType.hx
@@ -19,12 +19,11 @@
 
 package org.apache.thrift;
 
-  /**
-   * Requirement type constants.
-   *
-   */
-@:enum
-abstract TFieldRequirementType(Int)  from Int to Int  {
+/**
+* Requirement type constants.
+*
+*/
+enum abstract TFieldRequirementType(Int)  from Int to Int  {
     public static inline var REQUIRED : Int = 1;
     public static inline var OPTIONAL : Int = 2;
     public static inline var DEFAULT  : Int = 3;
diff --git a/lib/haxe/src/org/apache/thrift/protocol/TCompactTypes.hx b/lib/haxe/src/org/apache/thrift/protocol/TCompactTypes.hx
index a3a7aac..625b712 100644
--- a/lib/haxe/src/org/apache/thrift/protocol/TCompactTypes.hx
+++ b/lib/haxe/src/org/apache/thrift/protocol/TCompactTypes.hx
@@ -22,8 +22,7 @@
 /**
  * All of the on-wire type codes.
  */
-@:enum
-abstract TCompactTypes(Int)  from Int to Int  {
+enum abstract TCompactTypes(Int)  from Int to Int  {
     public static inline var STOP          = 0x00;
     public static inline var BOOLEAN_TRUE  = 0x01;
     public static inline var BOOLEAN_FALSE = 0x02;
diff --git a/lib/haxe/src/org/apache/thrift/protocol/TMessageType.hx b/lib/haxe/src/org/apache/thrift/protocol/TMessageType.hx
index 706d329..a1ff52a 100644
--- a/lib/haxe/src/org/apache/thrift/protocol/TMessageType.hx
+++ b/lib/haxe/src/org/apache/thrift/protocol/TMessageType.hx
@@ -19,8 +19,7 @@
 
 package org.apache.thrift.protocol;
 
-@:enum
-abstract TMessageType(Int)  from Int to Int  {
+enum abstract TMessageType(Int)  from Int to Int  {
     public static inline var CALL      : Int = 1;
     public static inline var REPLY     : Int = 2;
     public static inline var EXCEPTION : Int = 3;
diff --git a/lib/haxe/src/org/apache/thrift/protocol/TType.hx b/lib/haxe/src/org/apache/thrift/protocol/TType.hx
index 8e21ed7..731a4ca 100644
--- a/lib/haxe/src/org/apache/thrift/protocol/TType.hx
+++ b/lib/haxe/src/org/apache/thrift/protocol/TType.hx
@@ -19,8 +19,7 @@
 
 package org.apache.thrift.protocol;
 
-@:enum
-abstract TType(Int)  from Int to Int  {
+enum abstract TType(Int)  from Int to Int  {
     public static inline var STOP : Int   = 0;
     public static inline var VOID_ : Int  = 1;  // VOID produces collisions with cpp targets in some cases
     public static inline var BOOL : Int   = 2;