Skip to content

Commit

Permalink
Consider all types as unsafe allocated
Browse files Browse the repository at this point in the history
  • Loading branch information
loicottet committed Oct 23, 2024
1 parent dea1968 commit 8299eed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ protected void parseClassArray(List<Object> classes) {

protected void registerIfNotDefault(EconomicMap<String, Object> data, boolean defaultValue, T clazz, String propertyName, Runnable register) {
if (data.containsKey(propertyName)) {
RuntimeReflectionSupport.increaseCount(false);
RuntimeReflectionSupport.increaseCount(defaultValue);
}
if (data.containsKey(propertyName) ? asBoolean(data.get(propertyName), propertyName) : defaultValue) {
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ protected void parseClass(EconomicMap<String, Object> data) {
registerIfNotDefault(data, false, clazz, "allPublicMethods", () -> delegate.registerPublicMethods(condition, false, clazz));
registerIfNotDefault(data, false, clazz, "allDeclaredFields", () -> delegate.registerDeclaredFields(condition, false, clazz));
registerIfNotDefault(data, false, clazz, "allPublicFields", () -> delegate.registerPublicFields(condition, false, clazz));
registerIfNotDefault(data, false, clazz, "unsafeAllocated", () -> delegate.registerUnsafeAllocated(condition, clazz));
registerIfNotDefault(data, true, clazz, "unsafeAllocated", () -> delegate.registerUnsafeAllocated(condition, clazz));

MapCursor<String, Object> cursor = data.getEntries();
while (cursor.advance()) {
Expand Down

0 comments on commit 8299eed

Please sign in to comment.