1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-26 08:12:05 +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"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with 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); return Float.valueOf(value);
case "double": case "double":
return Double.valueOf(value); return Double.valueOf(value);
case "short":
return Short.valueOf(value);
case "byte":
return Byte.valueOf(value);
case "java.lang.Class": case "java.lang.Class":
return Class.forName(value); return Class.forName(value);
} }