Compare commits

...

3 Commits

Author SHA1 Message Date
Mend Renovate c3a91a82d0
Merge 8f370b0587 into 6d6654ed3b 2025-07-21 17:22:48 +00:00
Mend Renovate 8f370b0587
fix(deps): update org.jodd 2025-07-21 17:22:44 +00: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
5 changed files with 10 additions and 11 deletions

View File

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

View File

@ -127,10 +127,10 @@ dependencies {
api("org.jetbrains.lets-plot:lets-plot-batik:4.1.0")
api("org.jetbrains.lets-plot:lets-plot-kotlin-jvm:4.5.0")
api("org.jetbrains:annotations:24.1.0")
api("org.jodd:jodd-core:5.0.13")
api("org.jodd:jodd-lagarto:5.0.13")
api("org.jodd:jodd-log:5.0.13")
api("org.jodd:jodd-props:5.0.13")
api("org.jodd:jodd-core:5.3.0")
api("org.jodd:jodd-lagarto:5.1.5")
api("org.jodd:jodd-log:5.1.6")
api("org.jodd:jodd-props:5.2.0")
api("org.jsoup:jsoup:1.17.1")
api("org.mongodb:mongo-java-driver:2.14.3")
api("org.mozilla:rhino:1.7.14")

View File

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

View File

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

View File

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