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

Code:
    default RoutingContext withPath(String path) {
        requireNonNull(path, "path");
        final RequestTarget oldReqTarget = requestTarget();
        final RequestTarget newReqTarget =
                DefaultRequestTarget.createWithoutValidation(
                        oldReqTarget.form(),
                        oldReqTarget.scheme(),
                        oldReqTarget.authority(),
                        removeMatrixVariables(path),
                        path,
                        oldReqTarget.query(),
                        oldReqTarget.fragment());

        return new RoutingContextWrapper(this) {
            @Override
            public RequestTarget requestTarget() {
                return newReqTarget;
            }
        };
    }