Skip to content

Commit 5d7fb1a

Browse files
committed
Polishing
1 parent 2ec8fa9 commit 5d7fb1a

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

spring-beans/spring-beans.gradle

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ dependencies {
1212
testCompile("org.apache.tomcat.embed:tomcat-embed-core:${tomcatVersion}")
1313
}
1414

15-
// This modules does joint compilation for Java and Groovy code,
16-
// with the compileGroovy task.
15+
// This module does joint compilation for Java and Groovy code with the compileGroovy task.
1716
sourceSets {
1817
main.groovy.srcDirs += "src/main/java"
1918
main.java.srcDirs = []
@@ -24,9 +23,8 @@ compileGroovy {
2423
targetCompatibility = 1.8
2524
}
2625

27-
// This module also builds Kotlin code and the compileKotlin task
28-
// naturally depends on compileJava.
29-
// We need to redefine dependencies to break task cycles.
26+
// This module also builds Kotlin code and the compileKotlin task naturally depends on
27+
// compileJava. We need to redefine dependencies to break task cycles.
3028
def deps = compileGroovy.taskDependencies.immutableValues + compileGroovy.taskDependencies.mutableValues
3129
compileGroovy.dependsOn = deps - 'compileJava'
3230
compileKotlin.dependsOn(compileGroovy)

spring-webmvc/src/main/java/org/springframework/web/servlet/handler/AbstractHandlerExceptionResolver.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,13 +135,11 @@ public ModelAndView resolveException(
135135
prepareResponse(ex, response);
136136
ModelAndView result = doResolveException(request, response, handler, ex);
137137
if (result != null) {
138-
139-
// Print warn message, when warn logger is not enabled..
138+
// Print warn message when warn logger is not enabled...
140139
if (logger.isWarnEnabled() && (this.warnLogger == null || !this.warnLogger.isWarnEnabled())) {
141140
logger.warn("Resolved [" + ex + "]" + (result.isEmpty() ? "" : " to " + result));
142141
}
143-
144-
// warnLogger with full stack trace (requires explicit config)..
142+
// warnLogger with full stack trace (requires explicit config)
145143
logException(ex, request);
146144
}
147145
return result;

0 commit comments

Comments
 (0)