]> WPIA git - gigi.git/blobdiff - src/org/cacert/gigi/output/template/SprintfCommand.java
Merge "Update notes about password security"
[gigi.git] / src / org / cacert / gigi / output / template / SprintfCommand.java
index cbd79e57a14ebfface943921c8b1b0765d568406..51ea9cf209c16531a2637837c5410057aee9e011 100644 (file)
@@ -23,7 +23,7 @@ public final class SprintfCommand implements Translatable {
     private final String[] store;
 
     /**
-     * Creates a new SprintfCommand based on its pre-parsed contents
+     * Creates a new SprintfCommand based on its pre-parsed contents.
      * 
      * @param text
      *            a string with <code>{0},{1},..</code> as placeholders.
@@ -44,7 +44,7 @@ public final class SprintfCommand implements Translatable {
      * Creates a new SprintfCommand that is parsed as from template source.
      * 
      * @param content
-     *            the part from the template that is to be parsed
+     *            the part from the template that is to be parsed.
      */
     protected SprintfCommand(String content) {
         StringBuffer raw = new StringBuffer();
@@ -109,9 +109,9 @@ public final class SprintfCommand implements Translatable {
      *            as placeholders.
      * @param vars
      *            the variables to put into the placeholders.
-     * @return the constructed {@link Outputable}
+     * @return the constructed {@link Outputable}.
      */
-    public static Outputable createSimple(String msg, String... vars) {
+    public static Outputable createSimple(String msg, Object... vars) {
         HashMap<String, Object> scope = new HashMap<>();
         String[] store = new String[vars.length];
         for (int i = 0; i < vars.length; i++) {