GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [java] Fix #4435 - FP with UnusedAssignment by oowekyala · Pull Request #4535 · pmd/pmd

Conversation

@oowekyala

@oowekyala oowekyala commented May 2, 2023 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Describe the PR

Related issues

  • Fix [java] [7.0-rc1] UnusedAssignment for used field #4435
  • Fix [java] SingularField ignores static variables #3694
  • Fix [java] UnusedAssignment false positive with conditional assignments of fields #4618

Ready?

  • Added unit tests for fixed bug/feature
  • Passing all unit tests
  • Complete build ./mvnw clean verify passes (checked automatically by github actions)
  • Added (in-code) documentation (if needed)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
oowekyala added 3 commits May 2, 2023 22:45
@oowekyala
Fix an FP with this leaks
edace01
@oowekyala
Fix pmd#4435
8edbb06
@oowekyala
Update release notes
1f791df
@oowekyala oowekyala added this to the 7.0.0 milestone May 2, 2023
oowekyala added 2 commits May 3, 2023 12:47
@oowekyala
Fix ImmutableField
0bc8e50
@oowekyala
pmd#3694 Make singularfield detect static vars
9502a1d
@oowekyala oowekyala mentioned this pull request May 3, 2023
[java] Fix #3694 - issue with SingularField #4544
Closed
4 tasks
@ghost

ghost commented May 3, 2023 •
edited by ghost
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
1 Message
📖 Compared to master:
This changeset changes 0 violations,
introduces 67 new violations, 0 new errors and 0 new configuration errors,
removes 297 violations, 0 errors and 0 configuration errors.
Download full report as build artifact
✅ Compared to master:
This changeset changes 0 violations,
introduces 67 new violations, 0 new errors and 0 new configuration errors,
removes 297 violations, 0 errors and 0 configuration errors.
Download full report as build artifact
✅ Compared to master:
This changeset changes 0 violations,
introduces 65 new violations, 0 new errors and 0 new configuration errors,
removes 297 violations, 0 errors and 0 configuration errors.
Full report
✅ Compared to master:
This changeset changes 0 violations,
introduces 67 new violations, 0 new errors and 0 new configuration errors,
removes 192 violations, 0 errors and 0 configuration errors.
Full report
✅ Compared to master:
This changeset changes 0 violations,
introduces 63 new violations, 0 new errors and 0 new configuration errors,
removes 186 violations, 0 errors and 0 configuration errors.
Full report
✅ Compared to master:
This changeset changes 0 violations,
introduces 80 new violations, 0 new errors and 0 new configuration errors,
removes 186 violations, 0 errors and 0 configuration errors.
Full report
✅ Compared to master:
This changeset changes 7 violations,
introduces 783 new violations, 0 new errors and 0 new configuration errors,
removes 196 violations, 0 errors and 0 configuration errors.
Full report
✅ Compared to master:
This changeset changes 2 violations,
introduces 782 new violations, 0 new errors and 0 new configuration errors,
removes 195 violations, 0 errors and 0 configuration errors.
Full report
✅ Compared to master:
This changeset changes 6 violations,
introduces 757 new violations, 0 new errors and 0 new configuration errors,
removes 247 violations, 0 errors and 0 configuration errors.
Full report

Generated by 🚫 Danger

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@oowekyala
oowekyala marked this pull request as draft May 3, 2023 20:38
oowekyala and others added 3 commits May 12, 2023 19:34
@oowekyala
Merge branch 'master' into issue4435-unusedAssignment
44a1e5e
@oowekyala
Merge branch 'master' into issue4435-unusedAssignment
076b4cf
@oowekyala
Fix new FN of ImmutableField
60367d0
@oowekyala
oowekyala force-pushed the issue4435-unusedAssignment branch from 0949a19 to 60367d0 Compare May 21, 2023 19:45
oowekyala added 8 commits May 28, 2023 15:12
@oowekyala
Merge branch 'master' into issue4435-unusedAssignment
4c07f66
@oowekyala
Merge branch 'issue3694-singularfield-static-final' into issue4435-un…
b49043d
…usedAssignment
@oowekyala
Fix dataflow
1794f68
@oowekyala
Fix FP with static increment
5df1d35
@oowekyala
Merge branch 'master' into issue4435-unusedAssignment
ba559c1
@oowekyala
Add couple of tests based on regression tester output
af1d1b4
@oowekyala
Fix new FP with SingularField and static fields
9d6a075
@oowekyala
Fix FP of UnusedAssignment with synchronized
287e5f4
@oowekyala

oowekyala commented Jun 25, 2023

Copy link
Copy Markdown
Member Author

The regression tester comment above seems broken:

<a href="Chunk.io now requires authentication. Send an email to [email protected] to get an invite./diff1/index.html">Full report</a></td>
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@adangel

adangel commented Jun 25, 2023

Copy link
Copy Markdown
Member

The regression tester comment above seems broken:

<a href="Chunk.io now requires authentication. Send an email to [email protected] to get an invite./diff1/index.html">Full report</a></td>

Yes, it seems we lost the account there (probably due to inactivity). I've changed the github actions script (d238de5 and f5829ac), so that the regression tester report is uploaded as an artifact. It worked for the other pull request already: #4605 -> go to checks -> left to the button "re-run all jobs" there is "artifacts" where you can download the report. You can view then the report locally.

You'll need to merge/rebase against master to get the new github actions script. With the next build, you should also see this artifact then.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@oowekyala
Merge branch 'master' into issue4435-unusedAssignment
3599ac8
@oowekyala

oowekyala commented Jun 25, 2023

Copy link
Copy Markdown
Member Author

Thanks for explaining!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

oowekyala added 5 commits July 1, 2023 17:56
@oowekyala
Fix pmd#4618
34871e9
@oowekyala
Update rule descriptions,
b92e751
add test case for pmd#4616
@oowekyala
Merge branch 'master' into issue4435-unusedAssignment
0034fb5
@oowekyala
fix merge
fa60d0e
Add back isStatic and isFinal on some nodes for convenience
@oowekyala
Update AST dump references
ebfd025
jsotuyod
jsotuyod reviewed Mar 15, 2024
View reviewed changes
Comment thread pmd-java/src/main/java/net/sourceforge/pmd/lang/java/rule/internal/DataflowPass.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@adangel adangel modified the milestones: 7.0.0, 7.0.1, 7.1.0 Mar 21, 2024
oowekyala added 3 commits March 25, 2024 20:13
@oowekyala
Merge branch 'master' into issue4435-unusedAssignment
ac16be8
@oowekyala
Merge branch 'master' into issue4435-unusedAssignment
3efb468
@oowekyala
cleanup
f345f2c
@oowekyala
oowekyala marked this pull request as ready for review March 27, 2024 15:30
@oowekyala

oowekyala commented Mar 27, 2024

Copy link
Copy Markdown
Member Author

After reviewing the diff report, this seems alright to me. It fixes some unreported FNs/FPs on ImmutableField too.

adangel reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@adangel adangel modified the milestones: 7.1.0, 7.0.1 Mar 29, 2024
@adangel
adangel self-requested a review March 29, 2024 10:11
@oowekyala oowekyala mentioned this pull request Apr 2, 2024
[java]SingularField can not detect static variables #2529
Closed
@oowekyala oowekyala linked an issue Apr 2, 2024 that may be closed by this pull request
[java]SingularField can not detect static variables #2529
Closed
adangel
adangel approved these changes Apr 3, 2024
View reviewed changes

@adangel adangel left a comment

Copy link
Copy Markdown
Member

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.

Thanks!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@adangel
adangel merged commit 71633b4 into pmd:master Apr 3, 2024
adangel added a commit that referenced this pull request Apr 3, 2024
@adangel
Merge pull request #4535 from oowekyala:issue4435-unusedAssignment
07d96e7
[java] Fix #4435 - FP with UnusedAssignment #4535
@oowekyala
oowekyala deleted the issue4435-unusedAssignment branch April 3, 2024 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@jsotuyod jsotuyod jsotuyod left review comments
@adangel adangel adangel approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

7.1.0

Development

Successfully merging this pull request may close these issues.

[java] UnusedAssignment false positive with conditional assignments of fields [java] [7.0-rc1] UnusedAssignment for used field [java] SingularField ignores static variables [java]SingularField can not detect static variables

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@oowekyala @adangel @jsotuyod
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.