private static bool IsSupportedType(Type type)
{
// Java annotations only support one-dimensional arrays
if (ReflectUtil.IsVector(type))
{
type = type.GetElementType();
}
return type == Types.String
|| type == Types.Boolean
|| type == Types.Byte
|| type == Types.Char
|| type == Types.Int16
|| type == Types.Int32
|| type == Types.Single
|| type == Types.Int64
|| type == Types.Double
|| type == Types.Type
|| type.IsEnum;
}