Skip to content

Reset Thread interrupted state after catching IOE#6438

Draft
dlmarion wants to merge 1 commit into
apache:2.1from
dlmarion:fix-catch-ioe
Draft

Reset Thread interrupted state after catching IOE#6438
dlmarion wants to merge 1 commit into
apache:2.1from
dlmarion:fix-catch-ioe

Conversation

@dlmarion

@dlmarion dlmarion commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

This commit resets the thread interrupted state after catching InterruptedException. These changes were made by running the Maven command below, reviewing the changes, and making some manual modifications.

mvn -U org.openrewrite.maven:rewrite-maven-plugin:run \
    --define rewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-static-analysis:RELEASE \
    --define rewrite.activeRecipes=org.openrewrite.staticanalysis.InterruptedExceptionHandling \
    --define rewrite.exportDatatables=true

The related documentation for this Maven plugin can be found at https://docs.openrewrite.org/recipes/staticanalysis/interruptedexceptionhandling

This commit resets the thread interrupted state after catching
InterruptedException. These changes were made by running the
Maven command below, reviewing the changes, and making some
manual modifications.

mvn -U org.openrewrite.maven:rewrite-maven-plugin:run \
    --define rewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-static-analysis:RELEASE \
    --define rewrite.activeRecipes=org.openrewrite.staticanalysis.InterruptedExceptionHandling \
    --define rewrite.exportDatatables=true

The related documentation for this Maven plugin can be found
at https://docs.openrewrite.org/recipes/staticanalysis/interruptedexceptionhandling
@dlmarion dlmarion added this to the 2.1.5 milestone Jun 22, 2026
@dlmarion dlmarion self-assigned this Jun 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant