Closed Woozyman closed 3 years ago
Hi @Woozyman
Seems that you are using an older java version.
This issue seems related to conversion of Optional.empty()
to Integer.
Could you provide me your Gradle files
in order to replicate it in my developer environment ?
Hi @Woozyman
could you substitute the line
flags = ( hasFlags ) ? Optional.ofNullable( userData.optInt("flags") ) : Optional.empty();
to
if( hasFlags ) {
flags = Optional.ofNullable( userData.optInt("flags") );
}
else {
flags = Optional.empty();
}
and let me know if it works
thanks in advance
Sorry for the delay.
I have replaced the code and that fixed the build problem.
Aparently not having issues with the lines:
55 - return isPresent() ? ref : other;
239 - final Bundle bundle = (userData == null) ? new Bundle() : toBundle(userData.extras);
now on to testing...
Hi @Woozyman thanks for the feedback
I'll arrange the new 4.3.1 release with fix
Thanks for the new update to 4.3.0 but is is still too "new" the if shorthand is aperently an issue for the old versions. So i'm still locked to version 4.1.0