question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

False positives when using DateTimeFormatter fluent builder

See original GitHub issue

An 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:closed
  • Created 2 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

0reactions
uschindlercommented, Sep 6, 2021

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found