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

"final" on effective final fields #5250

Merged
merged 2 commits into from
Jul 1, 2023

Conversation

pizzi80
Copy link
Contributor

@pizzi80 pizzi80 commented Jun 20, 2023

  • final on effective final fields
  • Java style array declaration instead of C-style

+ Java style array declaration instead of C-style

Signed-off-by: pizzi80 <[email protected]>
private FacesEvent event = null;
private int rowIndex = -1;
private final FacesEvent event;
private final int rowIndex;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why was -1 default removed? Seems a breaking change.

Copy link
Contributor

@BalusC BalusC Jul 1, 2023

Choose a reason for hiding this comment

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

Nevermind. The PR didn't show that it was in a nested class WrapperEvent extends FacesEvent. Approved.

@BalusC BalusC merged commit e8019b2 into eclipse-ee4j:master Jul 1, 2023
@arjantijms arjantijms added the 5.0 label Jul 6, 2023
@pizzi80 pizzi80 deleted the 4.1.0.final_fields_from_master branch July 12, 2023 13:40
private static ConcurrentHashMap threadInitContext = new ConcurrentHashMap(2);
private static ConcurrentHashMap initContextServletContext = new ConcurrentHashMap(2);
private static final ConcurrentHashMap<Thread,FacesContext> threadInitContext = new ConcurrentHashMap<>(2);
private static final ConcurrentHashMap<Thread,InitFacesContext> initContextServletContext = new ConcurrentHashMap<>(2);
Copy link
Contributor

@BalusC BalusC Nov 3, 2024

Choose a reason for hiding this comment

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

FYI: this caused a major problem during 4.1.1/4.1.2 release.

Please never import Impl specific classes into API classes :)

It's already fixed. Just a heads up for the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants