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

dropwizard / dropwizard / 4360
86%

Build:
DEFAULT BRANCH: master
Ran 18 Jan 2018 11:26PM UTC
Jobs 1
Files 410
Run time 28min
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
4360

push

travis-ci

arteam
Constraint validation caches error prefixes (#2246)

Previously, once a validation constraint was evaluated the entire string
was cached. The impetus for a cache is that reflection is used to
determine if we need to prefix an error message with additional context
(eg. "query parameter x ..."). Repeatedly calculating this prefix is
wasteful -- thus the cache was born.

The biggest issue with this cache is that while it worked with all
Hibernate Validation default message templates, it failed for message
templates that contained the invalid value (eg. "query parameter x
({validatedValue}) is greater than {value}"), as the same error would be
returned regardless of validatedValue. It would also fail for custom
constraint validators that didn't return the same message everytime.

The fix is to switch the cache from caching the entire error message to
just the error prefix (eg. "query parameter x", "return value", no
prefix).

This has no effect on performance and will allow custom validation
messages in Dropwizard.

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

6935 of 8010 relevant lines covered (86.58%)

78.34 hits per line

Jobs
ID Job ID Ran Files Coverage
1 4360.1 18 Jan 2018 11:26PM UTC 0
86.58
Travis Job 4360.1
Source Files on build 4360
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #4360
  • 2c1609bd on github
  • Prev Build on master (#4349)
  • Next Build on master (#4362)
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