"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "flow-server/src/main/java/com/vaadin/flow/server/DevModeHandler.java" between
vaadin-flow-4.0.4.tar.gz and vaadin-flow-4.0.5.tar.gz

About: Vaadin flow is a Java framework binding Vaadin web components to Java.

DevModeHandler.java  (vaadin-flow-4.0.4):DevModeHandler.java  (vaadin-flow-4.0.5)
skipping to change at line 244 skipping to change at line 244
devServerStartFuture.getNow(null); devServerStartFuture.getNow(null);
} catch (CompletionException exception) { } catch (CompletionException exception) {
isDevServerFailedToStart.set(true); isDevServerFailedToStart.set(true);
throw getCause(exception); throw getCause(exception);
} }
return false; return false;
} else { } else {
InputStream inputStream = DevModeHandler.class InputStream inputStream = DevModeHandler.class
.getResourceAsStream("dev-mode-not-ready.html"); .getResourceAsStream("dev-mode-not-ready.html");
IOUtils.copy(inputStream, response.getOutputStream()); IOUtils.copy(inputStream, response.getOutputStream());
response.setContentType("text/html;charset=utf-8");
return true; return true;
} }
} }
private RuntimeException getCause(Throwable exception) { private RuntimeException getCause(Throwable exception) {
if (exception instanceof CompletionException) { if (exception instanceof CompletionException) {
return getCause(exception.getCause()); return getCause(exception.getCause());
} else if (exception instanceof RuntimeException) { } else if (exception instanceof RuntimeException) {
return (RuntimeException) exception; return (RuntimeException) exception;
} else { } else {
 End of changes. 1 change blocks. 
0 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)