fixed errors reported by Error Prone in commit 6c8f813e53
Some checks failed
CI / build (11) (push) Has been cancelled
CI / build-on (17, ) (push) Has been cancelled
CI / build-on (21, ) (push) Has been cancelled
CI / build-on (23, ) (push) Has been cancelled
CI / build-on (8, ) (push) Has been cancelled
CI / snapshot (push) Has been cancelled
CI / release (push) Has been cancelled

This commit is contained in:
Karl Tauber
2025-02-16 19:59:36 +01:00
parent f24b3a6022
commit 411a2f6d29

View File

@@ -54,7 +54,7 @@ public class FlatClassLoaderTest
}, FlatClassLoaderTest.class.getClassLoader() );
Class<?> lafClass = cl.loadClass( "com.formdev.flatlaf.FlatDarkLaf" );
LookAndFeel laf = (LookAndFeel) lafClass.newInstance();
LookAndFeel laf = (LookAndFeel) lafClass.getDeclaredConstructor().newInstance();
UIManager.setLookAndFeel( laf );
JFrame frame = new JFrame( "FlatClassloaderTest" );