From 9f31e09cf0eb035341103471b0e51df96ac9f13c Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Mon, 15 Dec 2014 12:27:19 -0800 Subject: [PATCH] Fix 'pid' references in the PortFileWriter Fix numerous copy-paste errors in EmbeddedServerPortFileWriter where PID concepts are referenced. Fixes gh-2161 --- .../system/EmbeddedServerPortFileWriter.java | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/system/EmbeddedServerPortFileWriter.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/system/EmbeddedServerPortFileWriter.java index 539cf1bc13..3fbbe8db60 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/system/EmbeddedServerPortFileWriter.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/system/EmbeddedServerPortFileWriter.java @@ -46,29 +46,31 @@ public class EmbeddedServerPortFileWriter implements private static final String[] PROPERTY_VARIABLES = { "PORTFILE", "portfile" }; - private static final Log logger = LogFactory.getLog(ApplicationPidFileWriter.class); + private static final Log logger = LogFactory + .getLog(EmbeddedServerPortFileWriter.class); private final File file; /** - * Create a new {@link ApplicationPidFileWriter} instance using the filename - * 'application.pid'. + * Create a new {@link EmbeddedServerPortFileWriter} instance using the filename + * 'application.port'. */ public EmbeddedServerPortFileWriter() { this.file = new File(DEFAULT_FILE_NAME); } /** - * Create a new {@link ApplicationPidFileWriter} instance with a specified filename. - * @param filename the name of file containing pid + * Create a new {@link EmbeddedServerPortFileWriter} instance with a specified + * filename. + * @param filename the name of file containing port */ public EmbeddedServerPortFileWriter(String filename) { this(new File(filename)); } /** - * Create a new {@link ApplicationPidFileWriter} instance with a specified file. - * @param file the file containing pid + * Create a new {@link EmbeddedServerPortFileWriter} instance with a specified file. + * @param file the file containing port */ public EmbeddedServerPortFileWriter(File file) { Assert.notNull(file, "File must not be null"); @@ -91,7 +93,7 @@ public class EmbeddedServerPortFileWriter implements portFile.deleteOnExit(); } catch (Exception ex) { - logger.warn(String.format("Cannot create pid file %s", this.file)); + logger.warn(String.format("Cannot create port file %s", this.file)); } }