Skip to content

Commit 541840f

Browse files
committed
fix format strings
1 parent d8df6db commit 541840f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/org/openstreetmap/josm/plugins/scripting/ui/console/SyntaxConstantsEngine.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ private static List<String> loadAvailableSyntaxConstants() {
207207
return (String) field.get(value);
208208
} catch (IllegalAccessException e) {
209209
logger.log(Level.SEVERE, MessageFormat.format(
210-
"Failed to read syntax style constant '{0}'",
210+
"Failed to read syntax style constant ''{0}''",
211211
field.getName()
212212
), e);
213213
return null;
@@ -266,7 +266,7 @@ public void loadRules(@NotNull final Plugin context) {
266266
if (file.isFile() && file.canRead()) {
267267
if (logger.isLoggable(Level.FINE)) {
268268
logger.fine(MessageFormat.format(
269-
"Loading syntax style rules from file '{0}'",
269+
"Loading syntax style rules from file ''{0}''",
270270
file.getAbsolutePath()
271271
));
272272
}
@@ -277,14 +277,14 @@ public void loadRules(@NotNull final Plugin context) {
277277
var resourceName = "/" + SYNTAX_STYLE_RULES_FILE;
278278
if (logger.isLoggable(Level.FINE)) {
279279
logger.fine(MessageFormat.format(
280-
"Loading syntax style rules from resource '{0}'",
280+
"Loading syntax style rules from resource ''{0}''",
281281
resourceName
282282
));
283283
}
284284
input = SyntaxConstantsEngine.class.getResourceAsStream(resourceName);
285285
if (input == null) {
286286
logger.warning(MessageFormat.format(
287-
"Failed to read syntax style rules. Resource '{0}' not found.",
287+
"Failed to read syntax style rules. Resource ''{0}'' not found.",
288288
resourceName
289289
));
290290
}

0 commit comments

Comments
 (0)