Merge pull request #23081 from izeye

* pr/23081:
  Polish

Closes gh-23081
pull/23110/head
Stephane Nicoll 4 years ago
commit e0ccf54727

@ -57,7 +57,6 @@ public enum Include {
PRINCIPAL, PRINCIPAL,
/** /**
*
* Include the remote address. * Include the remote address.
*/ */
REMOTE_ADDRESS, REMOTE_ADDRESS,

@ -76,7 +76,7 @@ class SharedMetadataReaderFactoryContextInitializer
static class CachingMetadataReaderFactoryPostProcessor static class CachingMetadataReaderFactoryPostProcessor
implements BeanDefinitionRegistryPostProcessor, PriorityOrdered { implements BeanDefinitionRegistryPostProcessor, PriorityOrdered {
private ConfigurableApplicationContext context; private final ConfigurableApplicationContext context;
CachingMetadataReaderFactoryPostProcessor(ConfigurableApplicationContext context) { CachingMetadataReaderFactoryPostProcessor(ConfigurableApplicationContext context) {
this.context = context; this.context = context;

@ -101,8 +101,8 @@ public class Repackager extends Packager {
public void repackage(File destination, Libraries libraries, LaunchScript launchScript, FileTime lastModifiedTime) public void repackage(File destination, Libraries libraries, LaunchScript launchScript, FileTime lastModifiedTime)
throws IOException { throws IOException {
Assert.isTrue(destination != null && !destination.isDirectory(), "Invalid destination"); Assert.isTrue(destination != null && !destination.isDirectory(), "Invalid destination");
getLayout(); // get layout early Layout layout = getLayout(); // get layout early
if (lastModifiedTime != null && getLayout() instanceof War) { if (lastModifiedTime != null && layout instanceof War) {
throw new IllegalStateException("Reproducible repackaging is not supported with war packaging"); throw new IllegalStateException("Reproducible repackaging is not supported with war packaging");
} }
destination = destination.getAbsoluteFile(); destination = destination.getAbsoluteFile();

@ -25,7 +25,7 @@ import java.lang.annotation.Target;
import org.junit.jupiter.api.extension.ExtendWith; 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 * {@link ClassPathExclusions} or {@link ClassPathOverrides} are needed, but just a copy
* of the classpath. * of the classpath.
* *

@ -259,7 +259,7 @@ public class ConfigFileApplicationListener implements EnvironmentPostProcessor,
*/ */
private static class PropertySourceOrderingPostProcessor implements BeanFactoryPostProcessor, Ordered { private static class PropertySourceOrderingPostProcessor implements BeanFactoryPostProcessor, Ordered {
private ConfigurableApplicationContext context; private final ConfigurableApplicationContext context;
PropertySourceOrderingPostProcessor(ConfigurableApplicationContext context) { PropertySourceOrderingPostProcessor(ConfigurableApplicationContext context) {
this.context = context; this.context = context;

Loading…
Cancel
Save