-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
lots of use of var in boot.model.internal #10810
New issue
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
Conversation
Thanks for your pull request! This pull request does not follow the contribution rules. Could you have a look? ❌ All commit messages should start with a JIRA issue key matching pattern › This message was automatically generated. |
hibernate-core/src/main/java/org/hibernate/boot/model/internal/EntityBinder.java
Fixed
Show fixed
Hide fixed
return !Objects.equals( type, Generator.class ) ? type.getName() : generatorConfig.strategy(); | ||
final var generatorClass = generatorConfig.type(); | ||
return Generator.class.equals( generatorClass ) | ||
? generatorConfig.strategy() |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note
GenericGenerator.strategy
e4439ee
to
ff7cc0c
Compare
final int joinColumnCount = | ||
primaryKeyJoinColumns != null | ||
? primaryKeyJoinColumns.length | ||
: joinColumns.length; |
Check warning
Code scanning / CodeQL
Dereferenced variable may be null Warning
joinColumns
this
cc8121e
to
607da81
Compare
607da81
to
7141ee9
Compare
6cf35e9
to
ed16b8a
Compare
I might have gone a little too far on some of this, but it's a learning process.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license
and can be relicensed under the terms of the LGPL v2.1 license in the future at the maintainers' discretion.
For more information on licensing, please check here.