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

dropwizard / dropwizard / 5582 / 1
86%
master: 86%

Build:
DEFAULT BRANCH: master
Ran 15 Mar 2019 09:16AM UTC
Files 470
Run time 19s
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 Mar 2019 10:31PM UTC coverage: 85.732% (+0.2%) from 85.58%
5582.1

push

travis-ci

web-flow
Add data size class adhering to the correct SI and IEC prefixes (#2686)

The `Size` and `SizeUnit` classes in Dropwizard are using a common but incorrect definition of data size units, in which 1 kilobyte equals 1024 bytes.

The `DataSize` and `DataSizeUnit` classes are using the correct definitions according to SI and IEC, in which 1 kilobyte equals 1000 bytes and 1 kibibytes equals 1024 bytes.

Instead of modifying the existing `Size` and `SizeUnit` classes, this change set introduces a new set of classes, `DataSize` and `DataSizeUnit`, with the possibility to convert the old units into the new, correct units.

Example:
```
assertEquals(Size.parse("128 kb").toDataSize(), DataSize.kibibytes(128L));
```

This is a breaking change and has to be properly documented in the release notes and upgrade notes of Dropwizard.

Closes #2152
Closes #2154

7697 of 8978 relevant lines covered (85.73%)

0.86 hits per line

Source Files on job 5582.1
  • Tree
  • List 0
  • Changed 6
  • Source Changed 6
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 4867
  • Travis Job 5582.1
  • 184dadf8 on github
  • Prev Job for on master (#5578.1)
  • Next Job for on master (#5583.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc