We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 031dc1a commit 620f742Copy full SHA for 620f742
1 file changed
modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/CayenneModelerController.java
@@ -130,7 +130,7 @@ public void windowClosing(WindowEvent e) {
130
// Register a hook to save the window position when quit via the app menu.
131
// This is in Mac OSX only.
132
if (System.getProperty("os.name").startsWith("Mac OS")) {
133
- Runnable runner = () -> projectController.saveSelectionToPrefs();
+ Runnable runner = projectController::saveSelectionToPrefs;
134
Runtime.getRuntime().addShutdownHook(new Thread(runner, "Window Prefs Hook"));
135
}
136
0 commit comments