@SuppressWarnings("rawtypes") public ToNativeConverter getToNativeConverter(Class type) { if (NativeObject.class.isAssignableFrom(type)) { return nativeObjectConverter; } else if (NativeValue.class.isAssignableFrom(type)) { return nativeValueArgumentConverter; } else if (Enum.class.isAssignableFrom(type)) { return enumConverter; } else if (Boolean.class == type || boolean.class == type) { return booleanConverter; } else if (String.class == type) { return stringConverter; } else if (IntPtr.class == type) { return intptrConverter; } else if (GQuark.class == type) { return gquarkConverter; } return super.getToNativeConverter(type); }
@SuppressWarnings("unchecked") public ToNativeConverter getToNativeConverter(Class type) { if (NativeObject.class.isAssignableFrom(type)) { return nativeObjectConverter; } else if (GObject.GObjectProxy.class.isAssignableFrom(type)) { return nativeObjectConverter; } else if (NativeValue.class.isAssignableFrom(type)) { return nativeValueArgumentConverter; } else if (Enum.class.isAssignableFrom(type)) { return enumConverter; } else if (Boolean.class == type || boolean.class == type) { return booleanConverter; } else if (IntPtr.class == type) { return intptrConverter; } else if (GQuark.class == type) { return gquarkConverter; } else if (Date.class.isAssignableFrom(type)) { return dateConverter; } return super.getToNativeConverter(type); }