Skip to content

Commit

Permalink
mark array types deprecated (#347)
Browse files Browse the repository at this point in the history
* mark array types deprected

* mark array types deprecated
  • Loading branch information
tiltwind committed Feb 14, 2023
1 parent 4820c03 commit f13bb4e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion array.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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
}
Expand Down Expand Up @@ -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
}
Expand Down Expand Up @@ -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
}
Expand Down Expand Up @@ -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
}
Expand Down Expand Up @@ -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
}
Expand Down Expand Up @@ -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
}
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit f13bb4e

Please sign in to comment.