• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pmd / pmd / 970
80%

Build:
DEFAULT BRANCH: main
Ran 14 Nov 2026 08:27AM UTC
Jobs 1
Files 2224
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

14 Nov 2026 08:03AM UTC coverage: 80.257% (+0.004%) from 80.253%
970

push

github

web-flow
[java] Fix #7313: Fold casts to boolean and boolean equality (#7314)

* [java] Fix #7313: Fold casts to boolean and boolean equality

JLS 15.29 allows casts to primitive types and the operators == and !=
in constant expressions. ConstantFolder folded a cast only to a
numeric type or String. It folded == and != only for numeric and char
operands. So (boolean) true and true == false had no constant value.

A cast to boolean now keeps a boolean operand value, and == and !=
compare two boolean values. A cast to Boolean still has no constant
value.

* [java] Test boxed Boolean locals in constant folding

A comparison or a cast of final Boolean locals has a folded value, but
it is not a compile-time constant. A comparison of final boolean locals
is a compile-time constant.

20778 of 26870 branches covered (77.33%)

Branch coverage included in aggregate %.

7 of 7 new or added lines in 1 file covered. (100.0%)

44286 of 54200 relevant lines covered (81.71%)

0.83 hits per line

Jobs
ID Job ID Ran Files Coverage
1 970.1 14 Nov 2026 08:27AM UTC 2224
80.26
GitHub Action Run
Source Files on build 970
  • Tree
  • List 2224
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #970
  • f7b73884 on github
  • Prev Build on main (#969)
  • Next Build on main (#971)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc