We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
squid:S1612 (Lambdas should be replaced with method references)
I have something called (value -> (value != null) in my project, But sonarQube recommended to change (Objects::nonNull).
After making above changes application stop working by throwing the java.lang.ClassCastException.
Example:
DataStream configurations = env .addSource(createConfigurations(kafkaProps)) .uid(Constants.KAFKA_SOURCE) .filter(value -> (value != null));
Made the changes to
DataStream configurations = env .addSource(createConfigurations(kafkaProps)) .uid(Constants.KAFKA_SOURCE) .filter(Objects::nonNull));
Exception: java.lang.ClassCastException
The text was updated successfully, but these errors were encountered:
No branches or pull requests
squid:S1612 (Lambdas should be replaced with method references)
I have something called (value -> (value != null) in my project, But sonarQube recommended to change (Objects::nonNull).
After making above changes application stop working by throwing the java.lang.ClassCastException.
Example:
DataStream configurations = env
.addSource(createConfigurations(kafkaProps))
.uid(Constants.KAFKA_SOURCE)
.filter(value -> (value != null));
Made the changes to
DataStream configurations = env
.addSource(createConfigurations(kafkaProps))
.uid(Constants.KAFKA_SOURCE)
.filter(Objects::nonNull));
Exception: java.lang.ClassCastException
The text was updated successfully, but these errors were encountered: