Compare commits

...

3 Commits

Author SHA1 Message Date
Mend Renovate 7ee6220438
Merge f0e546c040 into 6d6654ed3b 2025-07-22 21:38:35 +08:00
Vladimir Sitnikov 6d6654ed3b chore: remove removeUnusedImports() rule
Validate Gradle Wrapper / Validation (push) Waiting to run Details
CI / Matrix Preparation (push) Waiting to run Details
CI / ${{ matrix.name }} (push) Blocked by required conditions Details
CI / Error Prone (JDK 17) (push) Waiting to run Details
Release Drafter / Update Release Draft (push) Waiting to run Details
removeUnusedImports causes issues with parsing newer Java, and
google-java-format requires --add-exports when running with Java 17+

We'd better use OpenRewrite for imports.
2025-07-21 20:18:45 +03:00
Mend Renovate f0e546c040
fix(deps): update dependency org.apache.commons:commons-dbcp2 to v2.13.0 2025-03-04 15:02:40 +00:00
5 changed files with 7 additions and 8 deletions

View File

@ -75,7 +75,6 @@ plugins.withId("java") {
java { java {
license() license()
importOrder("static ", "java.", "javax", "org", "net", "com", "") importOrder("static ", "java.", "javax", "org", "net", "com", "")
removeUnusedImports()
indentWithSpaces(4) indentWithSpaces(4)
} }
} }

View File

@ -93,7 +93,7 @@ dependencies {
api("net.sf.saxon:Saxon-HE:11.6") api("net.sf.saxon:Saxon-HE:11.6")
api("org.apache-extras.beanshell:bsh:2.0b6") api("org.apache-extras.beanshell:bsh:2.0b6")
api("org.apache.commons:commons-collections4:4.4") api("org.apache.commons:commons-collections4:4.4")
api("org.apache.commons:commons-dbcp2:2.9.0") api("org.apache.commons:commons-dbcp2:2.13.0")
api("org.apache.commons:commons-jexl3:3.2.1") api("org.apache.commons:commons-jexl3:3.2.1")
api("org.apache.commons:commons-jexl:2.1.1") api("org.apache.commons:commons-jexl:2.1.1")
api("org.apache.commons:commons-lang3:3.14.0") api("org.apache.commons:commons-lang3:3.14.0")

View File

@ -249,7 +249,7 @@ public class SizeAssertion extends AbstractScopedAssertion implements Serializab
if (operator == null) { if (operator == null) {
return "ERROR - invalid condition"; return "ERROR - invalid condition";
} }
if (operator.evaluate(resultSize, allowedSize)) { if (operator.evaluate(resultSize, allowedSize)) {
return ""; return "";
} else { } else {

View File

@ -86,7 +86,7 @@ public class ChangeCase extends AbstractFunction {
LOGGER.error("Unknown mode {}, returning {} unchanged", mode, originalString); LOGGER.error("Unknown mode {}, returning {} unchanged", mode, originalString);
return originalString; return originalString;
} }
return switch (changeCaseMode) { return switch (changeCaseMode) {
case UPPER -> StringUtils.upperCase(originalString); case UPPER -> StringUtils.upperCase(originalString);
case LOWER -> StringUtils.lowerCase(originalString); case LOWER -> StringUtils.lowerCase(originalString);

View File

@ -81,7 +81,7 @@ public class TestHttpRequestHdr extends JMeterTestCase {
Content-type: %s\r Content-type: %s\r
Content-length: %d\r Content-length: %d\r
\r \r
%s""".formatted(url, HTTPConstants.APPLICATION_X_WWW_FORM_URLENCODED, %s""".formatted(url, HTTPConstants.APPLICATION_X_WWW_FORM_URLENCODED,
getBodyLength(postBody, contentEncoding), postBody); getBodyLength(postBody, contentEncoding), postBody);
s = getSamplerForRequest(url, testPostRequest, contentEncoding); s = getSamplerForRequest(url, testPostRequest, contentEncoding);
assertEquals(HTTPConstants.POST, s.getMethod()); assertEquals(HTTPConstants.POST, s.getMethod());
@ -597,15 +597,15 @@ public class TestHttpRequestHdr extends JMeterTestCase {
private String createMultipartFormBody(String titleValue, String descriptionValue, private String createMultipartFormBody(String titleValue, String descriptionValue,
String contentEncoding, boolean includeExtraHeaders, String contentEncoding, boolean includeExtraHeaders,
String boundary, String endOfLine) { String boundary, String endOfLine) {
String titleHeaders = includeExtraHeaders ? """ String titleHeaders = includeExtraHeaders ? """
Content-Type: text/plain; charset=%s%s\ Content-Type: text/plain; charset=%s%s\
Content-Transfer-Encoding: 8bit%s""".formatted(contentEncoding, endOfLine, endOfLine) : ""; Content-Transfer-Encoding: 8bit%s""".formatted(contentEncoding, endOfLine, endOfLine) : "";
String descriptionHeaders = includeExtraHeaders ? """ String descriptionHeaders = includeExtraHeaders ? """
Content-Type: text/plain; charset=%s%s\ Content-Type: text/plain; charset=%s%s\
Content-Transfer-Encoding: 8bit%s""".formatted(contentEncoding, endOfLine, endOfLine) : ""; Content-Transfer-Encoding: 8bit%s""".formatted(contentEncoding, endOfLine, endOfLine) : "";
return """ return """
--%s%s\ --%s%s\
Content-Disposition: form-data; name="title"%s\ Content-Disposition: form-data; name="title"%s\