Fix String.format(...) calls where more args are passed than used
Change-Id: Ie6ddee996593b8bdddea20d8a8738a1048c54631 Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
@@ -814,7 +814,7 @@ public class RestApiServlet extends HttpServlet {
|
||||
throw new ResourceNotFoundException(projection);
|
||||
} else {
|
||||
throw new AmbiguousViewException(String.format(
|
||||
"Projection %s is ambiguous: ",
|
||||
"Projection %s is ambiguous: %s",
|
||||
name,
|
||||
Joiner.on(", ").join(
|
||||
Iterables.transform(r.keySet(), new Function<String, String>() {
|
||||
|
||||
@@ -67,7 +67,7 @@ public class ListIncludedGroups implements RestReadView<GroupResource> {
|
||||
included.add(json.format(i.getGroup()));
|
||||
}
|
||||
} catch (NoSuchGroupException notFound) {
|
||||
log.warn(String.format("Group %s no longer available, included into ",
|
||||
log.warn(String.format("Group %s no longer available, included into %s",
|
||||
u.getIncludeUUID(),
|
||||
rsrc.getGroup().getName()));
|
||||
continue;
|
||||
|
||||
@@ -290,7 +290,7 @@ final class ShowCaches extends CacheCommand {
|
||||
runtimeBean.getVmVendor(),
|
||||
runtimeBean.getVmName(),
|
||||
runtimeBean.getVmVersion());
|
||||
stdout.format(" on %s %s %s\n", "",
|
||||
stdout.format(" on %s %s %s\n",
|
||||
osBean.getName(),
|
||||
osBean.getVersion(),
|
||||
osBean.getArch());
|
||||
|
||||
@@ -163,7 +163,7 @@ final class ShowQueue extends SshCommand {
|
||||
}
|
||||
|
||||
stdout.print(String.format("%8s %-12s %-4s %s\n", //
|
||||
id(task.getTaskId()), start, startTime, "", remoteName));
|
||||
id(task.getTaskId()), start, startTime, remoteName));
|
||||
}
|
||||
}
|
||||
stdout.print("----------------------------------------------"
|
||||
|
||||
Reference in New Issue
Block a user