Skip to content

Commit 0297dcf

Browse files
committed
Sonar
1 parent ceaca30 commit 0297dcf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

core/src/main/java/ai/timefold/solver/core/impl/domain/common/accessor/gizmo/GizmoClassLoader.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@ public String getName() {
4646

4747
@Override
4848
public Class<?> findClass(String name) throws ClassNotFoundException {
49-
byte[] byteCode = getBytecodeFor(name);
49+
var byteCode = getBytecodeFor(name);
5050
if (byteCode == null) { // Not a Gizmo generated class; load from context class loader.
5151
return Thread.currentThread().getContextClassLoader().loadClass(name);
5252
} else { // Gizmo generated class.
5353
return defineClass(name, byteCode, 0, byteCode.length);
5454
}
5555
}
5656

57-
public synchronized byte[] getBytecodeFor(String className) {
57+
public synchronized byte @Nullable [] getBytecodeFor(String className) {
5858
return classNameToBytecodeMap.get(className);
5959
}
6060

0 commit comments

Comments
 (0)