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