Remove @ExperimentalUnsignedTypes annotation from kotlin code generator. (#7092)

This commit is contained in:
Aaron Riekenberg
2022-02-13 22:29:36 -06:00
committed by GitHub
parent a94132a45f
commit 15df50eb7f
28 changed files with 0 additions and 29 deletions

View File

@@ -259,7 +259,6 @@ class KotlinGenerator : public BaseGenerator {
GenerateComment(enum_def.doc_comment, writer, &comment_config); GenerateComment(enum_def.doc_comment, writer, &comment_config);
writer += "@Suppress(\"unused\")"; writer += "@Suppress(\"unused\")";
writer += "@ExperimentalUnsignedTypes";
writer += "class " + Esc(enum_def.name) + " private constructor() {"; writer += "class " + Esc(enum_def.name) + " private constructor() {";
writer.IncrementIdentLevel(); writer.IncrementIdentLevel();
@@ -461,7 +460,6 @@ class KotlinGenerator : public BaseGenerator {
writer.SetValue("superclass", fixed ? "Struct" : "Table"); writer.SetValue("superclass", fixed ? "Struct" : "Table");
writer += "@Suppress(\"unused\")"; writer += "@Suppress(\"unused\")";
writer += "@ExperimentalUnsignedTypes";
writer += "class {{struct_name}} : {{superclass}}() {\n"; writer += "class {{struct_name}} : {{superclass}}() {\n";
writer.IncrementIdentLevel(); writer.IncrementIdentLevel();

View File

@@ -7,7 +7,6 @@ import kotlin.math.sign
import com.google.flatbuffers.* import com.google.flatbuffers.*
@Suppress("unused") @Suppress("unused")
@ExperimentalUnsignedTypes
class Ability : Struct() { class Ability : Struct() {
fun __init(_i: Int, _bb: ByteBuffer) { fun __init(_i: Int, _bb: ByteBuffer) {

View File

@@ -3,7 +3,6 @@
package MyGame.Example package MyGame.Example
@Suppress("unused") @Suppress("unused")
@ExperimentalUnsignedTypes
class Any_ private constructor() { class Any_ private constructor() {
companion object { companion object {
const val NONE: UByte = 0u const val NONE: UByte = 0u

View File

@@ -3,7 +3,6 @@
package MyGame.Example package MyGame.Example
@Suppress("unused") @Suppress("unused")
@ExperimentalUnsignedTypes
class AnyAmbiguousAliases private constructor() { class AnyAmbiguousAliases private constructor() {
companion object { companion object {
const val NONE: UByte = 0u const val NONE: UByte = 0u

View File

@@ -3,7 +3,6 @@
package MyGame.Example package MyGame.Example
@Suppress("unused") @Suppress("unused")
@ExperimentalUnsignedTypes
class AnyUniqueAliases private constructor() { class AnyUniqueAliases private constructor() {
companion object { companion object {
const val NONE: UByte = 0u const val NONE: UByte = 0u

View File

@@ -6,7 +6,6 @@ package MyGame.Example
* Composite components of Monster color. * Composite components of Monster color.
*/ */
@Suppress("unused") @Suppress("unused")
@ExperimentalUnsignedTypes
class Color private constructor() { class Color private constructor() {
companion object { companion object {
const val Red: UByte = 1u const val Red: UByte = 1u

View File

@@ -10,7 +10,6 @@ import com.google.flatbuffers.*
* an example documentation comment: "monster object" * an example documentation comment: "monster object"
*/ */
@Suppress("unused") @Suppress("unused")
@ExperimentalUnsignedTypes
class Monster : Table() { class Monster : Table() {
fun __init(_i: Int, _bb: ByteBuffer) { fun __init(_i: Int, _bb: ByteBuffer) {

View File

@@ -3,7 +3,6 @@
package MyGame.Example package MyGame.Example
@Suppress("unused") @Suppress("unused")
@ExperimentalUnsignedTypes
class Race private constructor() { class Race private constructor() {
companion object { companion object {
const val None: Byte = -1 const val None: Byte = -1

View File

@@ -7,7 +7,6 @@ import kotlin.math.sign
import com.google.flatbuffers.* import com.google.flatbuffers.*
@Suppress("unused") @Suppress("unused")
@ExperimentalUnsignedTypes
class Referrable : Table() { class Referrable : Table() {
fun __init(_i: Int, _bb: ByteBuffer) { fun __init(_i: Int, _bb: ByteBuffer) {

View File

@@ -7,7 +7,6 @@ import kotlin.math.sign
import com.google.flatbuffers.* import com.google.flatbuffers.*
@Suppress("unused") @Suppress("unused")
@ExperimentalUnsignedTypes
class Stat : Table() { class Stat : Table() {
fun __init(_i: Int, _bb: ByteBuffer) { fun __init(_i: Int, _bb: ByteBuffer) {

View File

@@ -7,7 +7,6 @@ import kotlin.math.sign
import com.google.flatbuffers.* import com.google.flatbuffers.*
@Suppress("unused") @Suppress("unused")
@ExperimentalUnsignedTypes
class StructOfStructs : Struct() { class StructOfStructs : Struct() {
fun __init(_i: Int, _bb: ByteBuffer) { fun __init(_i: Int, _bb: ByteBuffer) {

View File

@@ -7,7 +7,6 @@ import kotlin.math.sign
import com.google.flatbuffers.* import com.google.flatbuffers.*
@Suppress("unused") @Suppress("unused")
@ExperimentalUnsignedTypes
class Test : Struct() { class Test : Struct() {
fun __init(_i: Int, _bb: ByteBuffer) { fun __init(_i: Int, _bb: ByteBuffer) {

View File

@@ -7,7 +7,6 @@ import kotlin.math.sign
import com.google.flatbuffers.* import com.google.flatbuffers.*
@Suppress("unused") @Suppress("unused")
@ExperimentalUnsignedTypes
class TestSimpleTableWithEnum : Table() { class TestSimpleTableWithEnum : Table() {
fun __init(_i: Int, _bb: ByteBuffer) { fun __init(_i: Int, _bb: ByteBuffer) {

View File

@@ -7,7 +7,6 @@ import kotlin.math.sign
import com.google.flatbuffers.* import com.google.flatbuffers.*
@Suppress("unused") @Suppress("unused")
@ExperimentalUnsignedTypes
class TypeAliases : Table() { class TypeAliases : Table() {
fun __init(_i: Int, _bb: ByteBuffer) { fun __init(_i: Int, _bb: ByteBuffer) {

View File

@@ -7,7 +7,6 @@ import kotlin.math.sign
import com.google.flatbuffers.* import com.google.flatbuffers.*
@Suppress("unused") @Suppress("unused")
@ExperimentalUnsignedTypes
class Vec3 : Struct() { class Vec3 : Struct() {
fun __init(_i: Int, _bb: ByteBuffer) { fun __init(_i: Int, _bb: ByteBuffer) {

View File

@@ -7,7 +7,6 @@ import kotlin.math.sign
import com.google.flatbuffers.* import com.google.flatbuffers.*
@Suppress("unused") @Suppress("unused")
@ExperimentalUnsignedTypes
class Monster : Table() { class Monster : Table() {
fun __init(_i: Int, _bb: ByteBuffer) { fun __init(_i: Int, _bb: ByteBuffer) {

View File

@@ -7,7 +7,6 @@ import kotlin.math.sign
import com.google.flatbuffers.* import com.google.flatbuffers.*
@Suppress("unused") @Suppress("unused")
@ExperimentalUnsignedTypes
class InParentNamespace : Table() { class InParentNamespace : Table() {
fun __init(_i: Int, _bb: ByteBuffer) { fun __init(_i: Int, _bb: ByteBuffer) {

View File

@@ -7,7 +7,6 @@ import kotlin.math.sign
import com.google.flatbuffers.* import com.google.flatbuffers.*
@Suppress("unused") @Suppress("unused")
@ExperimentalUnsignedTypes
class MonsterExtra : Table() { class MonsterExtra : Table() {
fun __init(_i: Int, _bb: ByteBuffer) { fun __init(_i: Int, _bb: ByteBuffer) {

View File

@@ -3,7 +3,6 @@
package optional_scalars package optional_scalars
@Suppress("unused") @Suppress("unused")
@ExperimentalUnsignedTypes
class OptionalByte private constructor() { class OptionalByte private constructor() {
companion object { companion object {
const val None: Byte = 0 const val None: Byte = 0

View File

@@ -7,7 +7,6 @@ import kotlin.math.sign
import com.google.flatbuffers.* import com.google.flatbuffers.*
@Suppress("unused") @Suppress("unused")
@ExperimentalUnsignedTypes
class ScalarStuff : Table() { class ScalarStuff : Table() {
fun __init(_i: Int, _bb: ByteBuffer) { fun __init(_i: Int, _bb: ByteBuffer) {

View File

@@ -5,7 +5,6 @@ import kotlin.math.sign
import com.google.flatbuffers.* import com.google.flatbuffers.*
@Suppress("unused") @Suppress("unused")
@ExperimentalUnsignedTypes
class Attacker : Table() { class Attacker : Table() {
fun __init(_i: Int, _bb: ByteBuffer) { fun __init(_i: Int, _bb: ByteBuffer) {

View File

@@ -5,7 +5,6 @@ import kotlin.math.sign
import com.google.flatbuffers.* import com.google.flatbuffers.*
@Suppress("unused") @Suppress("unused")
@ExperimentalUnsignedTypes
class BookReader : Struct() { class BookReader : Struct() {
fun __init(_i: Int, _bb: ByteBuffer) { fun __init(_i: Int, _bb: ByteBuffer) {

View File

@@ -1,7 +1,6 @@
// automatically generated by the FlatBuffers compiler, do not modify // automatically generated by the FlatBuffers compiler, do not modify
@Suppress("unused") @Suppress("unused")
@ExperimentalUnsignedTypes
class Character_ private constructor() { class Character_ private constructor() {
companion object { companion object {
const val NONE: UByte = 0u const val NONE: UByte = 0u

View File

@@ -5,7 +5,6 @@ import kotlin.math.sign
import com.google.flatbuffers.* import com.google.flatbuffers.*
@Suppress("unused") @Suppress("unused")
@ExperimentalUnsignedTypes
class FallingTub : Struct() { class FallingTub : Struct() {
fun __init(_i: Int, _bb: ByteBuffer) { fun __init(_i: Int, _bb: ByteBuffer) {

View File

@@ -1,7 +1,6 @@
// automatically generated by the FlatBuffers compiler, do not modify // automatically generated by the FlatBuffers compiler, do not modify
@Suppress("unused") @Suppress("unused")
@ExperimentalUnsignedTypes
class Gadget private constructor() { class Gadget private constructor() {
companion object { companion object {
const val NONE: UByte = 0u const val NONE: UByte = 0u

View File

@@ -5,7 +5,6 @@ import kotlin.math.sign
import com.google.flatbuffers.* import com.google.flatbuffers.*
@Suppress("unused") @Suppress("unused")
@ExperimentalUnsignedTypes
class HandFan : Table() { class HandFan : Table() {
fun __init(_i: Int, _bb: ByteBuffer) { fun __init(_i: Int, _bb: ByteBuffer) {

View File

@@ -5,7 +5,6 @@ import kotlin.math.sign
import com.google.flatbuffers.* import com.google.flatbuffers.*
@Suppress("unused") @Suppress("unused")
@ExperimentalUnsignedTypes
class Movie : Table() { class Movie : Table() {
fun __init(_i: Int, _bb: ByteBuffer) { fun __init(_i: Int, _bb: ByteBuffer) {

View File

@@ -5,7 +5,6 @@ import kotlin.math.sign
import com.google.flatbuffers.* import com.google.flatbuffers.*
@Suppress("unused") @Suppress("unused")
@ExperimentalUnsignedTypes
class Rapunzel : Struct() { class Rapunzel : Struct() {
fun __init(_i: Int, _bb: ByteBuffer) { fun __init(_i: Int, _bb: ByteBuffer) {