False positives found when libs use reflection #15
Replies: 9 comments
-
Robolectric 4.4 shadows multidex also has a warning, but I think it's using androidX.
|
Beta Was this translation helpful? Give feedback.
-
org.robolectric:shadows-multidex:4.4 is not migrated to androidx. It is using
|
Beta Was this translation helpful? Give feedback.
-
com.mixpanel.android:mixpanel-android:5.8.5 is also using android support lib.
|
Beta Was this translation helpful? Give feedback.
-
About Mixpanel: I saw that, but I thought as it's not imported its not a "real" use of it. Am I wrong there? Should they use reflection on an androidx class? |
Beta Was this translation helpful? Give feedback.
-
Invoking by reflection is also a real use of the support. I particularly don't know that lib, but if you think that the
|
Beta Was this translation helpful? Give feedback.
-
Regarding com.microsoft.appcenter:espresso-test-extension:1.4
in this case the reference the support, but also androidx, so its safe to exclude that file
|
Beta Was this translation helpful? Give feedback.
-
Given that there is nothing to do on the plugin side, I will close this issue. |
Beta Was this translation helpful? Give feedback.
-
Agree, will create issues on the robolectric/Mixpanel repos so they can also analyze it. Thanks for looking at it! :) |
Beta Was this translation helpful? Give feedback.
-
Hi. I find out that robolectric has |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
Some false positives (afaik) are found on our project. Example below.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
In the below cases there shouldn't be a warning as far as I understand.
Screenshots
--> https://github.com/microsoft/AppCenter-Test-Espresso-Extensions/blob/master/src/main/java/com/microsoft/appcenter/espresso/Factory.java
--> https://github.com/mixpanel/mixpanel-android/blob/master/src/main/java/com/mixpanel/android/mpmetrics/MixpanelAPI.java
Beta Was this translation helpful? Give feedback.
All reactions