Language: Java
Label: vulnerable
CWE: NVD-CWE-noinfo \u2014 

Code:
    private static URI uri(HttpRequest req) {
        final String scheme = req.scheme();
        final String authority = req.authority();
        // Server side Armeria HTTP request always has the scheme and authority.
        assert scheme != null;
        assert authority != null;
        return URI.create(scheme + "://" + authority + req.path());
    }