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 2020/07/21 20:22:40 UTC
[commons-text] branch release updated (d830d57 -> 248d143)
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a change to branch release
in repository https://gitbox.apache.org/repos/asf/commons-text.git.
from d830d57 Bump to next development version
add d66f426 Update spotbugs-maven-plugin to version 3.1.12.2.
add 60ebc73 Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-text
add 9ba9892 Add support for GitHub CI build through GitHub "Actions".
add 56944e4 [test] junit-jupiter 5.5.1 -> 5.5.2.
add c64008e com.puppycrawl.tools:checkstyle 8.23 -> 8.24.
add 8820207 Enforce SpotBugs.
add b3bffa2 Do not run spotbugs twice on Travis CI. Spotbugs is already executed in the main build, do not run it again in the "after_success" part.
add aeccdea More lambdas, less boilerplate.
add d81eb76 Fix checkstyle violation.
add 9879038 Travis CI: Drop Java 12 build (Java 13 is now Generally Available).
add 415bc31 [TEXT-166] removed non-existing parameter from Javadocs and spelled out parameters in throws
add 0e1d376 [TEXT-166] add changes.xml entry
add 46f4cb1 Merge branch 'pr-121'
add 5640de0 TEXT-149: StringEscapeUtils.unescapeCsv doesn't remove quotes at begin and end of string
add fefedb8 TEXT-149: Remove redundant toString().
add f501c44 TEXT-149: add changes.xml entry
add 15abbfa Merge branch 'pr-119'
add 5c958f2 (doc) Fix compiler warnings in Java code example in Javadoc (#124)
add 49b95ec (doc) Fix compiler warnings in Java code example in Javadoc #124.
add 89f9321 - checkstyle.plugin.version 3.0.0 -> 3.1.0. - checkstyle.version 8.24 -> 8.25.
add ec07cf4 Typos.
add 8e31edf Drop Subversion Id keywords.
add 957a6b5 [test] org.assertj:assertj-core 3.13.2 -> 3.14.0.
add 661d8e0 [build] com.puppycrawl.tools:checkstyle 8.25 -> 8.26.
add 0dfe963 Javadoc: Replace <code></code> HTML tags with Javadoc {@code} notation.
add 52f2cc7 Better local variable names.
add 548d2dc Better local param name.
add 2da8175 Close HTML tags.
add 6d48016 Better param name.
add 8ed430b Better param name.
add daf6a09 Sort members.
add 3a343f4 Remove noisy separator // -- comments.
add b333b25 Remove noisy separator // -- comments.
add eb11cc4 Sort members.
add f9ff638 Format tweaks.
add c1337bd Checktyle line length 120.
add a0f57eb Checkstyle: Remove trailing white spaces on all lines.
add a31425b [build] com.puppycrawl.tools:checkstyle 8.26 -> 8.27.
add 4533dde Clean up.
add 969da99 Remove // -----------------------------------------------------------------------
add 25c71b4 Close paragraph tags.
add 8ebaecb Javadoc.
add 282e4aa Remove unnecessary array creation for varargs.
add e72bec3 Checkstyle line length.
add 2e8f42f Text 174: ScriptStringLookup does not accept ":" (#126)
add a5c2f4d [TEXT-174] ScriptStringLookup does not accept ":" #126.
add b7052a2 UrlStringLookup: Close InputStream even if the InputStreamReader constructor throws an exception.
add 0f58ab2 CosineSimilarity#dot: Avoid potential overflow in int multiplication.
add a341633 AlphabetConverter#decode: Use int instead of Integer for local variable that can never be null.
add 69903e2 A few more tests.
add c804b49 Remove trailing whitespace.
add ed7b3a5 Javadoc: Remove whitespace.
add c18d988 Better toString() to match others.
add dc137f1 Fix Checktyle error.
add df366cf - Update NOTICE copyright. - Update JUnit from 5.5.2 to 5.6.0. - Update assertj-core from 3.14.0 to 3.15.0.
add 38993c3 Update Spotbugs Maven Plugin to version 4.0.0.
add 700f7db Replace Java 12 and 13 builds with Java 14.
add d27000e [TEXT-177] Update from Apache Commons Lang 3.9 to 3.10.
add bd039a4 Standardize on American English spelling of 'behavior'.
add b24c109 [build] Update JUnit from 5.6.0 to 5.6.1.
add 5bdffcd Use Map API directly.
add ea03fa0 adding oraclejdk11 for tests (#131)
add 842a088 Test major Java versions with GitHub actions as documented on https://github.com/actions/setup-java
add 3b26d4c Update org.assertj:assertj-core 3.15.0 -> 3.16.1.
add 859f399 Set commons.bc.version to 1.8.
add a485c2b Update dependencies.
add 7b8f135 Update dependencies.
add c5b4833 Update dependencies.
add 617780c Checktyle: Use LF EOL in repo.
add bd2c4b4 [build] org.apache.commons:commons-parent 48 -> 51.
add 269687a Add helper to see what ScriptEngineFactory are the classpath.
add 6a1e046 Better names.
add 2fef3a7 Let other tests subclass with a different implementation.
add ed13776 Checktyle.
add 18ef767 Add StringMatcherFactoryTest.
add de6b2c5 Add org.apache.commons.text.matcher.StringMatcher.size().
add 509070e Refactor org.apache.commons.text.TextStringBuilder.readFrom(Readable) to split out overrides.
add 3c8969c Refactor org.apache.commons.text.TextStringBuilder.readFrom(Readable) to split out overrides.
add ece4da7 Refactor org.apache.commons.text.TextStringBuilder.readFrom(Readable), extracting readFrom(CharBuffer) and readFrom(Reader).
add 4afbb38 Remove trailing whitespace.
add b025633 Javadoc.
add c896bea Upgrades (#133)
add 0605269 Allow for subclassing.
add e4f389d Fewer magic strings.
add 19208bb Small refactoring.
add b57ac52 Small refactoring.
add 6d3f297 Javadoc.
add 2589099 Add commented out code for possible inclusion.
add 6304bd1 Javadoc.
add 252e0d7 Javadoc.
add f96d609 Checkstyle.
add 7cb739c Javadoc.
add 293384d Use Math.max().
add 212e62a Move isMatch(char[], int) from the package private AbstractStringMatcher to the public StringMatcher.
add 236bd58 Make parameter final.
add 2b1f1a2 Add isMatch(CharSequence, int)
add 70c645a Javadoc.
add 306c368 Add isMatch(CharSequence, int)
add 4152250 Add isMatch(CharSequence, int)
add e46cd90 Sort members.
add 93b8a08 No need to create a new size 0 char[] each time one is needed.
add 37a7cc2 Tweak toString();
add 2cf2f6d Javadoc.
add c60d835 Reuse Objects.toString().
add 903e40e Reuse StringUtils.substringAfter().
add 06a4648 Sort members.
add a34ccac Add org.apache.commons.text.lookup.StringLookupFactory.functionStringLookup(Function<String, V>).
add bb9b4e8 Add org.apache.commons.text.lookup.StringLookupFactory.functionStringLookup(Function<String, V>).
add 13d673a Annotate StringLookup as a FunctionalInterface.
add cec7345 Use factory class. Checkstyle. Add factory method.
add b0495d8 Replace internal MapStringLookup with FunctionStringLookup.
add 358f703 Replace internal SystemPropertyStringLookup with a FunctionStringLookup.
add d0e9ad7 Replace internal NullStringLookup with a FunctionStringLookup.
add 4499606 Replace internal EnvironmentVariableLookup with a FunctionStringLookup. Checkstyle.
add 758bb88 Replace internal Base64DecoderStringLookup and Base64EncoderStringLookup with a FunctionStringLookup. Checkstyle.
add c9aa25e Sort members.
add 3810da4 Use try-with-resources.
add 1c964bc Simplify tests by reusing factory method.
add 358afce Checkstyle.
add 54abd28 Add BiStringLookup and implementation BiFunctionStringLookup.
add d0adfa6 Comment.
add bb204fd Checkstyle.
add 3a4f2d2 Add sanity check.
add 2098abc Checkstyle.
add 7bb4406 Javadoc.
add ccd4bc1 Javadoc.
add cc79d10 Javadoc.
add bc77f71 Javadoc.
add 4430442 Javadoc.
add 0a5c794 Checkstyle.
add a9a52a0 Javadoc.
add 95f2c20 Javadoc.
add 87d33b6 Follow method's patterrn.
add eb15fef Checkstyle.
add c7ae932 Follow method's patterrn.
add 28293bd Early null check.
add f50889a Encapsulate but keep package private.
add 719a0ef Reuse JRE.
add c2b4503 Reuse JRE.
add 4258c75 Reuse JRE.
add da668c8 Reuse JRE.
add d9e675e Reuse JRE.
add c20f3a4 Small refactoring of common code.
add 10d40b7 Javadoc.
add a4701a9 Format tweak.
add 78718b5 Rename internal classes for consistency.
add fb7c75f Javadoc.
add f4e32f0 Sort members.
add acf5e1b Add Add org.apache.commons.text.TextStringBuilder.toString(int, int).
add 1423f88 Better impl.
add 71796f3 Refactor SpotBugs implementation version into spotbugs.impl.version. Add test dep on Commons IO for convenience.
add ef28d14 Separate concerns of index validation and index fitting which also fixes SpotBugs issues. Thanks to Rob Tompkins.
add d57ae18 Add org.apache.commons.text.TextStringBuilder.readFrom(Reader, int).
add 2d0a14f More testing.
add 6a01d97 Reuse index validation method.
add 34ce3a4 Checkstyle.
add 2599966 Simpler lambdas.
add 7a1a8a8 Simpler lambdas.
add e536c55 Slightly simpler.
add d1e57e0 Format.
add 02a53b9 Javadoc.
add 709138b Add org.apache.commons.text.TextStringBuilder.charAtDelete(int).
add 5791829 Use 'target' instead of 'destination'.
add 6e0811c Don't overwrite parameter value.
add ae697bc Split test method.
add 36b9101 Split test method.
add 06574de Split test method.
add 5986774 More tests.
add aa55c44 Split test method.
add a22e4da More tests.
add df38b3c Sort members.
add d48c65c Add org.apache.commons.text.TextStringBuilder.TextStringBuilder(CharSequence).
add bcc6d3c com.puppycrawl.tools:checkstyle 8.33 -> 8.34.
add 119f19d Rename some tests, add some tests.
add 36af8b1 Reimplement hashCode() and equals() using JRE APIs.
add d98f487 Checktyle.
add 258ebc4 Add org.apache.commons.text.matcher.StringMatcherFactory.stringMatcher(char...) .
add 9447958 Reuse ArrayUtils.isEmpty(chars).
add 86c29d8 Checkstyle.
add 995b42e More tests.
add dc640d1 More tests.
add 64731e5 Sort members.
add f6d449e Organise imports.
add 8ecb6f6 Organise imports.
add f347208 Sort members.
add c23a930 Sort members.
add ea94081 More tests.
add 507b214 More tests.
add b219b93 Sort members.
add 3d57106 Make internal API null-safe and Javadoc.
add f0315aa Add comments.
add 68faeec Reuse Commons Lang.
add a35c54f Add org.apache.commons.text.TextStringBuilder.wrap(char[]).
add 1b59b4b Add org.apache.commons.text.TextStringBuilder.wrap(char[], int).
add 248af06 Resue builder APIs for cleaner separation.
add e0e07f9 Remove some inline comments.
add 3ac1bb5 Add org.apache.commons.text.StringSubstitutor.StringSubstitutor(StringSubstitutor).
add a6eead2 Javadoc.
add 84f0b2e Add org.apache.commons.text.TextStringBuilder.isReallocated().
add a14cca1 Simplify by reusing own methods.
add 0bb289b Better tests.
add 5326ddb More tests.
add b44957c Simplify by reusing own methods.
add 4fadc3c Use mocks instead of custom code to verify API calls.
add d08fece Use mocks instead of custom code to verify API calls.
add 17f89fa [build] maven-pmd-plugin 3.12.0 -> 3.13.0.
add de65326 [build] Update JUnit from 5.6.1 to 5.6.2.
add a9da909 Order.
add 361f7aa Javadoc.
add b26dad0 Javadoc tweak.
add 48185ff Use assertThrows() instead of boilerpate over and over.
add 83ea37a Use assertArrayEquals().
add 2f3a058 Use assertArrayEquals().
add 9229acf Add org.apache.commons.text.TextStringBuilder.set(String)
add c0787ea Refactor internal constant.
add ab3c76b Return -1 when we start with a reader at end-of-stream.
add e1de65b Test some edge cases.
add abb3ebf Reuse StringUtils. Use ternary return.
add 4040a80 Javadoc.
add 654ab1b Comment out writing to the console in tests.
add 96fdd3c More tests.
add e245913 More tests.
add ef83699 [TEXT-178] StringSubstitutor incorrectly removes some escape characters.
add 375fd85 [TEXT-178] StringSubstitutor incorrectly removes some escape characters.
add 1242858 Make it easier to subclass and compose StringSubstitutor.
add 23dac51 Workaround for https://github.com/siom79/japicmp/issues/265
add 12e02f3 Checkstyle.
add 27e6efa More tests.
add 1eab1ad Better internal method names.
add c78306c Drop Java 12 and 13 from GitHub actions. Keep latest 14.
add 5321ded Oops, disable testReplaceWeirdPattensJiraText178.
add 0a2a736 More tests.
add da87e5c More tests.
add 7ce34dd Refactor test.
add 4cf7d20 More tests.
add 3b20166 More tests.
add 7aaef9e More tests.
add 0603c3a More tests.
add 1315571 More tests.
add b64446f Add org.apache.commons.text.matcher.StringMatcherFactory.andMatcher(StringMatcher...).
add 1a2d493 Use final.
add f0b0055 Rename new method.
add 60dda7b Improve Javadoc.
add 4e38d38 Improve Javadoc.
add f2af242 Internal changes: use a char matcher when matching a length 1 string.
add acee2ce Create the best kind of matcher.
add a230ed5 More tests.
add 56972a8 [TEXT-178] StringSubstitutor incorrectly removes some escape characters.
add c5145b7 Update Apache Commons Lang from 3.10 to 3.11.
add 2c38410 Update site for the next release.
add 4177899 Increase code coverage.
add a839f95 100% code coverage for org.apache.commons.text.matcher.
add d0a615d Increase code coverage.
add 24d4397 Increase code coverage. Checkstyle.
add b33ce41 Increase code coverage.
add 60f0057 [build] org.mockito:mockito-core 3.3.3 -> 3.4.3.
add 96c5873 Increase code coverage.
add 4b4d6fa 100% code coverage for org.apache.commons.text.lookup.
add 09cc871 Add org.apache.commons.text.io.StringSubstitutorReader.
add f52ce26 Checkstyle.
add 305a351 Address empty string edge case.
add d96a3cb Simplify test.
add 587bc9a Another edge case.
add 2c4fd7a More testing.
add 49c3ec0 Another test.
add a89e575 Let drainChars() copy as much as it can within the target's bounds.
add 2ac5d09 More tests, more edge cases.
add 045159b Use empty tests instead of size tests.
add aff500a Increase code coverage.
add 4fda851 Increase code coverage.
add b0a7531 org.mockito 3.3.3 -> 3.4.4
add d36a5fa Move new method to tests since it is only used there is not generally handy.
add e9adb40 fix javadocs (#135)
add 66a1705 Fix Javadocs #135.
add c1a006d [TEXT-183] add final to ConstantStringLookup.constantCache (#136)
add cc58117 [TEXT-183] Make ConstantStringLookup.constantCache final #136.
add 2559593 [TEXT-182] Fix typos (#137)
add af2e6b1 [TEXT-182] Fix typos #137
add e104458 simplify if in CaseUtils (#134)
add c7cafc2 [TEXT-184] Simplify if in CaseUtils #134.
add d983bac Remove new toString(int,int) method in favor of existing midString(int,int).
add 120593b Remove new but unsued protected method.
add 30e7ae8 Refactor magic char.
add b84f314 Fewer magic strings.
add 3e3fb3e Checkstyle: Javadoc.
add de8e66b Fewer magic strings.
add 3e15928 Chnage new drain method name to be similar to other drain method.
add 63b776a Chnage new drain method name to be similar to other drain method.
add e665ff0 Note Java requirement.
add e54f6e5 Use Maven generated changes-report for the release history.
add 6bd6d62 Sort some entries.
add 248d143 Prepare for 1.9-RC1.
No new revisions were added by this update.
Summary of changes:
.../workflows/maven.yml | 24 +-
.travis.yml | 4 +-
NOTICE.txt | 2 +-
README.md | 4 +-
RELEASE-NOTES.txt | 87 +-
checkstyle.xml | 18 +-
pom.xml | 67 +-
src/changes/changes.xml | 66 +-
src/changes/release-notes.vm | 51 +-
.../org/apache/commons/text/AlphabetConverter.java | 11 +-
src/main/java/org/apache/commons/text/Builder.java | 1 +
.../java/org/apache/commons/text/CaseUtils.java | 28 +-
.../org/apache/commons/text/CompositeFormat.java | 2 +-
.../apache/commons/text/ExtendedMessageFormat.java | 39 +-
.../org/apache/commons/text/FormatFactory.java | 4 +-
.../org/apache/commons/text/FormattableUtils.java | 6 +-
.../apache/commons/text/RandomStringGenerator.java | 18 +-
.../java/org/apache/commons/text/StrBuilder.java | 93 +-
.../java/org/apache/commons/text/StrMatcher.java | 901 ++---
.../org/apache/commons/text/StrSubstitutor.java | 2550 ++++++------
.../java/org/apache/commons/text/StrTokenizer.java | 24 +-
.../org/apache/commons/text/StringEscapeUtils.java | 46 +-
.../org/apache/commons/text/StringSubstitutor.java | 2862 ++++++-------
.../org/apache/commons/text/StringTokenizer.java | 21 +-
.../org/apache/commons/text/TextStringBuilder.java | 4212 ++++++++++----------
.../java/org/apache/commons/text/WordUtils.java | 80 +-
.../apache/commons/text/diff/DeleteCommand.java | 2 +-
.../org/apache/commons/text/diff/EditCommand.java | 6 +-
.../org/apache/commons/text/diff/EditScript.java | 2 +-
.../apache/commons/text/diff/InsertCommand.java | 2 +-
.../org/apache/commons/text/diff/KeepCommand.java | 4 +-
.../commons/text/diff/ReplacementsFinder.java | 252 +-
.../commons/text/diff/ReplacementsHandler.java | 4 +-
.../commons/text/diff/StringsComparator.java | 16 +-
.../commons/text/io/StringSubstitutorReader.java | 316 ++
.../commons/text/{lookup => io}/package-info.java | 12 +-
.../commons/text/lookup/AbstractStringLookup.java | 66 +-
.../text/lookup/Base64DecoderStringLookup.java | 69 -
.../text/lookup/Base64EncoderStringLookup.java | 69 -
.../text/lookup/BiFunctionStringLookup.java | 105 +
.../{StringLookup.java => BiStringLookup.java} | 29 +-
.../commons/text/lookup/ConstantStringLookup.java | 44 +-
.../commons/text/lookup/DateStringLookup.java | 188 +-
.../commons/text/lookup/DefaultStringLookup.java | 6 +-
.../lookup/EnvironmentVariableStringLookup.java | 70 -
.../commons/text/lookup/FileStringLookup.java | 7 +-
.../commons/text/lookup/FunctionStringLookup.java | 99 +
.../text/lookup/IllegalArgumentExceptions.java | 119 +-
.../commons/text/lookup/InetAddressKeys.java | 9 +-
.../text/lookup/InterpolatorStringLookup.java | 69 +-
.../text/lookup/JavaPlatformStringLookup.java | 40 +-
.../commons/text/lookup/MapStringLookup.java | 98 -
.../commons/text/lookup/NullStringLookup.java | 47 -
.../text/lookup/PropertiesStringLookup.java | 25 +-
.../text/lookup/ResourceBundleStringLookup.java | 44 +-
.../commons/text/lookup/ScriptStringLookup.java | 23 +-
.../apache/commons/text/lookup/StringLookup.java | 8 +-
.../commons/text/lookup/StringLookupFactory.java | 271 +-
.../text/lookup/SystemPropertyStringLookup.java | 55 -
.../text/lookup/UrlDecoderStringLookup.java | 11 +-
.../text/lookup/UrlEncoderStringLookup.java | 11 +-
.../commons/text/lookup/UrlStringLookup.java | 15 +-
.../commons/text/lookup/XmlStringLookup.java | 16 +-
.../apache/commons/text/lookup/package-info.java | 17 +-
.../text/matcher/AbstractStringMatcher.java | 713 ++--
.../apache/commons/text/matcher/StringMatcher.java | 214 +-
.../commons/text/matcher/StringMatcherFactory.java | 486 +--
.../apache/commons/text/matcher/package-info.java | 51 +-
.../commons/text/similarity/CosineSimilarity.java | 2 +-
.../commons/text/similarity/EditDistance.java | 22 +-
.../apache/commons/text/similarity/FuzzyScore.java | 20 +-
.../text/similarity/IntersectionResult.java | 6 +-
.../text/similarity/JaroWinklerSimilarity.java | 4 +-
.../text/similarity/LongestCommonSubsequence.java | 20 +-
.../LongestCommonSubsequenceDistance.java | 6 +-
.../commons/text/similarity/SimilarityScore.java | 10 +-
.../commons/text/similarity/package-info.java | 2 +-
.../text/translate/CharSequenceTranslator.java | 4 +-
.../commons/text/translate/CsvTranslators.java | 188 +-
.../commons/text/translate/EntityArrays.java | 2 +-
.../commons/text/translate/JavaUnicodeEscaper.java | 14 +-
.../text/translate/NumericEntityEscaper.java | 18 +-
.../text/translate/NumericEntityUnescaper.java | 292 +-
.../text/translate/SinglePassTranslator.java | 116 +-
.../commons/text/translate/UnicodeEscaper.java | 18 +-
src/site/site.xml | 2 +-
src/site/xdoc/developerguide.xml | 3 +-
src/site/xdoc/download_text.xml | 26 +-
src/site/xdoc/index.xml | 6 +-
src/site/xdoc/release-history.xml | 64 -
src/site/xdoc/userguide.xml | 9 +-
.../apache/commons/text/AlphabetConverterTest.java | 200 +-
.../org/apache/commons/text/CaseUtilsTest.java | 23 +-
.../commons/text/CharacterPredicatesTest.java | 88 +-
.../commons/text/ExtendedMessageFormatTest.java | 590 +--
.../apache/commons/text/FormattableUtilsTest.java | 140 +-
.../commons/text/RandomStringGeneratorTest.java | 250 +-
.../commons/text/StrBuilderAppendInsertTest.java | 1133 +++---
.../org/apache/commons/text/StrBuilderTest.java | 2909 +++++++-------
.../org/apache/commons/text/StrLookupTest.java | 80 +-
.../org/apache/commons/text/StrMatcherTest.java | 198 +-
.../apache/commons/text/StrSubstitutorTest.java | 922 ++---
.../org/apache/commons/text/StrTokenizerTest.java | 497 +--
.../apache/commons/text/StringEscapeUtilsTest.java | 768 ++--
.../apache/commons/text/StringSubstitutorTest.java | 734 +++-
...ubstitutorWithInterpolatorStringLookupTest.java | 30 +-
.../apache/commons/text/StringTokenizerTest.java | 506 +--
.../text/TextStringBuilderAppendInsertTest.java | 1247 +++---
.../apache/commons/text/TextStringBuilderTest.java | 2975 +++++++-------
.../org/apache/commons/text/WordUtilsTest.java | 511 +--
.../commons/text/diff/ReplacementsFinderTest.java | 2 +-
.../commons/text/diff/StringsComparatorTest.java | 4 +-
.../text/io/StringSubstitutorFilterReaderTest.java | 257 ++
.../text/lookup/AbstractStringLookupTest.java | 57 +
.../text/lookup/Base64DecoderStringLookupTest.java | 12 +-
.../text/lookup/Base64EncoderStringLookupTest.java | 12 +-
.../text/lookup/BiFunctionStringLookupTest.java | 110 +
...ringLookupTest.java => BiStringLookupTest.java} | 14 +-
.../text/lookup/ConstantStringLookupBasicTest.java | 32 +-
.../text/lookup/ConstantStringLookupTest.java | 11 +-
.../commons/text/lookup/DateStringLookupTest.java | 22 +-
.../text/lookup/DefaultStringLookupTest.java | 18 +-
.../commons/text/lookup/DnsStringLookupTest.java | 8 +-
.../EnvironmentVariableStringLookupTest.java | 14 +-
.../commons/text/lookup/FileStringLookupTest.java | 15 +-
...okupTest.java => FunctionStringLookupTest.java} | 22 +-
.../text/lookup/InterpolatorStringLookupTest.java | 50 +-
.../text/lookup/JavaPlatformStringLookupTest.java | 6 +
.../text/lookup/LocalHostStringLookupTest.java | 17 +-
.../commons/text/lookup/NullStringLookupTest.java | 11 +-
.../text/lookup/PropertiesStringLookupTest.java | 60 +-
.../lookup/ResourceBundleStringLookupTest.java | 46 +-
.../text/lookup/ScriptEngineFactoryHelper.java | 41 +
.../text/lookup/ScriptStringLookupTest.java | 32 +-
.../text/lookup/StringLookupFactoryTest.java | 17 +-
.../lookup/SystemPropertyStringLookupTest.java | 12 +-
.../text/lookup/UrlDecoderStringLookupTest.java | 31 +-
.../text/lookup/UrlEncoderStringLookupTest.java | 26 +-
.../commons/text/lookup/UrlStringLookupTest.java | 22 +-
.../commons/text/lookup/XmlStringLookupTest.java | 23 +-
.../text/matcher/StringMatcherFactoryTest.java | 187 +
.../text/matcher/StringMatcherOnCharArrayTest.java | 363 ++
.../StringMatcherOnCharSequenceStringTest.java | 354 ++
.../commons/text/matcher/StringMatcherTest.java | 219 -
.../text/matcher/StringSubstitutorGetSetTest.java | 18 +-
.../text/similarity/CosineSimilarityTest.java | 9 +-
.../text/similarity/IntersectionResultTest.java | 6 +-
.../similarity/IntersectionSimilarityTest.java | 4 +-
.../text/similarity/LevenshteinDistanceTest.java | 4 +-
.../text/similarity/LevenshteinResultsTest.java | 4 +-
.../LongestCommonSubsequenceDistanceTest.java | 8 +-
.../similarity/LongestCommonSubsequenceTest.java | 6 +-
.../ParameterizedEditDistanceFromTest.java | 7 +-
.../ParameterizedSimilarityScoreFromTest.java | 8 +-
.../text/translate/AggregateTranslatorTest.java | 4 +-
.../text/translate/CodePointTranslatorTest.java | 4 +-
.../commons/text/translate/EntityArraysTest.java | 8 +-
.../text/translate/LookupTranslatorTest.java | 6 +-
.../text/translate/NumericEntityEscaperTest.java | 4 +-
.../text/translate/NumericEntityUnescaperTest.java | 4 +-
.../commons/text/translate/OctalUnescaperTest.java | 4 +-
.../text/translate/SinglePassTranslatorTest.java | 8 +-
.../commons/text/translate/UnicodeEscaperTest.java | 4 +-
.../UnicodeUnpairedSurrogateRemoverTest.java | 4 +-
164 files changed, 17249 insertions(+), 14588 deletions(-)
copy src/test/resources/org/example/testResourceBundleLookup.properties => .github/workflows/maven.yml (64%)
create mode 100644 src/main/java/org/apache/commons/text/io/StringSubstitutorReader.java
copy src/main/java/org/apache/commons/text/{lookup => io}/package-info.java (66%)
delete mode 100644 src/main/java/org/apache/commons/text/lookup/Base64DecoderStringLookup.java
delete mode 100644 src/main/java/org/apache/commons/text/lookup/Base64EncoderStringLookup.java
create mode 100644 src/main/java/org/apache/commons/text/lookup/BiFunctionStringLookup.java
copy src/main/java/org/apache/commons/text/lookup/{StringLookup.java => BiStringLookup.java} (73%)
delete mode 100644 src/main/java/org/apache/commons/text/lookup/EnvironmentVariableStringLookup.java
create mode 100644 src/main/java/org/apache/commons/text/lookup/FunctionStringLookup.java
delete mode 100644 src/main/java/org/apache/commons/text/lookup/MapStringLookup.java
delete mode 100644 src/main/java/org/apache/commons/text/lookup/NullStringLookup.java
delete mode 100644 src/main/java/org/apache/commons/text/lookup/SystemPropertyStringLookup.java
delete mode 100644 src/site/xdoc/release-history.xml
create mode 100644 src/test/java/org/apache/commons/text/io/StringSubstitutorFilterReaderTest.java
create mode 100644 src/test/java/org/apache/commons/text/lookup/AbstractStringLookupTest.java
create mode 100644 src/test/java/org/apache/commons/text/lookup/BiFunctionStringLookupTest.java
copy src/test/java/org/apache/commons/text/lookup/{NullStringLookupTest.java => BiStringLookupTest.java} (74%)
rename src/test/java/org/apache/commons/text/lookup/{MapStringLookupTest.java => FunctionStringLookupTest.java} (64%)
create mode 100644 src/test/java/org/apache/commons/text/lookup/ScriptEngineFactoryHelper.java
create mode 100644 src/test/java/org/apache/commons/text/matcher/StringMatcherFactoryTest.java
create mode 100644 src/test/java/org/apache/commons/text/matcher/StringMatcherOnCharArrayTest.java
create mode 100644 src/test/java/org/apache/commons/text/matcher/StringMatcherOnCharSequenceStringTest.java
delete mode 100644 src/test/java/org/apache/commons/text/matcher/StringMatcherTest.java