Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dogfooding: cleanup Java 5: Convert to enhanced 'for' loops #1677

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jukzi
Copy link
Contributor

@jukzi jukzi commented Dec 4, 2023

No description provided.

Annotation annotation;
if ((annotation = annotations[j].getPersistibleAnnotation()) == null) continue; // already packaged into container.
if ((annotation = annotation2.getPersistibleAnnotation()) == null) continue; // already packaged into container.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

that looks more complicated then needed

@@ -831,18 +829,18 @@ public void recordSuppressWarnings(Scope scope, int startSuppresss, int endSuppr
ArrayInitializer initializer = (ArrayInitializer) value;
Expression[] inits = initializer.expressions;
if (inits != null) {
for (int j = 0, initsLength = inits.length; j < initsLength; j++) {
Constant cst = inits[j].constant;
for (Expression init2 : inits) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

should be "init"

@jukzi
Copy link
Contributor Author

jukzi commented Dec 4, 2023

I am not so happy with loop variable names like _astRoot2. Probably the refactoring can not guess good names. I would prefer to manually adopt such change before submitting, and split into smaller chunks

@jukzi jukzi marked this pull request as draft December 5, 2023 06:55
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.

None yet

2 participants