diff --git a/AIMSICD/src/main/java/com/secupwn/aimsicd/utils/Device.java b/AIMSICD/src/main/java/com/secupwn/aimsicd/utils/Device.java index a8cc70315..f5615a37d 100644 --- a/AIMSICD/src/main/java/com/secupwn/aimsicd/utils/Device.java +++ b/AIMSICD/src/main/java/com/secupwn/aimsicd/utils/Device.java @@ -159,15 +159,14 @@ public void refreshDeviceInfo(TelephonyManager tm, Context context) { dataState = getDataState(tm); } - private Optional getSimInformation(Supplier simInfoSupplier) { - try { - return Optional.ofNullable(simInfoSupplier.get()); - } catch (Exception e) { - // SIM methods can cause Exceptions on some devices - log.error("Failed to get SIM-Information", e); - } - return Optional.empty(); - } + private static Optional getSimInformation(Supplier simInfoSupplier) { + try { + return Optional.ofNullable(simInfoSupplier.get()); + } catch (Exception e) { + log.error("Failed to get SIM-Information", e); + } + return Optional.empty(); + } /** * SIM Country