From: David ‘Bombe’ Roden Date: Wed, 8 Dec 2010 05:40:42 +0000 (+0100) Subject: Allow to store arbitrary objects in a template part. X-Git-Tag: 0.3.2~6 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=10cf7b38ffd899a6fbfd4f4df17b48f2ea190aef;p=Sone.git Allow to store arbitrary objects in a template part. --- diff --git a/src/main/java/net/pterodactylus/sone/text/TemplatePart.java b/src/main/java/net/pterodactylus/sone/text/TemplatePart.java index 2b27a89..1663e08 100644 --- a/src/main/java/net/pterodactylus/sone/text/TemplatePart.java +++ b/src/main/java/net/pterodactylus/sone/text/TemplatePart.java @@ -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; }