Commits

Anonymous committed 61f5057

avoiding PMD rule violation: empty check exception

Comments (0)

Files changed (1)

src/main/java/org/monjo/core/conversion/DefaultObjectToDocumentConverter.java

 			if ("class".equals(fieldName))
 				continue;
 			Field field = null;
+			boolean virtualMethod = false;
 			try {
 				field = objectType.getField(fieldName);
 				if (Modifier.isTransient(field.getModifiers())){
 					continue ;
 				}				
 			} catch (NoSuchFieldException e1) {
+				virtualMethod = true;
 			}
 
 			Object fieldValue;