Re: [PR] [MNG-8146] Drop commons-lang [maven]

2024-06-06 Thread via GitHub
cstamas merged PR #1564: URL: https://github.com/apache/maven/pull/1564 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@maven.apache.

Re: [PR] [MNG-8146] Drop commons-lang [maven]

2024-06-06 Thread via GitHub
cstamas commented on code in PR #1564: URL: https://github.com/apache/maven/pull/1564#discussion_r1629954594 ## maven-artifact/src/test/java/org/apache/maven/artifact/versioning/DefaultArtifactVersionTest.java: ## @@ -80,6 +80,15 @@ public void testVersionParsing() { ch

Re: [PR] [MNG-8146] Drop commons-lang [maven]

2024-06-06 Thread via GitHub
michael-o commented on code in PR #1564: URL: https://github.com/apache/maven/pull/1564#discussion_r1629952883 ## maven-artifact/src/test/java/org/apache/maven/artifact/versioning/DefaultArtifactVersionTest.java: ## @@ -80,6 +80,15 @@ public void testVersionParsing() {

Re: [PR] [MNG-8146] Drop commons-lang [maven]

2024-06-06 Thread via GitHub
cstamas commented on code in PR #1564: URL: https://github.com/apache/maven/pull/1564#discussion_r1629950638 ## maven-artifact/src/test/java/org/apache/maven/artifact/versioning/DefaultArtifactVersionTest.java: ## @@ -80,6 +80,15 @@ public void testVersionParsing() { ch

Re: [PR] [MNG-8146] Drop commons-lang [maven]

2024-06-06 Thread via GitHub
michael-o commented on code in PR #1564: URL: https://github.com/apache/maven/pull/1564#discussion_r1629949818 ## maven-artifact/src/test/java/org/apache/maven/artifact/versioning/DefaultArtifactVersionTest.java: ## @@ -80,6 +80,15 @@ public void testVersionParsing() {

Re: [PR] [MNG-8146] Drop commons-lang [maven]

2024-06-06 Thread via GitHub
michael-o commented on code in PR #1564: URL: https://github.com/apache/maven/pull/1564#discussion_r1629948490 ## maven-artifact/src/main/java/org/apache/maven/artifact/versioning/DefaultArtifactVersion.java: ## @@ -179,7 +179,8 @@ private static boolean isDigits(String str) {

Re: [PR] [MNG-8146] Drop commons-lang [maven]

2024-06-06 Thread via GitHub
cstamas commented on PR #1564: URL: https://github.com/apache/maven/pull/1564#issuecomment-2152739532 I agree with this "general" rule to prefer NPE over IAE, but disagree with unconditional sticking to this rule. One has to be pragmatic a bit, and allow deviation. My point was, that in thi

Re: [PR] [MNG-8146] Drop commons-lang [maven]

2024-06-06 Thread via GitHub
cstamas commented on code in PR #1564: URL: https://github.com/apache/maven/pull/1564#discussion_r1629689572 ## maven-artifact/src/main/java/org/apache/maven/artifact/versioning/DefaultArtifactVersion.java: ## @@ -176,6 +174,18 @@ private static Integer getNextIntegerToken(Strin

Re: [PR] [MNG-8146] Drop commons-lang [maven]

2024-06-06 Thread via GitHub
elharo commented on PR #1564: URL: https://github.com/apache/maven/pull/1564#issuecomment-2152717446 I concur that NPE is strongly preferred over IAE for null values. I didn't happen to find any places where this was done wrong, but I wasn't reading that closely. -- This is an automated

Re: [PR] [MNG-8146] Drop commons-lang [maven]

2024-06-06 Thread via GitHub
elharo commented on code in PR #1564: URL: https://github.com/apache/maven/pull/1564#discussion_r1629675910 ## maven-artifact/src/main/java/org/apache/maven/artifact/versioning/DefaultArtifactVersion.java: ## @@ -176,6 +174,18 @@ private static Integer getNextIntegerToken(String

Re: [PR] [MNG-8146] Drop commons-lang [maven]

2024-06-06 Thread via GitHub
cstamas commented on PR #1564: URL: https://github.com/apache/maven/pull/1564#issuecomment-2152701271 For ref, the Maven4 PR https://github.com/apache/maven/pull/1080 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the

Re: [PR] [MNG-8146] Drop commons-lang [maven]

2024-06-06 Thread via GitHub
elharo commented on PR #1564: URL: https://github.com/apache/maven/pull/1564#issuecomment-2152697789 I'll have to dig into the individual changes. However overall I no longer trust commons-lang and definitely favor removing our dependence on it if possible. -- This is an automated messa

Re: [PR] [MNG-8146] Drop commons-lang [maven]

2024-06-06 Thread via GitHub
cstamas commented on PR #1564: URL: https://github.com/apache/maven/pull/1564#issuecomment-2152638881 > Yes, through out our entire codebase. Don't divert: I asked you to show me where _changed_ spots in this PR benefit anything from NPE (as vs IAEx). But nevertheless, with co

Re: [PR] [MNG-8146] Drop commons-lang [maven]

2024-06-06 Thread via GitHub
michael-o commented on code in PR #1564: URL: https://github.com/apache/maven/pull/1564#discussion_r1629570046 ## pom.xml: ## @@ -442,16 +441,6 @@ under the License. commons-cli commons-cli ${commonsCliVersion} - - -common

Re: [PR] [MNG-8146] Drop commons-lang [maven]

2024-06-06 Thread via GitHub
cstamas commented on code in PR #1564: URL: https://github.com/apache/maven/pull/1564#discussion_r1629554150 ## pom.xml: ## @@ -442,16 +441,6 @@ under the License. commons-cli commons-cli ${commonsCliVersion} - - -commons-

Re: [PR] [MNG-8146] Drop commons-lang [maven]

2024-06-06 Thread via GitHub
michael-o commented on PR #1564: URL: https://github.com/apache/maven/pull/1564#issuecomment-2152503852 I agree that for those few cases Commons Lang is overkill. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL

Re: [PR] [MNG-8146] Drop commons-lang [maven]

2024-06-06 Thread via GitHub
michael-o commented on code in PR #1564: URL: https://github.com/apache/maven/pull/1564#discussion_r1629513653 ## pom.xml: ## @@ -442,16 +441,6 @@ under the License. commons-cli commons-cli ${commonsCliVersion} - - -common

Re: [PR] [MNG-8146] Drop commons-lang [maven]

2024-06-06 Thread via GitHub
michael-o commented on PR #1564: URL: https://github.com/apache/maven/pull/1564#issuecomment-2152392587 > > Several changes are _not_ OK. There is clearly a definition that for a null value an NPE is expected, not IAE for past 10+ years. This violates the expectations from Effective Java. @

Re: [PR] [MNG-8146] Drop commons-lang [maven]

2024-06-06 Thread via GitHub
cstamas commented on PR #1564: URL: https://github.com/apache/maven/pull/1564#issuecomment-2152375090 > Several changes are _not_ OK. There is clearly a definition that for a null value an NPE is expected, not IAE for past 10+ years. This violates the expectations from Effective Java. @elha