禁用 JOOQ 警告
Disable JOOQ warnings
有没有办法禁用 JOOQ 的代码生成器发出的警告?它创建了许多我想忽略的日志。
w: [...]/Routines.kt: (3070, 13): 'Subltree' is deprecated.
w: [...]/Routines.kt: (3082, 1): This annotation is deprecated in Kotlin. Use '@kotlin.Deprecated' instead
w: [...]/Routines.kt: (3088, 13): 'Subltree' is deprecated.
w: [...]/Routines.kt: (3099, 1): This annotation is deprecated in Kotlin. Use '@kotlin.Deprecated' instead
w: [...]/Routines.kt: (3105, 13): 'Subltree' is deprecated.
w: [...]/Routines.kt: (3210, 1): This annotation is deprecated in Kotlin. Use '@kotlin.Deprecated' instead
w: [...]/Routines.kt: (3215, 13): 'Text2ltree' is deprecated.
w: [...]/Routines.kt: (3225, 1): This annotation is deprecated in Kotlin. Use '@kotlin.Deprecated' instead
w: [...]/Routines.kt: (3229, 13): 'Text2ltree' is deprecated.
w: [...]/Routines.kt: (3238, 1): This annotation is deprecated in Kotlin. Use '@kotlin.Deprecated' instead
w: [...]/Routines.kt: (3242, 13): 'Text2ltree' is deprecated.
w: [...]/LocationsDao.kt: (137, 5): This annotation is deprecated in Kotlin. Use '@kotlin.Deprecated' instead
w: [...]/LocationsDao.kt: (143, 5): This annotation is deprecated in Kotlin. Use '@kotlin.Deprecated' instead
w: [...]/LocationsRecord.kt: (64, 25): No cast needed
这条消息:
w: [...]/Routines.kt: (3070, 13): 'Subltree' is deprecated.
可以通过指定 <deprecated/>
标志来关闭:
<configuration>
<generator>
<generate>
<!-- Turn off all deprecation notices -->
<deprecated>false</deprecated>
<!-- Turn off deprecation notices on unknown types -->
<deprecationOnUnknownTypes>false</deprecationOnUnknownTypes>
</generate>
</generator>
</configuration>
当然,潜在的问题(jOOQ 不知道如何绑定此数据类型的事实)不会消失,因此您最好排除使用适当的 <excludes/>
表达式。
其他留言:
w: [...]/Routines.kt: (3082, 1): This annotation is deprecated in Kotlin. Use '@kotlin.Deprecated' instead
是一个错误:https://github.com/jOOQ/jOOQ/issues/11057。但是如果你指定上面的标志,它也会被删除。
有没有办法禁用 JOOQ 的代码生成器发出的警告?它创建了许多我想忽略的日志。
w: [...]/Routines.kt: (3070, 13): 'Subltree' is deprecated.
w: [...]/Routines.kt: (3082, 1): This annotation is deprecated in Kotlin. Use '@kotlin.Deprecated' instead
w: [...]/Routines.kt: (3088, 13): 'Subltree' is deprecated.
w: [...]/Routines.kt: (3099, 1): This annotation is deprecated in Kotlin. Use '@kotlin.Deprecated' instead
w: [...]/Routines.kt: (3105, 13): 'Subltree' is deprecated.
w: [...]/Routines.kt: (3210, 1): This annotation is deprecated in Kotlin. Use '@kotlin.Deprecated' instead
w: [...]/Routines.kt: (3215, 13): 'Text2ltree' is deprecated.
w: [...]/Routines.kt: (3225, 1): This annotation is deprecated in Kotlin. Use '@kotlin.Deprecated' instead
w: [...]/Routines.kt: (3229, 13): 'Text2ltree' is deprecated.
w: [...]/Routines.kt: (3238, 1): This annotation is deprecated in Kotlin. Use '@kotlin.Deprecated' instead
w: [...]/Routines.kt: (3242, 13): 'Text2ltree' is deprecated.
w: [...]/LocationsDao.kt: (137, 5): This annotation is deprecated in Kotlin. Use '@kotlin.Deprecated' instead
w: [...]/LocationsDao.kt: (143, 5): This annotation is deprecated in Kotlin. Use '@kotlin.Deprecated' instead
w: [...]/LocationsRecord.kt: (64, 25): No cast needed
这条消息:
w: [...]/Routines.kt: (3070, 13): 'Subltree' is deprecated.
可以通过指定 <deprecated/>
标志来关闭:
<configuration>
<generator>
<generate>
<!-- Turn off all deprecation notices -->
<deprecated>false</deprecated>
<!-- Turn off deprecation notices on unknown types -->
<deprecationOnUnknownTypes>false</deprecationOnUnknownTypes>
</generate>
</generator>
</configuration>
当然,潜在的问题(jOOQ 不知道如何绑定此数据类型的事实)不会消失,因此您最好排除使用适当的 <excludes/>
表达式。
其他留言:
w: [...]/Routines.kt: (3082, 1): This annotation is deprecated in Kotlin. Use '@kotlin.Deprecated' instead
是一个错误:https://github.com/jOOQ/jOOQ/issues/11057。但是如果你指定上面的标志,它也会被删除。