-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Replace commons-lang:commons-lang with org.apache.commons:commons-lang3 #19229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
cwperks
merged 5 commits into
opensearch-project:main
from
cwperks:change-to-commons-lang3
Sep 30, 2025
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
b49713a
Replace commons-lang:commons-lang with org.apache.commons:commons-lang3
cwperks 95b5c99
Add to CHANGELOG
cwperks bb27409
Create a shim around commons-lang3 StringUtils
cwperks 6c3c7f7
Merge branch 'main' into change-to-commons-lang3
cwperks 5776ef4
Merge branch 'main' into change-to-commons-lang3
cwperks File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
plugins/discovery-azure-classic/licenses/commons-lang-2.6.jar.sha1
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
plugins/discovery-azure-classic/licenses/commons-lang-NOTICE.txt
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
plugins/discovery-azure-classic/licenses/commons-lang3-3.18.0.jar.sha1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| fb14946f0e39748a6571de0635acbe44e7885491 |
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
plugins/discovery-azure-classic/licenses/javax.inject-1.jar.sha1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| 6975da39a7040257bd51d21a231b76c915872d38 | ||
| 6975da39a7040257bd51d21a231b76c915872d38 |
2 changes: 1 addition & 1 deletion
2
plugins/discovery-azure-classic/licenses/jaxb-impl-2.2.3-1.jar.sha1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| 56baae106392040a45a06d4a41099173425da1e6 | ||
| 56baae106392040a45a06d4a41099173425da1e6 |
2 changes: 1 addition & 1 deletion
2
plugins/discovery-azure-classic/licenses/jersey-client-1.13.jar.sha1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| 0ec38c57a78940bf5f8f5971307ca89406849647 | ||
| 0ec38c57a78940bf5f8f5971307ca89406849647 |
2 changes: 1 addition & 1 deletion
2
plugins/discovery-azure-classic/licenses/jersey-core-1.13.jar.sha1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| 4326a56dc6b2d67b7313905c353e1af225bb164f | ||
| 4326a56dc6b2d67b7313905c353e1af225bb164f |
2 changes: 1 addition & 1 deletion
2
plugins/discovery-azure-classic/licenses/jersey-json-1.13.jar.sha1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| f7346cce2c0e73afd39e2783c173ee134f79a0f9 | ||
| f7346cce2c0e73afd39e2783c173ee134f79a0f9 |
49 changes: 49 additions & 0 deletions
49
plugins/discovery-azure-classic/src/main/java/org/apache/commons/lang/StringUtils.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| /* | ||
| * SPDX-License-Identifier: Apache-2.0 | ||
| * | ||
| * The OpenSearch Contributors require contributions made to | ||
| * this file be licensed under the Apache-2.0 license or a | ||
| * compatible open source license. | ||
| */ | ||
|
|
||
| package org.apache.commons.lang; | ||
|
|
||
| import java.util.Collection; | ||
| import java.util.Iterator; | ||
|
|
||
| /** | ||
| * Minimal shim to satisfy Azure Classic which expects commons-lang 2.x. | ||
| * Delegates to commons-lang3. | ||
| */ | ||
| public final class StringUtils { | ||
| private StringUtils() {} | ||
|
|
||
| // === Overloads Azure Classic expects (commons-lang 2.x API) === | ||
| public static String join(final Collection<?> collection, final String separator) { | ||
| if (collection == null) return null; | ||
| return org.apache.commons.lang3.StringUtils.join(collection, separator); | ||
| } | ||
|
|
||
| public static String join(final Iterator<?> iterator, final String separator) { | ||
| if (iterator == null) return null; | ||
| return org.apache.commons.lang3.StringUtils.join(iterator, separator); | ||
| } | ||
|
|
||
| public static String join(final Object[] array, final String separator) { | ||
| if (array == null) return null; | ||
| return org.apache.commons.lang3.StringUtils.join(array, separator); | ||
| } | ||
|
|
||
| public static String join(final Iterable<?> iterable, final String separator) { | ||
| if (iterable == null) return null; | ||
| return org.apache.commons.lang3.StringUtils.join(iterable, separator); | ||
| } | ||
|
|
||
| public static boolean isBlank(final String s) { | ||
| return org.apache.commons.lang3.StringUtils.isBlank(s); | ||
| } | ||
|
|
||
| public static boolean isEmpty(final String s) { | ||
| return org.apache.commons.lang3.StringUtils.isEmpty(s); | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| fb14946f0e39748a6571de0635acbe44e7885491 |
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| Apache Commons Lang | ||
| Copyright 2001-2022 The Apache Software Foundation | ||
|
|
||
| This product includes software developed at | ||
| The Apache Software Foundation (https://www.apache.org/). |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.