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
1 changed files with 5 additions and 1 deletions

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