Skip to content

Commit f6375f7

Browse files
Bump maven-core-version from 3.8.6 to 3.9.12 (#1601)
* Bump maven-core-version from 3.8.6 to 3.9.12 Bumps `maven-core-version` from 3.8.6 to 3.9.12. Updates `org.apache.maven:maven-plugin-api` from 3.8.6 to 3.9.12 - [Release notes](https://github.com/apache/maven/releases) - [Commits](apache/maven@maven-3.8.6...maven-3.9.12) Updates `org.apache.maven:maven-core` from 3.8.6 to 3.9.12 --- updated-dependencies: - dependency-name: org.apache.maven:maven-plugin-api dependency-version: 3.9.12 dependency-type: direct:production update-type: version-update:semver-minor - dependency-name: org.apache.maven:maven-core dependency-version: 3.9.12 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Replace commons-lang3 Validate by local implementation --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: JB Onofré <jb.onofre@dremio.com>
1 parent 7157a25 commit f6375f7

3 files changed

Lines changed: 53 additions & 2 deletions

File tree

activemq-tooling/activemq-perf-maven-plugin/src/main/java/org/apache/activemq/tool/sampler/AbstractPerformanceSampler.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
import org.apache.activemq.tool.ClientRunBasis;
2323
import org.apache.activemq.tool.properties.AbstractObjectProperties;
2424
import org.apache.activemq.tool.reports.PerformanceReportWriter;
25-
import org.apache.commons.lang3.Validate;
2625
import org.slf4j.Logger;
2726
import org.slf4j.LoggerFactory;
2827

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
/**
2+
* Licensed to the Apache Software Foundation (ASF) under one or more
3+
* contributor license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright ownership.
5+
* The ASF licenses this file to You under the Apache License, Version 2.0
6+
* (the "License"); you may not use this file except in compliance with
7+
* the License. You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
package org.apache.activemq.tool.sampler;
18+
19+
/**
20+
* Utility class for validation.
21+
*/
22+
public final class Validate {
23+
24+
private Validate() {
25+
// Utility class
26+
}
27+
28+
/**
29+
* Validates that the given expression is true.
30+
*
31+
* @param expression the expression to validate
32+
* @param message the error message to use if validation fails
33+
* @throws IllegalArgumentException if the expression is false
34+
*/
35+
public static void isTrue(boolean expression, String message) {
36+
if (!expression) {
37+
throw new IllegalArgumentException(message);
38+
}
39+
}
40+
41+
/**
42+
* Validates that the given object is not null.
43+
*
44+
* @param object the object to validate
45+
* @throws IllegalArgumentException if the object is null
46+
*/
47+
public static void notNull(Object object) {
48+
if (object == null) {
49+
throw new IllegalArgumentException("The validated object is null");
50+
}
51+
}
52+
}

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129
<depends-maven-plugin-version>1.5.0</depends-maven-plugin-version>
130130
<maven-project-info-reports-plugin-version>3.9.0</maven-project-info-reports-plugin-version>
131131
<maven-graph-plugin-version>1.45</maven-graph-plugin-version>
132-
<maven-core-version>3.8.6</maven-core-version>
132+
<maven-core-version>3.9.12</maven-core-version>
133133
<maven-surefire-plugin-version>3.5.3</maven-surefire-plugin-version>
134134
<!-- OSGi bundles properties -->
135135
<activemq.osgi.import.pkg>*</activemq.osgi.import.pkg>

0 commit comments

Comments
 (0)