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

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-release-plugin.git


The following commit(s) were added to refs/heads/master by this push:
     new 80375b7  Use final.
80375b7 is described below

commit 80375b75133ee8f12c65cbf9e2963e5e6ed60cd0
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sat Mar 12 13:25:27 2022 -0500

    Use final.
---
 .../release/plugin/mojos/CommonsDistributionDetachmentMojo.java       | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionDetachmentMojo.java
 
b/src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionDetachmentMojo.java
index 5d6d4ae..67fd179 100755
--- 
a/src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionDetachmentMojo.java
+++ 
b/src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionDetachmentMojo.java
@@ -140,14 +140,14 @@ public class CommonsDistributionDetachmentMojo extends 
AbstractMojo {
             // Maven 3.8.3 throws an exception here because 
MavenProject.getAttachedArtifacts()
             // returns an IMMUTABLE collection.
             project.getAttachedArtifacts().removeAll(detachedArtifacts);
-        } catch (UnsupportedOperationException e) {
+        } catch (final UnsupportedOperationException e) {
             // (2) HACK workaround for 
https://issues.apache.org/jira/browse/MNG-7316
             final ArrayList<Artifact> arrayList = new 
ArrayList<>(project.getAttachedArtifacts());
             arrayList.removeAll(detachedArtifacts);
             try {
                 // MavenProject#setAttachedArtifacts(List) is protected
                 MethodUtils.invokeMethod(project, true, 
"setAttachedArtifacts", arrayList);
-            } catch (ReflectiveOperationException roe) {
+            } catch (final ReflectiveOperationException roe) {
                 throw new MojoExecutionException(roe);
             }
         }

Reply via email to