@@ -166,7 +166,7 @@ protected void persistGuiThemeDetails(long guiThemeId, String commonNames, Strin
166166
167167 protected void persistDetailValueIfNotNull (long guiThemeId , String providedParameter , String type ) {
168168 if (providedParameter == null ) {
169- logger .trace (String . format ( "GUI theme provided parameter `%s ` is null; therefore, it will be ignored." , type ) );
169+ logger .trace ("GUI theme provided parameter `{} ` is null; therefore, it will be ignored." , type );
170170 return ;
171171 }
172172 for (String splitParameter : StringUtils .deleteWhitespace (providedParameter ).split ("," )) {
@@ -258,7 +258,7 @@ protected void validateJsonConfiguration(String jsonConfig) {
258258 Set <Map .Entry <String , JsonElement >> entries = jsonElement .getAsJsonObject ().entrySet ();
259259 entries .stream ().forEach (entry -> validateJsonAttributes (entry , jsonObject ));
260260 } catch (JsonSyntaxException exception ) {
261- logger .error (String . format ( "The following exception was thrown while parsing the JSON object: [%s ]." , exception .getMessage () ));
261+ logger .error ("The following exception was thrown while parsing the JSON object: [{} ]." , exception .getMessage ());
262262 throw new CloudRuntimeException ("Specified JSON configuration is not a valid JSON object." );
263263 }
264264 }
@@ -272,7 +272,7 @@ private void validateJsonAttributes(Map.Entry<String, JsonElement> entry, JsonOb
272272 String entryKey = entry .getKey ();
273273
274274 if (entryValue .isJsonPrimitive () && ALLOWED_PRIMITIVE_PROPERTIES .contains (entryKey )) {
275- logger .trace ("The JSON attribute [%s ] is a valid option." );
275+ logger .trace ("The JSON attribute [{} ] is a valid option." , entryKey );
276276 jsonObject .add (entryKey , entryValue );
277277 } else if (entryValue .isJsonObject () && ERROR .equals (entryKey )) {
278278 validateErrorAttribute (entry , jsonObject );
@@ -330,7 +330,7 @@ protected JsonObject createJsonObject(Set<Map.Entry<String, JsonElement>> entrie
330330 }
331331
332332 protected void warnOfInvalidJsonAttribute (String entryKey ) {
333- logger .warn (String . format ( "The JSON attribute [%s ] is not a valid option, therefore, it will be ignored." , entryKey ) );
333+ logger .warn ("The JSON attribute [{} ] is not a valid option, therefore, it will be ignored." , entryKey );
334334 }
335335
336336 /**
@@ -407,7 +407,7 @@ protected GuiThemeJoinVO persistGuiTheme(Long guiThemeId, String name, String de
407407 guiThemeVO .setRecursiveDomains (recursiveDomains );
408408 }
409409
410- logger .trace (String . format ( "Persisting GUI theme [%s ] with CSS [%s ] and JSON configuration [%s ]." , guiThemeVO , guiThemeVO .getCss (), guiThemeVO .getJsonConfiguration () ));
410+ logger .trace ("Persisting GUI theme [{} ] with CSS [{} ] and JSON configuration [{} ]." , guiThemeVO , guiThemeVO .getCss (), guiThemeVO .getJsonConfiguration ());
411411
412412 guiThemeDao .persist (guiThemeVO );
413413 guiThemeDetailsDao .expungeByGuiThemeId (guiThemeId );
@@ -433,7 +433,7 @@ public void removeGuiTheme(RemoveGuiThemeCmd cmd) {
433433 if (guiThemeVO != null ) {
434434 guiThemeDao .remove (guiThemeId );
435435 } else {
436- logger .error (String . format ( "Unable to find a GUI theme with the specified ID [%s ]." , guiThemeId ) );
436+ logger .error ("Unable to find a GUI theme with the specified ID [{} ]." , guiThemeId );
437437 throw new CloudRuntimeException ("Unable to find a GUI theme with the specified ID." );
438438 }
439439 }
0 commit comments