Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/FISH-9175-spotbugs-concatenated-…
Browse files Browse the repository at this point in the history
…strings-in-loop' into FISH-9175-spotbugs-concatenated-strings-in-loop

# Conflicts:
#	appserver/payara-appserver-modules/payara-micro-service/src/main/java/fish/payara/appserver/micro/services/asadmin/SendAsadminCommand.java
  • Loading branch information
NotedSalmon committed Aug 9, 2024
2 parents 9f2167e + ec03711 commit a2ae90c
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -956,14 +956,15 @@ private String getCorbalocURL(Object[] list) {
//convert list into corbaloc url
for (int i = 0; i < list.length; i++) {
logger.log(Level.INFO, "list[i] ==> {0}", list[i]);
if (corbalocURL.toString().equals("")) {
if (corbalocURL.length()==0) {
corbalocURL.append(IIOP_URL).append(((String) list[i]).trim());
} else {
corbalocURL.append(",").append(IIOP_URL).append(((String) list[i]).trim());
}
}
logger.log(Level.INFO, "corbaloc url ==> {0}", corbalocURL.toString());
return corbalocURL.toString();
String corbalocURLString = corbalocURL.toString();
logger.log(Level.INFO, "corbaloc url ==> {0}", corbalocURLString);
return corbalocURLString;
}

String getIIOPEndpoints() {
Expand Down

0 comments on commit a2ae90c

Please sign in to comment.