Author: richard.opalka(a)jboss.com
Date: 2012-12-18 07:27:51 -0500 (Tue, 18 Dec 2012)
New Revision: 17124
Modified:
common/trunk/src/main/java/org/jboss/ws/common/utils/AbstractWSDLFilePublisher.java
Log:
[JBWS-3573] fixing some violations
Modified:
common/trunk/src/main/java/org/jboss/ws/common/utils/AbstractWSDLFilePublisher.java
===================================================================
---
common/trunk/src/main/java/org/jboss/ws/common/utils/AbstractWSDLFilePublisher.java 2012-12-18
11:32:54 UTC (rev 17123)
+++
common/trunk/src/main/java/org/jboss/ws/common/utils/AbstractWSDLFilePublisher.java 2012-12-18
12:27:51 UTC (rev 17124)
@@ -153,8 +153,9 @@
URL targetURL = new URL(baseURI.substring(0,
baseURI.lastIndexOf("/") + 1) + locationURI);
File targetFile = new File(targetURL.getFile()); //JBWS-3488
- if (targetFile.getParentFile() != null) {
- if (!targetFile.getParentFile().mkdirs()) {
+ File parentFile = targetFile.getParentFile();
+ if (parentFile != null) {
+ if (!parentFile.mkdirs()) {
; // exception will be thrown later in this code
}
}
@@ -212,8 +213,9 @@
URL xsdURL = new URL(baseURI.substring(0,
baseURI.lastIndexOf("/") + 1) + schemaLocation);
File targetFile = new File(xsdURL.getFile()); //JBWS-3488
- if (targetFile.getParentFile() != null) {
- if (!targetFile.getParentFile().mkdirs()) {
+ File parentFile = targetFile.getParentFile();
+ if (parentFile != null) {
+ if (!parentFile.mkdirs()) {
; // exception will be thrown later in this code
}
}
Show replies by date