Skip to content

Conversation

beikov
Copy link
Member

@beikov beikov commented Aug 27, 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-19739

*/
default @Nullable ReflectionOptimizer getReflectionOptimizer(Class<?> clazz, PropertyInfo[] propertyInfos) {
final Map<String, PropertyAccess> map = new HashMap<>();
for ( int i = 0; i < propertyInfos.length; i++ ) {

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation Note

Invoking
BytecodeProvider.getReflectionOptimizer
should be avoided because it has been deprecated.
private CarOptionalPK id;

private String name;

Check warning

Code scanning / CodeQL

Serializable inner class of non-serializable class Warning test

Serializable inner class of non-serializable class
MultipleInheritanceTest
. Consider making the class static or implementing readObject() and writeObject().
Serializable inner class of non-serializable class CarOptional. Consider making the class static or implementing readObject() and writeObject().
private String name;

@Embeddable
public class CarOptionalPK implements Serializable {

Check notice

Code scanning / CodeQL

Inner class could be static Note test

CarOptionalPK should be made static, since the enclosing instance is not used.
@OneToOne
@NotFound(action = NotFoundAction.IGNORE)
@JoinColumn(name = "CAR_ID_1", referencedColumnName = "CAR_ID_1", insertable = false, updatable = false)
CarPart parts ;

Check warning

Code scanning / CodeQL

Field masks field in super class Warning test

This field shadows another field called
parts
in a superclass.
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.

1 participant