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);
|
throw new ResourceNotFoundException(projection);
|
||||||
} else {
|
} else {
|
||||||
throw new AmbiguousViewException(String.format(
|
throw new AmbiguousViewException(String.format(
|
||||||
"Projection %s is ambiguous: ",
|
"Projection %s is ambiguous: %s",
|
||||||
name,
|
name,
|
||||||
Joiner.on(", ").join(
|
Joiner.on(", ").join(
|
||||||
Iterables.transform(r.keySet(), new Function<String, String>() {
|
Iterables.transform(r.keySet(), new Function<String, String>() {
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ public class ListIncludedGroups implements RestReadView<GroupResource> {
|
|||||||
included.add(json.format(i.getGroup()));
|
included.add(json.format(i.getGroup()));
|
||||||
}
|
}
|
||||||
} catch (NoSuchGroupException notFound) {
|
} 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(),
|
u.getIncludeUUID(),
|
||||||
rsrc.getGroup().getName()));
|
rsrc.getGroup().getName()));
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
@@ -290,7 +290,7 @@ final class ShowCaches extends CacheCommand {
|
|||||||
runtimeBean.getVmVendor(),
|
runtimeBean.getVmVendor(),
|
||||||
runtimeBean.getVmName(),
|
runtimeBean.getVmName(),
|
||||||
runtimeBean.getVmVersion());
|
runtimeBean.getVmVersion());
|
||||||
stdout.format(" on %s %s %s\n", "",
|
stdout.format(" on %s %s %s\n",
|
||||||
osBean.getName(),
|
osBean.getName(),
|
||||||
osBean.getVersion(),
|
osBean.getVersion(),
|
||||||
osBean.getArch());
|
osBean.getArch());
|
||||||
|
|||||||
@@ -163,7 +163,7 @@ final class ShowQueue extends SshCommand {
|
|||||||
}
|
}
|
||||||
|
|
||||||
stdout.print(String.format("%8s %-12s %-4s %s\n", //
|
stdout.print(String.format("%8s %-12s %-4s %s\n", //
|
||||||
id(task.getTaskId()), start, startTime, "", remoteName));
|
id(task.getTaskId()), start, startTime, remoteName));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stdout.print("----------------------------------------------"
|
stdout.print("----------------------------------------------"
|
||||||
|
|||||||
Reference in New Issue
Block a user