[Unicode]   Common Locale Data Repository : Bug Tracking Home | Site Map | Search
 
Modify

CLDR Ticket #11000(new tools)

Opened 5 weeks ago

ICUServiceBuilder: [FloatCast] Use parentheses to make the precedence explicit

Reported by: roubert Owned by: anybody
Component: util Data Locale:
Phase: dsub Review:
Weeks: Data Xpath:
Xref:

Description

Error Prone finds this problem in ICUServiceBuilder:

third_party/cldr/tools/java/org/unicode/cldr/util/ICUServiceBuilder.java:537: error: [FloatCast] Use parentheses to make the precedence explicit
            return (((int) roundingIncrement * 37 + fractDigits) * 37 + symbol.hashCode()) * 37
                     ^
    (see http://go/errorprone/bugpattern/FloatCast.md)
  Did you mean 'return (((int) (roundingIncrement * 37 + fractDigits)) * 37 + symbol.hashCode()) * 37' or 'return ((((int) roundingIncrement) * 37 + fractDigits) * 37 + symbol.hashCode()) * 37'?

http://errorprone.info/bugpattern/FloatCast

Attachments

View

Add a comment

Modify Ticket

Action
as new
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.