From 9ccfff94b1e3b68719bcea557a761c8969b6a8c3 Mon Sep 17 00:00:00 2001 From: Pratik Shelarkar Date: Sun, 3 Dec 2023 02:02:24 +0530 Subject: [PATCH] reformatted --- .../components/dialog/menubar/CheckIndexDialogFactory.java | 2 +- .../components/dialog/menubar/OptimizeIndexDialogFactory.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lucene/luke/src/java/org/apache/lucene/luke/app/desktop/components/dialog/menubar/CheckIndexDialogFactory.java b/lucene/luke/src/java/org/apache/lucene/luke/app/desktop/components/dialog/menubar/CheckIndexDialogFactory.java index c41d72e04c7..cddd4225347 100644 --- a/lucene/luke/src/java/org/apache/lucene/luke/app/desktop/components/dialog/menubar/CheckIndexDialogFactory.java +++ b/lucene/luke/src/java/org/apache/lucene/luke/app/desktop/components/dialog/menubar/CheckIndexDialogFactory.java @@ -279,7 +279,7 @@ public final class CheckIndexDialogFactory implements DialogOpener.DialogFactory setProgress(0); statusLbl.setText("Running..."); indicatorLbl.setVisible(true); - try (TextAreaPrintStream ps = new TextAreaPrintStream(logArea)){ + try (TextAreaPrintStream ps = new TextAreaPrintStream(logArea)) { CheckIndex.Status status = toolsModel.checkIndex(ps); return status; } catch (Exception e) { diff --git a/lucene/luke/src/java/org/apache/lucene/luke/app/desktop/components/dialog/menubar/OptimizeIndexDialogFactory.java b/lucene/luke/src/java/org/apache/lucene/luke/app/desktop/components/dialog/menubar/OptimizeIndexDialogFactory.java index 471227801ab..9b9a40968ff 100644 --- a/lucene/luke/src/java/org/apache/lucene/luke/app/desktop/components/dialog/menubar/OptimizeIndexDialogFactory.java +++ b/lucene/luke/src/java/org/apache/lucene/luke/app/desktop/components/dialog/menubar/OptimizeIndexDialogFactory.java @@ -214,8 +214,8 @@ public final class OptimizeIndexDialogFactory implements DialogOpener.DialogFact setProgress(0); statusLbl.setText("Running..."); indicatorLbl.setVisible(true); - - try(TextAreaPrintStream ps = new TextAreaPrintStream(logArea)) { + + try (TextAreaPrintStream ps = new TextAreaPrintStream(logArea)) { toolsModel.optimize(expungeCB.isSelected(), (int) maxSegSpnr.getValue(), ps); } catch (Exception e) { statusLbl.setText(MessageUtils.getLocalizedMessage("message.error.unknown"));