Skip to content

Fix empty diff test failure from upstream JavaSourceSet marker updates#1057

Closed
timtebeek wants to merge 1 commit intomainfrom
fix/empty-diff-java-source-set
Closed

Fix empty diff test failure from upstream JavaSourceSet marker updates#1057
timtebeek wants to merge 1 commit intomainfrom
fix/empty-diff-java-source-set

Conversation

@timtebeek
Copy link
Copy Markdown
Member

Summary

Context

Test plan

  • AddCommonAnnotationsDependenciesTest.changeAndUpgradeDependencyIfAnnotationJsr250Present passes locally

openrewrite/rewrite#7202 added JavaSourceSet marker updates to
ChangeDependencyGroupIdAndArtifactId, which now modifies Java files'
markers without changing text content. This causes the test framework
to flag "empty diff" errors for Java source specs without explicit
`after` text.

Provide explicit `after` text (identical to `before`) for the Java
source file in the affected test to accept the marker-only change.

See openrewrite/rewrite#7349 for the upstream issue.
@github-project-automation github-project-automation bot moved this to In Progress in OpenRewrite Apr 11, 2026
@timtebeek timtebeek marked this pull request as draft April 11, 2026 18:16
@timtebeek timtebeek closed this Apr 11, 2026
@github-project-automation github-project-automation bot moved this from In Progress to Done in OpenRewrite Apr 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant