Skip to content

Commit

Permalink
Use class getInstance for RSSIFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre Assouad committed Feb 28, 2024
1 parent b99f302 commit ce8f1ba
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,7 @@ private RssiFilter getFilter() {
// Use custom RSSI filter
if (BeaconManager.getRssiFilterImplClass() != null) {
try {
Constructor cons = BeaconManager.getRssiFilterImplClass().getConstructor();
mFilter = (RssiFilter) cons.newInstance();
mFilter = (RssiFilter) BeaconManager.getRssiFilterImplClass().newInstance();
} catch (Exception e) {
LogManager.e(TAG, "Failed with exception %s", e.toString());
LogManager.e(TAG, "Could not construct RssiFilterImplClass %s", BeaconManager.getRssiFilterImplClass().getName());
Expand Down

0 comments on commit ce8f1ba

Please sign in to comment.