Skip to content

Conversation

steve-aom-elliott
Copy link
Contributor

What's changed?

  • When providing an attributeValue as well as appendArray of true, then when the initial state is a literal value, and the type of the attribute is actually an array, allow for appending and creating a list that includes the initial value.

Does not feel complete yet. Could stand to have some cleanup and likely reorganization / expansion of the tests

Checklist

  • I've added unit tests to cover both positive and negative cases
  • I've read and applied the recipe conventions and best practices
  • I've used the IntelliJ IDEA auto-formatter on affected files

@steve-aom-elliott steve-aom-elliott self-assigned this Aug 13, 2025
@steve-aom-elliott steve-aom-elliott added bug Something isn't working test provided Already replicated with a unit test, using JUnit pioneer's ExpectedToFail java labels Aug 13, 2025
@github-project-automation github-project-automation bot moved this to In Progress in OpenRewrite Aug 13, 2025
@steve-aom-elliott steve-aom-elliott force-pushed the 1410-better-support-for-appendarray-for-add-or-update-annotation-attribute branch from 464f219 to 40544c9 Compare August 14, 2025 21:31
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some suggestions could not be made:

  • rewrite-gradle/src/main/java/org/openrewrite/gradle/marker/GradleDependencyConfiguration.java
    • lines 33-33

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some suggestions could not be made:

  • rewrite-gradle/src/main/java/org/openrewrite/gradle/marker/GradleDependencyConfiguration.java
    • lines 33-33

… either via single value or a comma-separated list of values
…ue, partway through implicit attribute name w/ literal attributeValue
@steve-aom-elliott steve-aom-elliott force-pushed the 1410-better-support-for-appendarray-for-add-or-update-annotation-attribute branch from 6be26f6 to 438146d Compare August 26, 2025 21:35
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some suggestions could not be made:

  • rewrite-java/src/main/java/org/openrewrite/java/AddOrUpdateAnnotationAttribute.java
    • lines 520-520

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some suggestions could not be made:

  • rewrite-java/src/main/java/org/openrewrite/java/AddOrUpdateAnnotationAttribute.java
    • lines 520-520

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working java test provided Already replicated with a unit test, using JUnit pioneer's ExpectedToFail
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

2 participants