mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 22:32:06 +01:00
Support all primitive types in IntrospectionProvider
Fixes SMACK-453
This commit is contained in:
parent
90ccd6c40e
commit
0d19b56fbb
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue