Skip to content

Commit fbd0c33

Browse files
committed
Add WebMvcLinkBuilder as allowed static import
Add `org.springframework.hateoas.server.mvc.WebMvcLinkBuilder` as an allowed static import and remove legacy class reference. Closes gh-350
1 parent 8207729 commit fbd0c33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: spring-javaformat/spring-javaformat-checkstyle/src/main/java/io/spring/javaformat/checkstyle/check/SpringAvoidStaticImportCheck.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017-2022 the original author or authors.
2+
* Copyright 2017-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -55,7 +55,7 @@ public class SpringAvoidStaticImportCheck extends AvoidStaticImportCheck {
5555
excludes.add("org.springframework.boot.configurationprocessor.ConfigurationMetadataMatchers.*");
5656
excludes.add("org.springframework.boot.configurationprocessor.TestCompiler.*");
5757
excludes.add("org.springframework.boot.test.autoconfigure.AutoConfigurationImportedCondition.*");
58-
excludes.add("org.springframework.hateoas.mvc.ControllerLinkBuilder.linkTo");
58+
excludes.add("org.springframework.hateoas.server.mvc.WebMvcLinkBuilder.*");
5959
excludes.add("org.springframework.restdocs.headers.HeaderDocumentation.*");
6060
excludes.add("org.springframework.restdocs.hypermedia.HypermediaDocumentation.*");
6161
excludes.add("org.springframework.restdocs.mockmvc.MockMvcRestDocumentation.*");

0 commit comments

Comments
 (0)