File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
modules/jooby-run/src/main/java/io/jooby/run Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 1919public class JoobyRunOptions {
2020
2121 /** Default port. */
22- public static final int DEFAULT_PORT = Integer .parseInt (System .getProperty ("server.port" , "8080" ));
22+ public static final int DEFAULT_PORT = Integer
23+ .parseInt (System .getProperty ("server.port" , "8080" ));
2324
2425 private String projectName ;
2526
@@ -101,7 +102,9 @@ public List<String> getRestartExtensions() {
101102 * @param restartExtensions Restart extensions.
102103 */
103104 public void setRestartExtensions (List <String > restartExtensions ) {
104- this .restartExtensions = restartExtensions ;
105+ if (restartExtensions != null && !restartExtensions .isEmpty ()) {
106+ this .restartExtensions = restartExtensions ;
107+ }
105108 }
106109
107110 /**
@@ -120,7 +123,9 @@ public List<String> getCompileExtensions() {
120123 * @param compileExtensions Compile extensions.
121124 */
122125 public void setCompileExtensions (List <String > compileExtensions ) {
123- this .compileExtensions = compileExtensions ;
126+ if (compileExtensions != null && !compileExtensions .isEmpty ()) {
127+ this .compileExtensions = compileExtensions ;
128+ }
124129 }
125130
126131 /**
You can’t perform that action at this time.
0 commit comments