Comments (2)
Thanks for the helpful sample application @gtiwari333 ! Looks like we're indeed running up against this warning when processing the enum.
We can replicate this on a smaller scale by adding this test to
@Test
@Issue("https://github.com/openrewrite/rewrite/issues/4252")
void skipEnum() {
rewriteRun(
groovy(
"""
package com.example.demo
enum Status {
WaitingToBeProcessed,
InProcess,
Complete,
Failed
}
"""
)
);
}
from rewrite.
There's a hint in visitEnumField
on how this could be achieved; you're welcome to give this a go if you'd like. It'd be kind of hard to fit in for me at this moment; we'd mostly added Groovy support for Gradle, such that enums or running autoformat there are rare, which is why you're only encountering this now.
from rewrite.
Related Issues (20)
- TabsAndIndents: continuationIndentSize fails by `!DOCTYPE` HOT 2
- `CatchClauseOnlyRethrows` should not remove empty catch if the exception then gets caught by another catch block
- The InMemoryDiffEntry defaults diffs with UTF-8 encoding when a file could be in another encoding e.g. ISO-8859
- LST SourceFile for file encoded as ISO-8859 produced with encoding set to UTF-8
- "Add Maven Parent" recipe HOT 3
- JSP parse errors logged to console during `mod build`
- No newline in import statements added by maybeAddImport / AddImportVisitor HOT 3
- org.openrewrite.java.RemoveObjectsIsNull fails on negated expressions HOT 5
- Json formatting/style doesn't seem to be respected when adding values/members
- Print equality issue with `<!-- -->` in JavaDoc HOT 4
- add clang-format style HOT 2
- Getting StringIndexOutOfBoundsException with Groovy class that has groovy transform. HOT 2
- java/ChangePackage does not update JPMS module-info.java HOT 2
- `maybeAddImport` adds import although all references are fully qualified HOT 1
- Maven settings with profiles fails to active other profiles from parent activeByDefault HOT 12
- ClassCastException in UpgradeDependencyVersion
- 🐛 Tests involving Map with unbounded wildcards throw LST error
- 🐛 Unbounded wildcard in `JavaTemplate` does not match array types HOT 1
- Recipe UpgradeSpringBoot_3_3 misses upgrading wro4j-maven-plugin and the latest version of jakarta.xml.bind-api when the origin is Java8 and Spring Boot 1.5.X HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rewrite.