Skip to content

Commit

Permalink
Common,B,LookAndFeelFactory,Fixed NoClassDefFoundError on Linux in Lo…
Browse files Browse the repository at this point in the history
…okAndFeelFactory,83622,no
  • Loading branch information
jidesoft committed Dec 15, 2018
1 parent 2411e02 commit 585b4dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/com/jidesoft/plaf/LookAndFeelFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -1871,7 +1871,7 @@ public static boolean isWindowsLookAndFeel(LookAndFeel lnf) {
Class c = Class.forName(WINDOWS_LNF);
return c.isInstance(lnf);
}
catch (ClassNotFoundException cnfe) {
catch (ClassNotFoundException | NoClassDefFoundError ignore) {
// if it is not possible to load the Windows LnF class, the
// given lnf instance cannot be an instance of the Windows
// LnF class
Expand All @@ -1897,7 +1897,7 @@ public static boolean isWindowsClassicLookAndFeel(LookAndFeel lnf) {
Class c = Class.forName(WINDOWS_CLASSIC_LNF);
return c.isInstance(lnf);
}
catch (ClassNotFoundException cnfe) {
catch (ClassNotFoundException | NoClassDefFoundError ignore) {
// if it is not possible to load the Windows LnF class, the
// given lnf instance cannot be an instance of the Windows
// LnF class
Expand Down

0 comments on commit 585b4dc

Please sign in to comment.