You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by el...@apache.org on 2020/07/10 12:28:59 UTC

[maven-war-plugin] branch close updated: curly braces

This is an automated email from the ASF dual-hosted git repository.

elharo pushed a commit to branch close
in repository https://gitbox.apache.org/repos/asf/maven-war-plugin.git


The following commit(s) were added to refs/heads/close by this push:
     new f492e7f  curly braces
f492e7f is described below

commit f492e7f83e1de655af73fcdc4517bdc0344672eb
Author: Elliotte Rusty Harold <el...@ibiblio.org>
AuthorDate: Fri Jul 10 08:27:17 2020 -0400

    curly braces
---
 src/main/java/org/apache/maven/plugins/war/WarMojo.java | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/maven/plugins/war/WarMojo.java b/src/main/java/org/apache/maven/plugins/war/WarMojo.java
index 523a145..3dda4c9 100644
--- a/src/main/java/org/apache/maven/plugins/war/WarMojo.java
+++ b/src/main/java/org/apache/maven/plugins/war/WarMojo.java
@@ -314,10 +314,12 @@ public class WarMojo
             urls[i] = new File( classpathElements.get( i ) ).toURI().toURL();
         }
         URLClassLoader loader = new URLClassLoader( urls, Thread.currentThread().getContextClassLoader() );
-        try {
+        try
+        {
             return hasWebServletAnnotationClassInClasspath( loader );
         }
-        finally {
+        finally
+        {
             try
             {
                 loader.close();