mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-14 07:47:12 -06:00
FlatTestFrame: avoid initializing LaF classes in isClassAvailable() because this invokes static class initialization, which logs a reflection warning on Java 13 for WebLaf
This commit is contained in:
@@ -229,7 +229,7 @@ public class FlatTestFrame
|
|||||||
|
|
||||||
private boolean isClassAvailable( String className ) {
|
private boolean isClassAvailable( String className ) {
|
||||||
try {
|
try {
|
||||||
Class.forName( className );
|
Class.forName( className, false, getClass().getClassLoader() );
|
||||||
return true;
|
return true;
|
||||||
} catch( ClassNotFoundException ex ) {
|
} catch( ClassNotFoundException ex ) {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user