mirror of https://github.com/apache/jmeter.git
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
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.
This commit is contained in:
parent
b495352805
commit
6d6654ed3b
|
@ -75,7 +75,6 @@ plugins.withId("java") {
|
|||
java {
|
||||
license()
|
||||
importOrder("static ", "java.", "javax", "org", "net", "com", "")
|
||||
removeUnusedImports()
|
||||
indentWithSpaces(4)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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\
|
||||
|
|
Loading…
Reference in New Issue