-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
fix signature of Query.setOrder() #9253
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
d88fd44 to
7fb781c
Compare
hibernate-core/src/main/java/org/hibernate/internal/util/collections/CollectionHelper.java
Fixed
Show fixed
Hide fixed
| public static void applyToProperties(Properties properties, Object... pairs) { | ||
| assert pairs.length % 2 == 0; | ||
| for ( int i = 0; i < pairs.length; i+=2 ) { | ||
| properties.put( pairs[i], pairs[i+1] ); |
Check failure
Code scanning / CodeQL
Array index out of bounds Error test
| public static void applyToProperties(Properties properties, Object... pairs) { | ||
| assert pairs.length % 2 == 0; | ||
| for ( int i = 0; i < pairs.length; i+=2 ) { | ||
| properties.put( pairs[i], pairs[i+1] ); |
Check failure
Code scanning / CodeQL
Array index out of bounds Error test
| default: | ||
| final Map<String,String> result = new HashMap<>(); | ||
| for ( int i = 0; i < pairs.length; i+=2 ) { | ||
| result.put( pairs[i], pairs[i+1] ); |
Check failure
Code scanning / CodeQL
Array index out of bounds Error test
| default: | ||
| final Map<String,String> result = new HashMap<>(); | ||
| for ( int i = 0; i < pairs.length; i+=2 ) { | ||
| result.put( pairs[i], pairs[i+1] ); |
Check failure
Code scanning / CodeQL
Array index out of bounds Error test
[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.