Consistent abstract declaration for utility classes (plus polishing)

Issue: SPR-16968
This commit is contained in:
Juergen Hoeller
2018-07-01 02:31:20 +02:00
parent e72f4ec501
commit 4ff1e3e74b
21 changed files with 31 additions and 77 deletions

View File

@@ -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() {
}

View File

@@ -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");