I have a configuration class in spring boot project. It has the List of Tenant object class member in that class. I don't find the 'private List<Tenant> tenant' after obfuscating the class using Proguard.
How to configure in proguard configuration file to get an expected result?
<b>Code</b>
public class MTConfig {
private List<Tenant> tenant;
.....
}
Verifying the class file after obfuscation using proguard;
<u><i>Actual Result :</i></u>
public class MTConfig {
private List tenant;
.....
}
<b>Expected Result:</b>
"
public class MTConfig {
private List<Tenant> tenant;
.....
}
"
put this in your progurad.conf file
-keepclassmembers class com.yourproject.MTConfig** {
private java.util.List<com.yourprojectPath.Tenant> tenant;
}
and use
-keepattributes Signature
The "Signature" attribute is required to be able to access generic types when compiling in JDK 5.0 and higher.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With