From 77c58fa7466b1726c4fa5677c2702b4e595461e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viczi=C3=A1n=20Istv=C3=A1n?= Date: Wed, 11 Oct 2023 19:46:08 +0200 Subject: [PATCH] Change UriTemplate constructor to of() method in documentation --- src/main/asciidoc/mediatypes.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/asciidoc/mediatypes.adoc b/src/main/asciidoc/mediatypes.adoc index 61ff47bfa..469e6d16e 100644 --- a/src/main/asciidoc/mediatypes.adoc +++ b/src/main/asciidoc/mediatypes.adoc @@ -260,7 +260,7 @@ public class Config { @Bean public CurieProvider curieProvider() { - return new DefaultCurieProvider("ex", new UriTemplate("https://www.example.com/rels/{rel}")); + return new DefaultCurieProvider("ex", UriTemplate.of("https://www.example.com/rels/{rel}")); } } ----