Skip to content

Commit 322d7be

Browse files
committed
Polishing
1 parent ef1be17 commit 322d7be

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

spring-context/src/main/java/org/springframework/context/annotation/ImportSelector.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2013 the original author or authors.
2+
* Copyright 2002-2020 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.
@@ -50,6 +50,7 @@ public interface ImportSelector {
5050
/**
5151
* Select and return the names of which class(es) should be imported based on
5252
* the {@link AnnotationMetadata} of the importing @{@link Configuration} class.
53+
* @return the class names, or an empty array if none
5354
*/
5455
String[] selectImports(AnnotationMetadata importingClassMetadata);
5556

spring-jdbc/src/main/java/org/springframework/jdbc/datasource/init/DatabasePopulatorUtils.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2017 the original author or authors.
2+
* Copyright 2002-2020 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.
@@ -51,10 +51,10 @@ public static void execute(DatabasePopulator populator, DataSource dataSource) t
5151
DataSourceUtils.releaseConnection(connection, dataSource);
5252
}
5353
}
54+
catch (ScriptException ex) {
55+
throw ex;
56+
}
5457
catch (Throwable ex) {
55-
if (ex instanceof ScriptException) {
56-
throw (ScriptException) ex;
57-
}
5858
throw new UncategorizedScriptException("Failed to execute database script", ex);
5959
}
6060
}

spring-web/src/main/java/org/springframework/web/client/RestTemplate.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2019 the original author or authors.
2+
* Copyright 2002-2020 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.
@@ -123,7 +123,7 @@
123123
*/
124124
public class RestTemplate extends InterceptingHttpAccessor implements RestOperations {
125125

126-
private static boolean romePresent =
126+
private static final boolean romePresent =
127127
ClassUtils.isPresent("com.rometools.rome.feed.WireFeed",
128128
RestTemplate.class.getClassLoader());
129129

0 commit comments

Comments
 (0)