Skip to content

Commit

Permalink
change madrobot to java 8 reflection classes
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanKiral committed Feb 19, 2024
1 parent 73c1e2c commit 5daf626
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion delivery-sdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ dependencies {
implementation("com.fasterxml.jackson.core:jackson-databind:2.12.0")
implementation("com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.12.0")

implementation("com.madrobot:madrobotbeans:0.1")
implementation("io.github.classgraph:classgraph:4.8.90")

implementation("com.squareup.okhttp3:okhttp:4.9.0")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@

package kontent.ai.delivery;

import com.madrobot.beans.BeanInfo;
import com.madrobot.beans.IntrospectionException;
import com.madrobot.beans.Introspector;
import com.madrobot.beans.PropertyDescriptor;
import java.beans.BeanInfo;
import java.beans.IntrospectionException;
import java.beans.Introspector;
import java.beans.PropertyDescriptor;
import io.github.classgraph.ClassGraph;
import io.github.classgraph.ClassInfoList;
import io.github.classgraph.ScanResult;
Expand Down Expand Up @@ -337,7 +337,7 @@ private static Optional<PropertyDescriptor> getPropertyDescriptor(Object bean, F
try {
beanInfo = Introspector.getBeanInfo(bean.getClass());
} catch (IntrospectionException e) {
log.debug("IntrospectionException from com.madrobot.beans for object {} with field {} is null", bean, field);
log.debug("IntrospectionException for object {} with field {} is null", bean, field);
return null;
}
PropertyDescriptor[] properties = beanInfo.getPropertyDescriptors();
Expand Down

0 comments on commit 5daf626

Please sign in to comment.