Skip to content

Commit c602ec9

Browse files
committed
revert method-references back to lambdas
1 parent ed4bc0e commit c602ec9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sentry-android-core/src/main/java/io/sentry/android/core/cache/AndroidEnvelopeCache.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,9 @@ public static boolean hasStartupCrashMarker(final @NotNull SentryOptions options
126126
final File crashMarkerFile = new File(outboxPath, STARTUP_CRASH_MARKER_FILE);
127127
try {
128128
final boolean exists =
129-
options.getRuntimeManager().runWithRelaxedPolicy(crashMarkerFile::exists);
129+
options.getRuntimeManager().runWithRelaxedPolicy(() -> crashMarkerFile.exists());
130130
if (exists) {
131-
if (!options.getRuntimeManager().runWithRelaxedPolicy(crashMarkerFile::delete)) {
131+
if (!options.getRuntimeManager().runWithRelaxedPolicy(() -> crashMarkerFile.delete())) {
132132
options
133133
.getLogger()
134134
.log(
@@ -260,10 +260,10 @@ void handle(
260260
AnrV2Integration.AnrV2Hint.class,
261261
LAST_ANR_MARKER_LABEL,
262262
LAST_ANR_REPORT,
263-
AnrV2Integration.AnrV2Hint::timestamp),
263+
anrV2Hint -> anrV2Hint.timestamp()),
264264
new TimestampMarkerHandler<>(
265265
TombstoneIntegration.TombstoneHint.class,
266266
LAST_TOMBSTONE_MARKER_LABEL,
267267
LAST_TOMBSTONE_REPORT,
268-
TombstoneIntegration.TombstoneHint::timestamp));
268+
tombstoneHint -> tombstoneHint.timestamp()));
269269
}

0 commit comments

Comments
 (0)