From f13bb4e83a904a0cfb90aabc7c9edf46fc7365dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?tiltwind=28=E6=96=9C=E9=A3=8E=29?= <116183822+tiltwind@users.noreply.github.com> Date: Tue, 14 Feb 2023 09:44:49 +0800 Subject: [PATCH] mark array types deprecated (#347) * mark array types deprected * mark array types deprecated --- array.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/array.go b/array.go index 30593d50..5a9c5709 100644 --- a/array.go +++ b/array.go @@ -33,6 +33,7 @@ func init() { } // BooleanArray Boolean[] +// Deprecated: it will not be supported in next major version, being replaced by a slice type instead. type BooleanArray struct { Values []bool } @@ -60,7 +61,8 @@ func (*BooleanArray) JavaClassName() string { return "[java.lang.Boolean" } -// IntegerArray Integer[] +// IntegerArray Integer[]. +// Deprecated: it will not be supported in next major version, being replaced by a slice type instead. type IntegerArray struct { Values []int32 } @@ -89,6 +91,7 @@ func (*IntegerArray) JavaClassName() string { } // ByteArray Byte[] +// Deprecated: it will not be supported in next major version, being replaced by a slice type instead. type ByteArray struct { Values []uint8 } @@ -117,6 +120,7 @@ func (*ByteArray) JavaClassName() string { } // ShortArray Short[] +// Deprecated: it will not be supported in next major version, being replaced by a slice type instead. type ShortArray struct { Values []int16 } @@ -145,6 +149,7 @@ func (*ShortArray) JavaClassName() string { } // LongArray Long[] +// Deprecated: it will not be supported in next major version, being replaced by a slice type instead. type LongArray struct { Values []int64 } @@ -173,6 +178,7 @@ func (*LongArray) JavaClassName() string { } // FloatArray Float[] +// Deprecated: it will not be supported in next major version, being replaced by a slice type instead. type FloatArray struct { Values []float32 } @@ -201,6 +207,7 @@ func (*FloatArray) JavaClassName() string { } // DoubleArray Double[] +// Deprecated: it will not be supported in next major version, being replaced by a slice type instead. type DoubleArray struct { Values []float64 } @@ -229,6 +236,7 @@ func (*DoubleArray) JavaClassName() string { } // CharacterArray Character[] +// Deprecated: it will not be supported in next major version, being replaced by a slice type instead. type CharacterArray struct { Values string }