Skip to content

Conversation

@beikov
Copy link
Member

@beikov beikov commented Nov 20, 2025

[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.


https://hibernate.atlassian.net/browse/HHH-16991

session -> {
for (long i = 1L; i < 11; i++) {
Parent parent = new Parent( new Parent.ParentId( "parent-" + i ) );
Child child1 = new Child( i * 100L + 1L, parent );

Check notice

Code scanning / CodeQL

Unread local variable Note test

Variable 'Child child1' is never read.
for (long i = 1L; i < 11; i++) {
Parent parent = new Parent( new Parent.ParentId( "parent-" + i ) );
Child child1 = new Child( i * 100L + 1L, parent );
Child child2 = new Child( i * 100L + 2L, parent );

Check notice

Code scanning / CodeQL

Unread local variable Note test

Variable 'Child child2' is never read.
Parent parent = new Parent( new Parent.ParentId( "parent-" + i ) );
Child child1 = new Child( i * 100L + 1L, parent );
Child child2 = new Child( i * 100L + 2L, parent );
Child child3 = new Child( i * 100L + 3L, parent );

Check notice

Code scanning / CodeQL

Unread local variable Note test

Variable 'Child child3' is never read.
Child child1 = new Child( i * 100L + 1L, parent );
Child child2 = new Child( i * 100L + 2L, parent );
Child child3 = new Child( i * 100L + 3L, parent );
Child child4 = new Child( i * 100L + 4L, parent );

Check notice

Code scanning / CodeQL

Unread local variable Note test

Variable 'Child child4' is never read.
Child child2 = new Child( i * 100L + 2L, parent );
Child child3 = new Child( i * 100L + 3L, parent );
Child child4 = new Child( i * 100L + 4L, parent );
Child child5 = new Child( i * 100L + 5L, parent );

Check notice

Code scanning / CodeQL

Unread local variable Note test

Variable 'Child child5' is never read.
Child child4 = new Child( i * 100L + 4L, parent );
Child child5 = new Child( i * 100L + 5L, parent );
Child child6 = new Child( i * 100L + 6L, parent );
Child child7 = new Child( i * 100L + 7L, parent );

Check notice

Code scanning / CodeQL

Unread local variable Note test

Variable 'Child child7' is never read.
Child child5 = new Child( i * 100L + 5L, parent );
Child child6 = new Child( i * 100L + 6L, parent );
Child child7 = new Child( i * 100L + 7L, parent );
Child child8 = new Child( i * 100L + 8L, parent );

Check notice

Code scanning / CodeQL

Unread local variable Note test

Variable 'Child child8' is never read.
Child child6 = new Child( i * 100L + 6L, parent );
Child child7 = new Child( i * 100L + 7L, parent );
Child child8 = new Child( i * 100L + 8L, parent );
Child child9 = new Child( i * 100L + 9L, parent );

Check notice

Code scanning / CodeQL

Unread local variable Note test

Variable 'Child child9' is never read.
Child child7 = new Child( i * 100L + 7L, parent );
Child child8 = new Child( i * 100L + 8L, parent );
Child child9 = new Child( i * 100L + 9L, parent );
Child child10 = new Child( i * 100L + 10L, parent );

Check notice

Code scanning / CodeQL

Unread local variable Note test

Variable 'Child child10' is never read.
Child child8 = new Child( i * 100L + 8L, parent );
Child child9 = new Child( i * 100L + 9L, parent );
Child child10 = new Child( i * 100L + 10L, parent );
Child child11 = new Child( i * 100L + 11L, parent );

Check notice

Code scanning / CodeQL

Unread local variable Note test

Variable 'Child child11' is never read.
@beikov beikov merged commit 8abad90 into hibernate:7.1 Nov 21, 2025
20 of 24 checks passed
@beikov beikov deleted the HHH-16991-7.1 branch November 21, 2025 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant