Allow to store arbitrary objects in a template part.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 8 Dec 2010 05:40:42 +0000 (06:40 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 8 Dec 2010 05:40:42 +0000 (06:40 +0100)
src/main/java/net/pterodactylus/sone/text/TemplatePart.java

index 2b27a89..1663e08 100644 (file)
@@ -55,7 +55,7 @@ public class TemplatePart implements Part {
         *            The value of the variable
         * @return This template part (for method chaining)
         */
-       public TemplatePart set(String key, String value) {
+       public TemplatePart set(String key, Object value) {
                template.set(key, value);
                return this;
        }