1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-22 20:12:07 +01:00

Support all primitive types in IntrospectionProvider

Fixes SMACK-453
This commit is contained in:
Florian Schmaus 2015-02-12 13:37:09 +01:00
parent 90ccd6c40e
commit 0d19b56fbb

View file

@ -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);
}