Disable JOOQ warnings - jooq

Is there a way to disable warnings made by JOOQ's codegen? It creates lots of logs that I'd like to omit.
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

This message:
w: [...]/Routines.kt: (3070, 13): 'Subltree' is deprecated.
Can be turned off by specifying the <deprecated/> flag:
<configuration>
<generator>
<generate>
<!-- Turn off all deprecation notices -->
<deprecated>false</deprecated>
<!-- Turn off deprecation notices on unknown types -->
<deprecationOnUnknownTypes>false</deprecationOnUnknownTypes>
</generate>
</generator>
</configuration>
Of course, the underlying problem (the fact that jOOQ doesn't know how to bind this data type), won't go away, so you might as well just exclude the routine from being generated with the appropriate <excludes/> expression.
The other message:
w: [...]/Routines.kt: (3082, 1): This annotation is deprecated in Kotlin. Use '#kotlin.Deprecated' instead
Is a bug: https://github.com/jOOQ/jOOQ/issues/11057. But it will also be removed if you specify the above flag.

Related

How to deprecate methods with Thrift?

What is the proper way to deprecate RPC calls when we are using Thrift?
In grpc-java, once we set the
option deprecated = true; The generated code would automatically include the deprecated label in the code generated. (
https://github.com/grpc/grpc-java/commit/0d4051ca6ee0c0240d79f88082831c22c26c4844#diff-cbc2d12e56678ec0074444b2f71fd184ee85877c94208f68f8e9c7728bd2426e )
I want to deprecate entire method calls not just the fields within. What is the standard way to deprecated rpc methods when we are using thrift?
For me, I have tried to deprecate it by added this field
999: optional bool deprecated = true;
I wanted to know the best way to deprecate methods when using Thrift.

Is the "super" keyword deprecated in Groovy?

I am using Groovy in Android and I suddenly saw that the super is deprecated? If it is, then how do you call the parent's method in contrast to the child's method?
The super keyword is not deprecated. It sounds like the method/constructor you are calling on the super class is deprecated.
Check the documentation/source code for the super class you are extending.

Adding async features to ServiceStack OrmLite

I am considering creating an async fork of ServiceStack.OrmLite. I can see that System.Data is referenced in version 2.0.0. I need to add a reference to the 4.0.0 version to get access to the async methods on DbCommand. My strategy would be to go through the code and add async versions of methods by using ExecuteNonQueryAsync, ExecuteReaderAsync and ExecuteScalarAsync instead of their sync counterparts. Because the async methods are defined on DbCommand instead of IDbCommand I would need to cast the IDbCommand to DbCommand.
Are anybody aware of any issues with this approach - is it ok to update reference to 4.0.0 version, any problmes with async in the native drivers for MySql, pgsql, firebird, ormlite?
If not then I will start the work and see how it turs out.

Quartz Display Services replacement for deprecated function CGWaitForScreenRefreshRects

The method CGWaitForScreenRefreshRects is deprecated in Mac OS X v10.8.
The alternative method mentioned in class reference(CGRegisterScreenRefreshCallback) is also deprecated.
What should I use to get the screen updates in 10.8?
Look at CGDisplayStream.h. It is new set of APIs added to 10.8. Their is rare documentation on it though.

deprecated error in LUWIT

The method
CommandListener(ActionListener) from
the type Form is deprecated.
the above error started coming when I imported this.
import com.sun.lwuit.Form;
Form f = new Form("Hello, LWUIT!");
f.show();
f.setCommandListener(this); //error in this line.
Deprecation is a warning not an error and it usually includes an explanation of why it is happening. In this particular case the setCommandListener API was replaced with an add/removeCommandListener API to allow multiple listeners per form.
In the upcoming LWUIT version setCommandListener will no longer exist (just replace it with addCommandListener).

Resources