From 43434986c2888cfad3b3b119358fa7ce5ad7e7bf Mon Sep 17 00:00:00 2001 From: AndroidX Test Team Date: Mon, 26 Feb 2024 03:27:33 -0800 Subject: [PATCH] A comment PiperOrigin-RevId: 610353660 --- .../orchestrator/AndroidTestOrchestrator.java | 23 +++++++++---------- 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/runner/android_test_orchestrator/java/androidx/test/orchestrator/AndroidTestOrchestrator.java b/runner/android_test_orchestrator/java/androidx/test/orchestrator/AndroidTestOrchestrator.java index b09cf341f..c5910020c 100644 --- a/runner/android_test_orchestrator/java/androidx/test/orchestrator/AndroidTestOrchestrator.java +++ b/runner/android_test_orchestrator/java/androidx/test/orchestrator/AndroidTestOrchestrator.java @@ -451,18 +451,17 @@ private Bundle createResultBundle() { @Override public void finish(int resultCode, Bundle results) { - - try { - super.finish(resultCode, results); - } catch (SecurityException e) { - Log.e(TAG, "Security exception thrown on shutdown", e); - // On API Level 18 a security exception can be occasionally thrown when calling finish - // with a result bundle taken from a remote message. Recreating the result bundle and - // retrying finish has a high probability of suppressing the flake. - results = createResultBundle(); - super.finish(resultCode, results); - } - + // This is a comment + try { + super.finish(resultCode, results); + } catch (SecurityException e) { + Log.e(TAG, "Security exception thrown on shutdown", e); + // On API Level 18 a security exception can be occasionally thrown when calling finish + // with a result bundle taken from a remote message. Recreating the result bundle and + // retrying finish has a high probability of suppressing the flake. + results = createResultBundle(); + super.finish(resultCode, results); + } } @Override