Skip to content

Commit

Permalink
Merge pull request #4409 from rdebusscher/CUSTCOM-142
Browse files Browse the repository at this point in the history
CUSTOM-142 Delete JVM options with min max versions.
  • Loading branch information
MattGill98 authored Jan 10, 2020
2 parents 6137f3b + d473a21 commit 7002f7a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ private void deleteX(final JvmOptionBag bag, final List<String> toRemove, final
SingleConfigCode<JvmOptionBag> scc = (JvmOptionBag bag1) -> {
List<String> jvmopts = new ArrayList<>(bag1.getJvmRawOptions());
int orig = jvmopts.size();
boolean removed = jvmopts.removeIf(option -> toRemove.contains(new JvmOption(option).option));
// using new JvmOption(option).toString() (instead op option directly) to make sure the correct formatting is applied.
boolean removed = jvmopts.removeIf(option -> toRemove.contains(new JvmOption(option).toString()));
bag1.setJvmOptions(jvmopts);
int now = jvmopts.size();
if (removed) {
Expand Down

0 comments on commit 7002f7a

Please sign in to comment.