Skip to content

Commit

Permalink
Always parse java-style (#2000)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinPihony authored Jul 24, 2019
1 parent 172ac5a commit 7429d8e
Showing 1 changed file with 9 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,17 +123,15 @@ private void registerClass(Class cla) {
}
}
}
else {
Field[] fields = cla.getFields();
for (Field field : fields) {
if ((field.getName().startsWith("ATTRIBUTE_") && (eventTypeToLog == null || !field.getName().startsWith("ATTRIBUTE_TYPE"))) ||
(field.getName().startsWith("VERBOSE_") && (eventTypeToLog == null || !field.getName().startsWith("VERBOSE_")))
) {
try {
attributeToColumnIndexMapping.put(field.get(null).toString(), 0);
} catch (IllegalArgumentException | IllegalAccessException e) {
e.printStackTrace();
}
Field[] fields = cla.getFields();
for (Field field : fields) {
if ((field.getName().startsWith("ATTRIBUTE_") && (eventTypeToLog == null || !field.getName().startsWith("ATTRIBUTE_TYPE"))) ||
(field.getName().startsWith("VERBOSE_") && (eventTypeToLog == null || !field.getName().startsWith("VERBOSE_")))
) {
try {
attributeToColumnIndexMapping.put(field.get(null).toString(), 0);
} catch (IllegalArgumentException | IllegalAccessException e) {
e.printStackTrace();
}
}
}
Expand Down

0 comments on commit 7429d8e

Please sign in to comment.