modules/graphics/src/main/java/com/sun/javafx/css/Stylesheet.java
Print this page
@@ -306,11 +306,11 @@
if (source.canRead() == false) {
throw new IllegalArgumentException("cannot read source file");
}
- if ((destination.exists() && destination.canWrite() == false) || destination.createNewFile() == false) {
+ if (destination.exists() ? (destination.canWrite() == false) : (destination.createNewFile() == false)) {
throw new IllegalArgumentException("cannot write destination file");
}
URI sourceURI = source.toURI();
Stylesheet stylesheet = CSSParser.getInstance().parse(sourceURI.toURL());