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

dropwizard / dropwizard / 5582
86%

Build:
DEFAULT BRANCH: master
Ran 14 Mar 2019 10:57PM UTC
Jobs 1
Files 470
Run time 618min
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

pending completion
5582

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

195 of 195 new or added lines in 10 files covered. (100.0%)

7697 of 8978 relevant lines covered (85.73%)

0.86 hits per line

Jobs
ID Job ID Ran Files Coverage
1 5582.1 15 Mar 2019 09:16AM UTC 0
85.73
Travis Job 5582.1
Source Files on build 5582
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #5582
  • 184dadf8 on github
  • Prev Build on master (#5578)
  • Next Build on master (#5583)
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