- Notifications
You must be signed in to change notification settings - Fork898
fixRemoveUnusedImportsStep
leftovers#1262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
fixRemoveUnusedImportsStep
leftovers#1262
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View thisfailed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
WIP
core/src/test/java/com/google/googlejavaformat/java/RemoveUnusedImportsTest.java OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
core/src/test/java/com/google/googlejavaformat/java/RemoveUnusedImportsTest.java OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
33f45fd
to91080e2
Compare91080e2
to05caad3
Comparecore/src/test/java/com/google/googlejavaformat/java/RemoveUnusedImportsTest.java OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
core/src/test/java/com/google/googlejavaformat/java/RemoveUnusedImportsTest.javaShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
iddeepak commentedJun 28, 2025
@Pankraz76 |
RemoveUnusedImportsStep
RemoveUnusedImportsStep
leftovers05caad3
tocf8220e
Compareimport org.junit.runners.JUnit4; | ||
import java.util.List; | ||
Pankraz76Jun 28, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
this seems to be an issue now imposed by the new fixes done by me.
cf8220e
to8e6d995
Compare"import $1" +sep +sep); | ||
// Remove multiple blank lines elsewhere in imports section | ||
s =s.replaceAll("(?m)^import .+" +sep +"\\s+" +sep +"(?=import)","import $1" +sep); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
items:
so the formatter test failing on the previous version is fixed now, but still failing other tests as well.
At least only related to the class, except of the IndexOutOfBounds.
[ERROR] Failures: [ERROR] RemoveUnusedImportsTest.removeUnused:577 value of: removeUnusedImports(...)diff (-expected +actual): @@ -1,5 +1,4 @@ package p; -import java.lang.Foo; import java.lang.Foo.Bar; import p.Baz; import p.Baz.Bork;[ERROR] RemoveUnusedImportsTest.removeUnused:577 value of: removeUnusedImports(...)expected: …pkg.Constants.FOO; public class Test …but was: …pkg.Constants.FOO; public class Test …[ERROR] RemoveUnusedImportsTest.removeUnused:577 value of: removeUnusedImports(...)expected: class Test { java.…but was: class Test { java.…[ERROR] Errors: [ERROR] MainTest.optimizeImportsDoesNotLeaveEmptyLines:246 » IndexOutOfBounds No group...[INFO] [ERROR] Tests run: 1580, Failures: 3, Errors: 1, Skipped: 0
8e6d995
to87ae466
Compare87ae466
toe6c2323
Comparecan not fix remaining tests, ether disable or fix. Kindly request some feedback. Thanks. |
Uh oh!
There was an error while loading.Please reload this page.
fix#1261
@iddeepak kindly request your eyes on this.