in sdk/enclave/src/main/java/org/apache/teaclave/javasdk/enclave/EnclaveFeature.java [167:181]
private void collectConfigs(Class<?> clazz, List<Method> methods) {
reflectionCandidateTypes.putIfAbsent(clazz, false);
methods.stream().filter(m -> !Modifier.isStatic(m.getModifiers())).forEach(
method -> {
for (Class<?> pType : method.getParameterTypes()) {
serializationCandidateTypes.putIfAbsent(pType, false);
}
serializationCandidateTypes.putIfAbsent(method.getReturnType(), false);
for (Class<?> expType : method.getExceptionTypes()) {
serializationCandidateTypes.putIfAbsent(expType, false);
}
reflectionCandidateMethods.putIfAbsent(method, false);
}
);
}