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

valkyrjaio / valkyrja-java / 37886000657
100%

Build:
DEFAULT BRANCH: 26.x
Ran 09 Oct 2026 04:54AM UTC
Jobs 1
Files 657
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

09 Oct 2026 04:53AM UTC coverage: 100.0%. Remained the same
37886000657

push

github

web-flow
[Http] fix(#232)!: Build a cast type through the container (#209)

# Description

Build the type that an HTTP route parameter's `Cast` names through the
container.
`Matcher.castMatchValue()` returned the matched text without a change,
so a parameter that
declared a cast produced the same value as a parameter that declared
none.

Java cannot call a static method on a variable class, so the container
builds the type and the cast
names the binding key. The matcher resolves the key with `getService()`
and not `get()`, because
`get()` reads the singleton path first and would build one type from an
empty argument map and
cache it for every later match.

An unbound key raises `ContainerInvalidReferenceException` out of the
matcher. `Matcher` requires a
collection and a container, because each convenience constructor
substituted a container that can
hold no cast type. `checkAndCastMatchValue` and `castMatchValue` return
a nullable object, because
a type may hold a null value.

Closes #232

## Types of changes

- [ ] Improvement _(non-breaking change which improves code)_
- [ ] Bug fix _(non-breaking change which fixes an issue)_
- [ ] New feature _(non-breaking change which adds functionality)_
- [ ] Deprecation _(breaking change which removes functionality)_
- [x] Breaking change _(fix or feature that would cause existing
functionality to change)_
- [x] Documentation improvement

## Changes

- **`http/routing/matcher/Matcher.java`** — resolves a cast type through
the container, and
  requires a collection and a container.
- **`http/routing/provider/HttpRoutingServiceProvider.java`**,
**`http/routing/dispatcher/Router.java`** — pass the container to the
matcher they build.
- **`http/README.md`** — documents what the matcher does with a cast,
and the throwable an unbound
  key raises.
- **`type/README.md`** — names the matcher beside the caster as a reader
of a cast.
- **`container/README.md`** — passes the container in each matcher
example.
- **tests** — cove... (continued)

1979 of 1979 branches covered (100.0%)

Branch coverage included in aggregate %.

6 of 6 new or added lines in 2 files covered. (100.0%)

7078 of 7078 relevant lines covered (100.0%)

4.32 hits per line

Jobs
ID Job ID Ran Files Coverage
1 37886000657.1 09 Oct 2026 04:54AM UTC 657
100.0
GitHub Action Run
Source Files on build 37886000657
  • Tree
  • List 657
  • Changed 3
  • Source Changed 3
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #37886000657
  • d928a29d on github
  • Prev Build on 26.x (#37885679772)
  • Next Build on 26.x (#37962999485)
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