Consistent abstract declaration for utility classes (plus polishing)
Issue: SPR-16968
This commit is contained in:
@@ -25,7 +25,7 @@ import org.springframework.lang.Nullable;
|
||||
* <p>Note that some ClassLoaders do not expose the package metadata,
|
||||
* hence this class might not be able to determine the Spring version
|
||||
* in all environments. Consider using a reflection-based check instead:
|
||||
* For example, checking for the presence of a specific Spring 2.0
|
||||
* For example, checking for the presence of a specific Spring 5.0
|
||||
* method that you intend to call.
|
||||
*
|
||||
* @author Juergen Hoeller
|
||||
@@ -33,7 +33,6 @@ import org.springframework.lang.Nullable;
|
||||
*/
|
||||
public final class SpringVersion {
|
||||
|
||||
|
||||
private SpringVersion() {
|
||||
}
|
||||
|
||||
|
||||
@@ -32,7 +32,11 @@ import org.springframework.util.StringUtils;
|
||||
* @author Phillip Webb
|
||||
* @since 5.1
|
||||
*/
|
||||
abstract class ProfilesParser {
|
||||
final class ProfilesParser {
|
||||
|
||||
private ProfilesParser() {
|
||||
}
|
||||
|
||||
|
||||
static Profiles parse(String... expressions) {
|
||||
Assert.notEmpty(expressions, "Must specify at least one profile");
|
||||
|
||||
Reference in New Issue
Block a user