refs #200: Create accouting-lib library

https://support.d4science.org/issues/200
Adding tests and fixing found bugs

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@115773 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2015-07-02 09:20:36 +00:00
parent 70e2291a4e
commit 76cb6970c8
1 changed files with 2 additions and 0 deletions

View File

@ -142,6 +142,7 @@ public abstract class BasicUsageRecord implements UsageRecord, Serializable {
Set<Field> fields = getAllFields(this.getClass());
for(Field field : fields){
boolean defaultAccessibility = field.isAccessible();
field.setAccessible(true);
String keyString;
try {
@ -172,6 +173,7 @@ public abstract class BasicUsageRecord implements UsageRecord, Serializable {
computedFields.add(keyString);
}
}
field.setAccessible(defaultAccessibility);
}
logger.trace("Required Fields {}", requiredFields);
logger.trace("Aggregated Fields {}", aggregatedFields);