False positives when using DateTimeFormatter fluent builder
See original GitHub issueAn error is raised for Java 11 code with forbidden-apis version 3.1:
DateTimeFormatter.ofLocalizedDate(FormatStyle.LONG).withLocale(Locale.US)
Error is:
[ERROR] Forbidden method invocation: java.time.format.DateTimeFormatter#ofLocalizedDate(java.time.format.FormatStyle) [Uses default locale]
Do you consider this case a false positive error as locale
is defined after method call with fluent builder pattern?
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
False Positive on squid:S1845 - Google Groups
In a Builder class, is very common to have methods with same field name, to provide a Fluent API, such as: public static...
Read more >Index (AssertJ fluent assertions 3.9.1 API) - javadoc.io
Base class for all implementations of assertions for Boolean s. AbstractBooleanAssert(Boolean, Class<?>) - Constructor for class org.assertj.core.api.
Read more >IntelliJ IDEA 2022.2 EAP 1 (222.2270.31 build) Release Notes
Bug, IDEA-292524, "No candidates found for method call" false positive error when class name doesn't start with a capital letter. Infrastructure.
Read more >Web on Reactive Stack - Spring
If you have a Spring MVC application with calls to remote services, try the reactive WebClient . You can return reactive types (Reactor,...
Read more >https://unpkg.com/office-ui-fabric-react/dist/offi...
@deprecated Use the individual *Button components instead. * {@docCategory Button} */ export declare class Button extends React.Component<IButtonProps ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Starring can be good, Uwe. 😃 https://en.wikipedia.org/wiki/The_Starry_Night#/media/File:Van_Gogh_-_Starry_Night_-_Google_Art_Project.jpg
If you stare (not star) at this picture for an hour in the highest resolution a lot can happen: https://commons.wikimedia.org/wiki/File:The_Garden_of_earthly_delights.jpg