Skip to content

Commit

Permalink
Improvement early exit from loop, when the only loop condition is met
Browse files Browse the repository at this point in the history
  • Loading branch information
dk2k authored and gsmet committed Aug 8, 2024
1 parent 59670d7 commit 6b3586f
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 6b3586f

Please sign in to comment.