-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
lots more use of 'var' #10774
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
lots more use of 'var' #10774
Conversation
: persister.getElementType(); | ||
final Type whereType = | ||
persister.hasIndex() | ||
? persister.getIndexType() |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note
CollectionPersister.getIndexType
final Type whereType = | ||
persister.hasIndex() | ||
? persister.getIndexType() | ||
: persister.getElementType(); |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note
CollectionPersister.getElementType
} | ||
|
||
final CollectionType collectionType = collectionPersister.getCollectionType(); | ||
final var collectionType = collectionPersister.getCollectionType(); |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note
CollectionPersister.getCollectionType
return null; | ||
} | ||
return collection != null && Hibernate.isInitialized( collection ) | ||
? collectionPersister.getCollectionType().indexOf( collection, childEntity ) |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note
CollectionPersister.getCollectionType
final PreInsertEvent event = new PreInsertEvent( entity, id, state, persister, null ); | ||
for ( PreInsertEventListener listener : eventListenerGroups.eventListenerGroup_PRE_INSERT.listeners() ) { | ||
final var event = new PreInsertEvent( entity, id, state, persister, null ); | ||
for ( var listener : eventListenerGroups.eventListenerGroup_PRE_INSERT.listeners() ) { |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note
EventListenerGroup.listeners
final PreUpdateEvent event = new PreUpdateEvent( entity, id, state, null, persister, null ); | ||
for ( PreUpdateEventListener listener : eventListenerGroups.eventListenerGroup_PRE_UPDATE.listeners() ) { | ||
final var event = new PreUpdateEvent( entity, id, state, null, persister, null ); | ||
for ( var listener : eventListenerGroups.eventListenerGroup_PRE_UPDATE.listeners() ) { |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note
EventListenerGroup.listeners
final PreUpsertEvent event = new PreUpsertEvent( entity, id, state, persister, null ); | ||
for ( PreUpsertEventListener listener : eventListenerGroups.eventListenerGroup_PRE_UPSERT.listeners() ) { | ||
final var event = new PreUpsertEvent( entity, id, state, persister, null ); | ||
for ( var listener : eventListenerGroups.eventListenerGroup_PRE_UPSERT.listeners() ) { |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note
EventListenerGroup.listeners
final PreDeleteEvent event = new PreDeleteEvent( entity, id, null, persister, null ); | ||
for ( PreDeleteEventListener listener : eventListenerGroups.eventListenerGroup_PRE_DELETE.listeners() ) { | ||
final var event = new PreDeleteEvent( entity, id, null, persister, null ); | ||
for ( var listener : eventListenerGroups.eventListenerGroup_PRE_DELETE.listeners() ) { |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note
EventListenerGroup.listeners
and refactor away a dupe method
[Please describe here what your change is about]
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.