Skip to content

Commit 19911af

Browse files
committed
Polishing
1 parent 6acb091 commit 19911af

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

spring-expression/src/main/java/org/springframework/expression/spel/standard/SpelCompiler.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
*/
6969
public final class SpelCompiler implements Opcodes {
7070

71-
private static final int CLASSES_DEFINED_LIMIT = 10;
71+
private static final int CLASSES_DEFINED_LIMIT = 100;
7272

7373
private static final Log logger = LogFactory.getLog(SpelCompiler.class);
7474

@@ -92,7 +92,7 @@ private SpelCompiler(@Nullable ClassLoader classloader) {
9292
/**
9393
* Attempt compilation of the supplied expression. A check is made to see
9494
* if it is compilable before compilation proceeds. The check involves
95-
* visiting all the nodes in the expression Ast and ensuring enough state
95+
* visiting all the nodes in the expression AST and ensuring enough state
9696
* is known about them that bytecode can be generated for them.
9797
* @param expression the expression to compile
9898
* @return an instance of the class implementing the compiled expression,
@@ -127,7 +127,7 @@ private int getNextSuffix() {
127127

128128
/**
129129
* Generate the class that encapsulates the compiled expression and define it.
130-
* The generated class will be a subtype of CompiledExpression.
130+
* The generated class will be a subtype of CompiledExpression.
131131
* @param expressionToCompile the expression to be compiled
132132
* @return the expression call, or {@code null} if the decision was to opt out of
133133
* compilation during code generation
@@ -290,6 +290,9 @@ public int getClassesDefinedCount() {
290290
}
291291

292292

293+
/**
294+
* An ASM ClassWriter extension bound to the SpelCompiler's ClassLoader.
295+
*/
293296
private class ExpressionClassWriter extends ClassWriter {
294297

295298
public ExpressionClassWriter() {

spring-web/src/test/java/org/springframework/web/util/UriComponentsBuilderTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ void fromHttpRequestWithTrailingSlash() {
614614
assertThat(after.getPath()).isEqualTo("/foo/");
615615
}
616616

617-
@Test // gh-19890
617+
@Test // gh-19890
618618
void fromHttpRequestWithEmptyScheme() {
619619
HttpRequest request = new HttpRequest() {
620620
@Override
@@ -896,7 +896,7 @@ void queryParamWithoutValueWithoutEquals() {
896896
assertThat(uriComponents.getQueryParams().get("bar").get(0)).isNull();
897897
}
898898

899-
@Test // gh-24444
899+
@Test // gh-24444
900900
void opaqueUriDoesNotResetOnNullInput() throws URISyntaxException {
901901
URI uri = new URI("urn:ietf:wg:oauth:2.0:oob");
902902
UriComponents result = UriComponentsBuilder.fromUri(uri)
@@ -1156,7 +1156,7 @@ void fromHttpRequestForwardedHeaderWithProtoAndServerPort() {
11561156
assertThat(result.toUriString()).isEqualTo("https://example.com/rest/mobile/users/1");
11571157
}
11581158

1159-
@Test // gh-25737
1159+
@Test // gh-25737
11601160
void fromHttpRequestForwardedHeaderComma() {
11611161
MockHttpServletRequest request = new MockHttpServletRequest();
11621162
request.addHeader("Forwarded", "for=192.0.2.0,for=192.0.2.1;proto=https;host=192.0.2.3:9090");

0 commit comments

Comments
 (0)