From 7aa36cd052be5ff7174276aa7f5b29c95250500a Mon Sep 17 00:00:00 2001 From: Mark Benson Date: Fri, 10 Nov 2023 22:40:37 +0000 Subject: [PATCH] Retain deprecate refresh method. --- .../src/main/java/VASSAL/build/module/PredefinedSetup.java | 7 ++++++- .../VASSAL/configure/RefreshPredefinedSetupsDialog.java | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/vassal-app/src/main/java/VASSAL/build/module/PredefinedSetup.java b/vassal-app/src/main/java/VASSAL/build/module/PredefinedSetup.java index e1b1960cb2..1ecc0f4e28 100644 --- a/vassal-app/src/main/java/VASSAL/build/module/PredefinedSetup.java +++ b/vassal-app/src/main/java/VASSAL/build/module/PredefinedSetup.java @@ -286,7 +286,12 @@ public static String getConfigureTypeName() { return Resources.getString("Editor.PredefinedSetup.component_type"); //$NON-NLS-1$ } - public int refresh(Set options) throws IOException, IllegalBuildException { + @Deprecated(since = "2023-11-10", forRemoval = true) + public void refresh(Set options) throws IOException, IllegalBuildException { + refreshWithStatus(options); + } + + public int refreshWithStatus(Set options) throws IOException, IllegalBuildException { if (!options.isEmpty()) { this.refresherOptions.addAll(options); } diff --git a/vassal-app/src/main/java/VASSAL/configure/RefreshPredefinedSetupsDialog.java b/vassal-app/src/main/java/VASSAL/configure/RefreshPredefinedSetupsDialog.java index 593a9905ca..7247c21d4d 100644 --- a/vassal-app/src/main/java/VASSAL/configure/RefreshPredefinedSetupsDialog.java +++ b/vassal-app/src/main/java/VASSAL/configure/RefreshPredefinedSetupsDialog.java @@ -330,7 +330,7 @@ private void refreshPredefinedSetups() { } else { try { - if (pds.refresh(options) > 0) flaggedFiles++; + if (pds.refreshWithStatus(options) > 0) flaggedFiles++; refreshCount++; } catch (final IOException e) {