Skip to content

Commit

Permalink
FISH-6773 syntax simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
aubi committed Aug 4, 2023
1 parent 146ee4a commit 7790930
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,10 @@
* holder.
*/

// Portions Copyright [2017-2021] [Payara Foundation and/or its affiliates]
// Portions Copyright 2017-2023 [Payara Foundation and/or its affiliates]
package org.glassfish.deployment.admin;

import com.sun.enterprise.admin.util.ClusterOperationUtil;
import com.sun.enterprise.config.serverbeans.Application;
import com.sun.enterprise.config.serverbeans.ApplicationRef;
import com.sun.enterprise.config.serverbeans.Applications;
Expand Down Expand Up @@ -190,10 +191,7 @@ public void execute(AdminCommandContext context) {
commandParams.command = Command.delete_application_ref;

// for each matched version
Iterator it = matchedVersions.iterator();
while (it.hasNext()) {
String appName = (String)it.next();

for (String appName : matchedVersions) {
Application application = applications.getApplication(appName);
if (application == null) {
if (env.isDas()) {
Expand Down

0 comments on commit 7790930

Please sign in to comment.