Skip to content

Commit

Permalink
Polish
Browse files Browse the repository at this point in the history
  • Loading branch information
izeye authored and snicoll committed Aug 26, 2020
1 parent 4320b3a commit e48af31
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
Expand Up @@ -57,7 +57,6 @@ public enum Include {
PRINCIPAL,

/**
*
* Include the remote address.
*/
REMOTE_ADDRESS,
Expand Down
Expand Up @@ -76,7 +76,7 @@ public int getOrder() {
static class CachingMetadataReaderFactoryPostProcessor
implements BeanDefinitionRegistryPostProcessor, PriorityOrdered {

private ConfigurableApplicationContext context;
private final ConfigurableApplicationContext context;

CachingMetadataReaderFactoryPostProcessor(ConfigurableApplicationContext context) {
this.context = context;
Expand Down
Expand Up @@ -101,8 +101,8 @@ public void repackage(File destination, Libraries libraries, LaunchScript launch
public void repackage(File destination, Libraries libraries, LaunchScript launchScript, FileTime lastModifiedTime)
throws IOException {
Assert.isTrue(destination != null && !destination.isDirectory(), "Invalid destination");
getLayout(); // get layout early
if (lastModifiedTime != null && getLayout() instanceof War) {
Layout layout = getLayout(); // get layout early
if (lastModifiedTime != null && layout instanceof War) {
throw new IllegalStateException("Reproducible repackaging is not supported with war packaging");
}
destination = destination.getAbsoluteFile();
Expand Down
Expand Up @@ -25,7 +25,7 @@
import org.junit.jupiter.api.extension.ExtendWith;

/**
* Annotation used to fork the classpath. This can be helpful were neither
* Annotation used to fork the classpath. This can be helpful where neither
* {@link ClassPathExclusions} or {@link ClassPathOverrides} are needed, but just a copy
* of the classpath.
*
Expand Down
Expand Up @@ -259,7 +259,7 @@ public void setSearchNames(String names) {
*/
private static class PropertySourceOrderingPostProcessor implements BeanFactoryPostProcessor, Ordered {

private ConfigurableApplicationContext context;
private final ConfigurableApplicationContext context;

PropertySourceOrderingPostProcessor(ConfigurableApplicationContext context) {
this.context = context;
Expand Down

0 comments on commit e48af31

Please sign in to comment.