From 610caab590fe224c02c8f509431f6428fe8e1063 Mon Sep 17 00:00:00 2001 From: pascalschumacher Date: Mon, 1 May 2017 11:08:10 +0200 Subject: [PATCH] LANG-1307: Add getDigits method to StringUtils add since javadoc tag and changes.xml entry --- src/changes/changes.xml | 1 + src/main/java/org/apache/commons/lang3/StringUtils.java | 1 + 2 files changed, 2 insertions(+) diff --git a/src/changes/changes.xml b/src/changes/changes.xml index a679df86d..6c3957aa9 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -46,6 +46,7 @@ The type attribute can be add,update,fix,remove. + Add a method in StringUtils to extract only digits out of input string Implement HashSetvBitSetTest using JMH Add JMH maven dependencies Add null filter to ReflectionToStringBuilder diff --git a/src/main/java/org/apache/commons/lang3/StringUtils.java b/src/main/java/org/apache/commons/lang3/StringUtils.java index 6ab111810..cf398d1b6 100644 --- a/src/main/java/org/apache/commons/lang3/StringUtils.java +++ b/src/main/java/org/apache/commons/lang3/StringUtils.java @@ -7176,6 +7176,7 @@ public class StringUtils { * @return String with only digits, * or an empty ("") String if no digits found, * or {@code null} String if {@code str} is null + * @since 3.6 */ public static String getDigits(final String str) { if (isEmpty(str)) {