Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-44036

Update Apache commons-text 1.9 & commons-lang 3.11

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: RESOLVED
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 19.5
    • Fix Version/s: 21.0 [Tentative]
    • Component/s: Master
    • Labels:
      None
    • Test Plan:

      Description

      commons-lang 3.11:

      New features:
      o Add ArrayUtils.isSameLength() to compare more array types #430. Thanks to XenoAmess, Gary Gregory.
      o Added the Locks class as a convenient possibility to deal with locked objects.
      o LANG-1568: Add to Functions: FailableBooleanSupplier, FailableIntSupplier, FailableLongSupplier, FailableDoubleSupplier, and so on.
      o LANG-1569: Add ArrayUtils.get(T[], index, T) to provide an out-of-bounds default value.
      o LANG-1570: Add JavaVersion enum constants for Java 14 and 15. #553. Thanks to Edgar Asatryan.
      o Add JavaVersion enum constants for Java 16. Thanks to Gary Gregory.
      o LANG-1556: Use Java 8 lambdas and Map operations. Thanks to XenoAmess.
      o LANG-1565: Change removeLastFieldSeparator to use endsWith #550. Thanks to XenoAmess.
      o LANG-1557: Change a Pattern to a static final field, for not letting it compile each time the function invoked. #542. Thanks to XenoAmess, Gary Gregory.
      o Add ImmutablePair factory methods left() and right().
      o Add ObjectUtils.toString(Object, Supplier<String>).
      o Add org.apache.commons.lang3.StringUtils.substringAfter(String, int).
      o Add org.apache.commons.lang3.StringUtils.substringAfterLast(String, int).

      Fixed Bugs:
      o Fix Javadoc for StringUtils.appendIfMissingIgnoreCase() #507. Thanks to contextshuffling.
      o LANG-1560: Refine Javadoc #545. Thanks to XenoAmess.
      o LANG-1554: Fix typos #539. Thanks to XenoAmess.
      o LANG-1555: Ignored exception `ignored`, should not be called so #540. Thanks to XenoAmess.
      o LANG-1528: StringUtils.replaceEachRepeatedly gives IllegalStateException #505. Thanks to Edwin Delgado H.
      o LANG-1543: [JSON string for maps] ToStringBuilder.reflectionToString doesnt render nested maps correctly. Thanks to Swaraj Pal, Wander Costa, Gary Gregory.
      o Correct Javadocs of methods that use Validate.notNull() and replace some uses of Validate.isTrue() with Validate.notNull(). #525. Thanks to Isira Seneviratne.
      o LANG-1539: Add allNull() and anyNull() methods to ObjectUtils. #522. Thanks to Isira Seneviratne.

      Changes:
      o Refine test output for FastDateParserTest Thanks to Jin Xu.
      o LANG-1549: CharSequenceUtils.lastIndexOf : remake it Thanks to Jin Xu.
      o remove encoding and docEncoding and use inherited values from commons-parent Thanks to XenoAmess.
      o Simplify null checks in Pair.hashCode() using Objects.hashCode(). #517. Thanks to Isira Seneviratne, Bruno P. Kinoshita.
      o Simplify null checks in Triple.hashCode() using Objects.hashCode(). #516. Thanks to Isira Seneviratne, Bruno P. Kinoshita.
      o Simplify some if statements in StringUtils. #521. Thanks to Isira Seneviratne, Bruno P. Kinoshita.
      o LANG-1537: Simplify a null check in the private replaceEach() method of StringUtils. #514. Thanks to Isira Seneviratne, Bruno P. Kinoshita.
      o LANG-1534: Replace some usages of the ternary operator with calls to Math.max() and Math.min() #512. Thanks to Isira Seneviratne, Bruno P. Kinoshita.
      o (Javadoc) Fix return tag for throwableOf*() methods #518. Thanks to Arend v. Reinersdorff, Bruno P. Kinoshita.
      o LANG-1545: CharSequenceUtils.regionMatches is wrong dealing with Georgian. Thanks to XenoAmess, Gary Gregory.
      o LANG-1550: Optimize ArrayUtils::isArrayIndexValid method. #551. Thanks to Edgar Asatryan.
      o LANG-1561: Use List.sort instead of Collection.sort #546. Thanks to XenoAmess.
      o LANG-1563: Use StandardCharsets.UTF_8 #548. Thanks to XenoAmess.
      o LANG-1564: Use Collections.singletonList insteadof Arrays.asList when there be only one element. #549. Thanks to XenoAmess.
      o LANG-1553: Change array style from `int a[]` to `int[] a` #537. Thanks to XenoAmess.
      o LANG-1552: Change from addAll to constructors for some List #536. Thanks to XenoAmess.
      o LANG-1558: Simplify if as some conditions are covered by others #543. Thanks to XenoAmess.
      o LANG-1567: Fixed Javadocs for setTestRecursive() #556. Thanks to Miguel Muñoz, Bruno P. Kinoshita, Gary Gregory.
      o LANG-1542: ToStringBuilder.reflectionToString - Wrong JSON format when object has a List of Enum. Thanks to Tr?n Ng?c Khoa, Gary Gregory.
      o Make org.apache.commons.lang3.CharSequenceUtils.toCharArray(CharSequence) public.
      o org.apache.commons:commons-parent 50 -> 51.
      o org.junit-pioneer:junit-pioneer 0.5.4 -> 0.6.0.
      o org.junit.jupiter:junit-jupiter 5.6.0 -> 5.6.2.
      o com.github.spotbugs:spotbugs 4.0.0 -> 4.0.6.
      o com.puppycrawl.tools:checkstyle 8.29 -> 8.34.
      o commons.surefire.version 3.0.0-M4 -> 3.0.0-M5..

       

      Release Text 1.9 – 2020-07-21
      Type Changes By
      Fix Removed non-existing parameter from Javadocs and spelled out parameters in throws. Fixes TEXT-166. Thanks to Mikko Maunu. kinow
      Fix StringEscapeUtils.unescapeCsv doesn't remove quotes at begin and end of string. Fixes TEXT-149. Thanks to Yuji Konishi. kinow
      Fix ScriptStringLookup does not accept ":" #126. Fixes TEXT-174. Thanks to furkilic. ggregory
      Fix StringSubstitutor incorrectly removes some escape characters. Fixes TEXT-178. Thanks to Gary Gregory. ggregory
      Fix Fix Javadocs #135. Fixes TEXT-181. Thanks to XenoAmess. ggregory
      Fix Fix typos #137. Fixes TEXT-182. Thanks to XenoAmess. ggregory
      Fix Make ConstantStringLookup.constantCache final #136. Fixes TEXT-183. Thanks to XenoAmess. ggregory
      Fix Simplify if in CaseUtils #134. Fixes TEXT-184. Thanks to XenoAmess. ggregory
      Update [javadoc] Fix compiler warnings in Java code example in Javadoc #124. Thanks to Johan Hammar. ggregory
      Update Update from Apache Commons Lang 3.9 to 3.11. Fixes TEXT-177. Thanks to Gary Gregory. ggregory
      Add Add StringMatcher.size(). Thanks to Gary Gregory. ggregory
      Add Refactor TextStringBuilder.readFrom(Readable), extracting readFrom(CharBuffer) and readFrom(Reader). Thanks to Gary Gregory. ggregory
      Add Add BiStringLookup and implementation BiFunctionStringLookup. Thanks to Gary Gregory. ggregory
      Add Add org.apache.commons.text.StringSubstitutor.StringSubstitutor(StringSubstitutor). Thanks to Gary Gregory. ggregory
      Add Add org.apache.commons.text.TextStringBuilder.TextStringBuilder(CharSequence). Thanks to Gary Gregory. ggregory
      Add Add org.apache.commons.text.TextStringBuilder.drainChar(int). Thanks to Gary Gregory. ggregory
      Add Add org.apache.commons.text.TextStringBuilder.drainChars(int, int, char[]. int). Thanks to Gary Gregory. ggregory
      Add Add org.apache.commons.text.TextStringBuilder.isNotEmpty(). Thanks to Gary Gregory. ggregory
      Add Add org.apache.commons.text.TextStringBuilder.isReallocated(). Thanks to Gary Gregory. ggregory
      Add Add org.apache.commons.text.TextStringBuilder.readFrom(Reader, int). Thanks to Gary Gregory. ggregory
      Add Add org.apache.commons.text.TextStringBuilder.set(String). Thanks to Gary Gregory. ggregory
      Add Add org.apache.commons.text.TextStringBuilder.wrap(char[]). Thanks to Gary Gregory. ggregory
      Add Add org.apache.commons.text.TextStringBuilder.wrap(char[], int). Thanks to Gary Gregory. ggregory
      Add Add org.apache.commons.text.io.StringSubstitutorReader. Thanks to Gary Gregory. ggregory
      Add Add org.apache.commons.text.lookup.StringLookupFactory.functionStringLookup(Function<String, V>). Thanks to Gary Gregory. ggregory
      Add Add org.apache.commons.text.matcher.StringMatcher.isMatch(CharSequence, int). Thanks to Gary Gregory. ggregory
      Add Add org.apache.commons.text.matcher.StringMatcher.isMatch(CharSequence, int, int, int). Thanks to Gary Gregory. ggregory
      Add Add org.apache.commons.text.matcher.StringMatcherFactory.andMatcher(StringMatcher...). Thanks to Gary Gregory. ggregory
      Add Add org.apache.commons.text.matcher.StringMatcherFactory.stringMatcher(char...). Thanks to Gary Gregory. ggregory
      Update [build] Skip clirr since we use JApiCmp. Thanks to Gary Gregory. ggregory
      Update [test] junit-jupiter 5.5.1 -> 5.5.2. Thanks to Gary Gregory. ggregory
      Update [test] org.assertj:assertj-core 3.13.2 -> 3.16.1. Thanks to Gary Gregory. ggregory
      Update [build] com.puppycrawl.tools:checkstyle 8.23 -> 8.34. Thanks to Gary Gregory. ggregory
      Update [build] Update JUnit from 5.5.2 to 5.6.2. Thanks to Gary Gregory. ggregory
      Update [build] commons.jacoco.version 0.8.4 -> 0.8.5. Thanks to Gary Gregory. ggregory
      Update [build] commons.javadoc.version 3.1.1 -> 3.2.0. Thanks to Gary Gregory. ggregory
      Update [build] commons.japicmp.version 0.14.1 -> 0.14.3. Thanks to Gary Gregory. ggregory
      Update [build] checkstyle.plugin.version 3.1.0 -> 3.1.1. Thanks to Gary Gregory. ggregory
      Update [build] checkstyle.version 8.27 -> 8.33. Thanks to Gary Gregory. ggregory
      Update [build] org.apache.commons:commons-parent 48 -> 51. Thanks to Gary Gregory. ggregory
      Update [build] maven-pmd-plugin 3.12.0 -> 3.13.0. Thanks to Gary Gregory. ggregory
      Update [build] org.mockito 3.3.3 -> 3.4.4. Thanks to Gary Gregory. ggregory

        Gliffy Diagrams

          Zeplin

            Attachments

              Activity

                People

                Assignee:
                dhorwitz David Horwitz
                Reporter:
                dhorwitz David Horwitz
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Git Integration