You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2022/06/02 10:05:11 UTC

[commons-text] branch master updated: Update comment and rename exception variable to skip PMD check here

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-text.git


The following commit(s) were added to refs/heads/master by this push:
     new 8f6bd599 Update comment and rename exception variable to skip PMD check here
8f6bd599 is described below

commit 8f6bd599310e39663116c6ec9eb86654f6b50970
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Jun 2 06:05:06 2022 -0400

    Update comment and rename exception variable to skip PMD check here
---
 src/main/java/org/apache/commons/text/StrLookup.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/commons/text/StrLookup.java b/src/main/java/org/apache/commons/text/StrLookup.java
index b49a2a2a..2220be26 100644
--- a/src/main/java/org/apache/commons/text/StrLookup.java
+++ b/src/main/java/org/apache/commons/text/StrLookup.java
@@ -134,8 +134,8 @@ public abstract class StrLookup<V> implements StringLookup {
             if (!key.isEmpty()) {
                 try {
                     return System.getProperty(key);
-                } catch (final SecurityException scex) {
-                    // Squelched. All lookup(String) will return null.
+                } catch (final SecurityException ignored) {
+                    // Noop: All lookup(String) will return null.
                 }
             }
             return null;