Skip to content

Conversation

beikov
Copy link
Member

@beikov beikov commented Jul 30, 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-19632
https://hibernate.atlassian.net/browse/HHH-16283

return processSql( sql, -1, null, limit );
}

private String processSql(String sql, int jdbcParameterCount, @Nullable ParameterMarkerStrategy parameterMarkerStrategy, @Nullable Limit limit) {

Check notice

Code scanning / CodeQL

Useless parameter Note

The parameter 'jdbcParameterCount' is never used.
}
else if ( needsMarker ) {
final int start = sourcePosition + offset;
final int end = start + 1;

Check warning

Code scanning / CodeQL

Dereferenced variable may be null Warning

Variable
sql
may be null at this access because of
this
assignment.
else if ( needsMarker ) {
final int sourcePosition = occurrence.sourcePosition();
final int start = sourcePosition + offset;
final int end = start + 1;

Check warning

Code scanning / CodeQL

Dereferenced variable may be null Warning

Variable
sql
may be null at this access because of
this
assignment.
@sebersole sebersole merged commit 97be9ba into hibernate:main Jul 30, 2025
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants