You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ki...@apache.org on 2021/12/02 03:17:09 UTC

[commons-text] branch master updated (a48e698 -> 1a59906)

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

kinow pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/commons-text.git.


    from a48e698  Prevent build failure due to DCN_NULLPOINTER_EXCEPTION (code suppressed is expected to catch null)
     new 0f74cc6  Bump checkstyle from 9.1 to 9.2
     new 1a59906  Ignore SpotBugs DCN_NULLPOINTER_EXCEPTION since the two lookup methods are catching NPE to return null

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 pom.xml                     |  2 +-
 spotbugs-exclude-filter.xml | 14 ++++++++++++++
 src/changes/changes.xml     |  2 +-
 3 files changed, 16 insertions(+), 2 deletions(-)

[commons-text] 02/02: Ignore SpotBugs DCN_NULLPOINTER_EXCEPTION since the two lookup methods are catching NPE to return null

Posted by ki...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 1a5990635f2a0a31da2850ed1cb955b86b5f1d8e
Author: Bruno P. Kinoshita <ki...@users.noreply.github.com>
AuthorDate: Thu Dec 2 15:56:48 2021 +1300

    Ignore SpotBugs DCN_NULLPOINTER_EXCEPTION since the two lookup methods are catching NPE to return null
---
 spotbugs-exclude-filter.xml | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/spotbugs-exclude-filter.xml b/spotbugs-exclude-filter.xml
index 4308a2b..4a228ac 100644
--- a/spotbugs-exclude-filter.xml
+++ b/spotbugs-exclude-filter.xml
@@ -52,4 +52,18 @@
     <Method name="lookup" />
     <Bug code="DCN_NULLPOINTER_EXCEPTION" />
   </Match>
+
+  <!-- BiFunctionStringLookup#lookup catches NPE to return null -->
+  <Match>
+    <Class name="org.apache.commons.text.lookup.BiFunctionStringLookup" />
+    <Method name="lookup" />
+    <Bug code="DCN_NULLPOINTER_EXCEPTION" />
+  </Match>
+
+  <!-- FunctionStringLookup#lookup catches NPE to return null -->
+  <Match>
+    <Class name="org.apache.commons.text.lookup.FunctionStringLookup" />
+    <Method name="lookup" />
+    <Bug code="DCN_NULLPOINTER_EXCEPTION" />
+  </Match>
 </FindBugsFilter>

[commons-text] 01/02: Bump checkstyle from 9.1 to 9.2

Posted by ki...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 0f74cc60628bb2db3218ae170d70323af8c2897b
Author: dependabot[bot] <49...@users.noreply.github.com>
AuthorDate: Wed Dec 1 20:18:43 2021 +0000

    Bump checkstyle from 9.1 to 9.2
    
    Bumps [checkstyle](https://github.com/checkstyle/checkstyle) from 9.1 to 9.2.
    - [Release notes](https://github.com/checkstyle/checkstyle/releases)
    - [Commits](https://github.com/checkstyle/checkstyle/compare/checkstyle-9.1...checkstyle-9.2)
    
    ---
    updated-dependencies:
    - dependency-name: com.puppycrawl.tools:checkstyle
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <su...@github.com>
---
 pom.xml                 | 2 +-
 src/changes/changes.xml | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/pom.xml b/pom.xml
index 5afb856..24d183f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -48,7 +48,7 @@
     <commons.scmPubCheckoutDirectory>site-content</commons.scmPubCheckoutDirectory>
 
     <checkstyle.plugin.version>3.1.2</checkstyle.plugin.version>
-    <checkstyle.version>9.1</checkstyle.version>
+    <checkstyle.version>9.2</checkstyle.version>
 
     <spotbugs.plugin.version>4.5.0.0</spotbugs.plugin.version>
     <spotbugs.impl.version>4.5.0</spotbugs.impl.version>
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index edfb9c3..fc5bac2 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -70,7 +70,7 @@ The <action> type attribute can be add,update,fix,remove.
     <action issue="TEXT-185" type="add" dev="ggregory" due-to="Larry West, Gary Gregory">Release Notes page hasn't been updated for 1.9 release yet.</action>
     <action                  type="add" dev="ggregory" due-to="Gary Gregory">Add StrBuilder.isNotEmpty().</action>
     <!-- UPDATE -->
-    <action                  type="update" dev="ggregory" due-to="Dependabot">Update checkstyle from 8.34 to 9.1, #141, #168, #182, #188, #193, #201, #208, #211, #228, #235, #245, #253, #255, #262, #270, #280.</action>
+    <action                  type="update" dev="ggregory" due-to="Dependabot">Update checkstyle from 8.34 to 9.2, #141, #168, #182, #188, #193, #201, #208, #211, #228, #235, #245, #253, #255, #262, #270, #280, #287.</action>
     <action                  type="update" dev="ggregory" due-to="Gary Gregory, Dependabot">Bump spotbugs-maven-plugin from 4.0.0 to 4.5.0.0, #144, #150, #167, #176, #194, #210, #223, #250, #268, #273, #277, #278, #286.</action>
     <action                  type="update" dev="ggregory" due-to="Dependabot">Update mockito-inline from 3.4.4 to 4.1.0, #143 #148 #149 #152 #153 #154 #158 #159 #166 #177 #180 #187 #195 #197 #207 #216 #231 #236 #237 #243 #258 #259 #260 #261 #272 #285.</action>
     <action                  type="update" dev="kinow" due-to="Dependabot">Bump junit-jupiter from 5.6.2 to 5.8.1 #163 #204 #232 #265 #269.</action>