Skip to content

Commit

Permalink
Merge pull request #41725 from dk2k/dk2k_early_exit
Browse files Browse the repository at this point in the history
Improvement: early exit from loop, when the only loop condition is met
  • Loading branch information
gsmet authored Aug 8, 2024
2 parents 2e9421c + 6b3586f commit 8d86036
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ public void recordStaticInitHandlerClass(List<AmazonLambdaBuildItem> lambdas,
for (Class handleInterface : providedLambda.get().getHandlerClass().getInterfaces()) {
if (handleInterface.getName().equals(RequestStreamHandler.class.getName())) {
useStreamHandler = true;
break;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ private void doRun() {
for (Thread entry : Thread.getAllStackTraces().keySet()) {
if (entry.getClass().getName().startsWith("org.jacoco")) {
running = true;
break;
}
}
if (!running) {
Expand Down

0 comments on commit 8d86036

Please sign in to comment.