From b5a8a883a1c5227967093c45a6bc8e36932f2711 Mon Sep 17 00:00:00 2001 From: Jens Geyer Date: Thu, 11 May 2023 23:27:53 +0200 Subject: THRIFT-5707 deprecation warning fixes for extern and enum Client: hx Patch: Jens Geyer --- lib/haxe/src/org/apache/thrift/TFieldRequirementType.hx | 11 +++++------ lib/haxe/src/org/apache/thrift/protocol/TCompactTypes.hx | 3 +-- lib/haxe/src/org/apache/thrift/protocol/TMessageType.hx | 3 +-- lib/haxe/src/org/apache/thrift/protocol/TType.hx | 3 +-- 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; -- cgit v1.2.1