- private static void findYangTypeGetter(Class<?> type, String propertyName)
- throws Exception {
- for(PropertyDescriptor desc: Introspector.getBeanInfo(type).getPropertyDescriptors()) {
- if(desc.getName().equals(propertyName)) {
- yangTypeGetters.put(type, desc.getReadMethod());
+ private static void findYangTypeGetter(final Class<?> type, final String propertyName)
+ throws IntrospectionException {
+ for (final PropertyDescriptor desc: Introspector.getBeanInfo(type).getPropertyDescriptors()) {
+ if (desc.getName().equals(propertyName)) {
+ YANG_TYPE_GETTERS.put(type, desc.getReadMethod());