diff options
author | Jens Geyer <jensg@apache.org> | 2023-05-11 23:27:53 +0200 |
---|---|---|
committer | Jens Geyer <jensg@apache.org> | 2023-05-11 23:29:07 +0200 |
commit | b5a8a883a1c5227967093c45a6bc8e36932f2711 (patch) | |
tree | 0bffe704c2d8c8617574f112fcf23e151c95a00e /lib/haxe/src/org/apache | |
parent | 3880a09565a9a1dad028b3679746eafac268c819 (diff) | |
download | thrift-b5a8a883a1c5227967093c45a6bc8e36932f2711.tar.gz |
THRIFT-5707 deprecation warning fixes for extern and enum
Client: hx
Patch: Jens Geyer
Diffstat (limited to 'lib/haxe/src/org/apache')
4 files changed, 8 insertions, 12 deletions
diff --git a/lib/haxe/src/org/apache/thrift/TFieldRequirementType.hx b/lib/haxe/src/org/apache/thrift/TFieldRequirementType.hx index 039a2cf3a..710c03678 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 a3a7aac27..625b71264 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 @@ package org.apache.thrift.protocol; /** * 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 706d3298b..a1ff52a49 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 8e21ed7c0..731a4ca9c 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; |