(no commit message)
[utils] / support / general / src / main / java / org / wamblee / xml / XslTransformer.java
index 003cb8bb2054a9d958f1c47d9d251c91da96a59b..b3ab9eda04e516ca0afc4532dbe99826140db9ae 100644 (file)
@@ -1,17 +1,17 @@
 /*
- * Copyright 2005 the original author or authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
+ * Copyright 2005-2010 the original author or authors.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
  * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
  */
 package org.wamblee.xml;
 
@@ -85,9 +85,8 @@ public class XslTransformer {
                 } catch (IOException e) {
                     throw new TransformerException(e.getMessage(), e);
                 }
-            } else {
-                throw new TransformerException("Cannot read '" + aXslt + "'");
             }
+            throw new TransformerException("Cannot read '" + aXslt + "'");
         }
 
         return resolver.resolve(aXslt, "");