From 0d19b56fbb3e70a8e26beb8fb8b4dbf0da2b2da4 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Thu, 12 Feb 2015 13:37:09 +0100 Subject: [PATCH] Support all primitive types in IntrospectionProvider Fixes SMACK-453 --- .../jivesoftware/smack/provider/IntrospectionProvider.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/smack-core/src/main/java/org/jivesoftware/smack/provider/IntrospectionProvider.java b/smack-core/src/main/java/org/jivesoftware/smack/provider/IntrospectionProvider.java index 16a140616..7d57233d0 100644 --- a/smack-core/src/main/java/org/jivesoftware/smack/provider/IntrospectionProvider.java +++ b/smack-core/src/main/java/org/jivesoftware/smack/provider/IntrospectionProvider.java @@ -1,6 +1,6 @@ /** * - * Copyright © 2014 Florian Schmaus + * Copyright © 2014-2015 Florian Schmaus * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -131,6 +131,10 @@ public class IntrospectionProvider{ return Float.valueOf(value); case "double": return Double.valueOf(value); + case "short": + return Short.valueOf(value); + case "byte": + return Byte.valueOf(value); case "java.lang.Class": return Class.forName(value); }