Delete trailing whitespace in Java source code
This commit is contained in:
@@ -479,7 +479,7 @@ public class AntPathMatcherTests {
|
||||
|
||||
// longer is better
|
||||
assertEquals(1, comparator.compare("/hotels", "/hotels2"));
|
||||
|
||||
|
||||
//SPR-13139
|
||||
assertEquals(-1, comparator.compare("*", "*/**"));
|
||||
assertEquals(1, comparator.compare("*/**", "*"));
|
||||
|
||||
@@ -184,7 +184,7 @@ public class ExpressionState {
|
||||
public void enterScope() {
|
||||
ensureVariableScopesInitialized();
|
||||
this.variableScopes.push(new VariableScope(Collections.<String,Object>emptyMap()));
|
||||
this.scopeRootObjects.push(getActiveContextObject());
|
||||
this.scopeRootObjects.push(getActiveContextObject());
|
||||
}
|
||||
|
||||
public void enterScope(String name, Object value) {
|
||||
|
||||
@@ -2999,7 +2999,7 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
|
||||
context.setVariable("it", person);
|
||||
expression.setEvaluationContext(context);
|
||||
assertTrue(expression.getValue(Boolean.class));
|
||||
assertTrue(expression.getValue(Boolean.class));
|
||||
assertTrue(expression.getValue(Boolean.class));
|
||||
assertCanCompile(expression);
|
||||
assertTrue(expression.getValue(Boolean.class));
|
||||
}
|
||||
@@ -5022,7 +5022,7 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
|
||||
for (String[] varg: vargs) {
|
||||
s+="{";
|
||||
for (String v: varg) {
|
||||
s+=v;
|
||||
s+=v;
|
||||
}
|
||||
s+="}";
|
||||
}
|
||||
@@ -5038,7 +5038,7 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
|
||||
for (int[] varg: vargs) {
|
||||
s+="{";
|
||||
for (int v: varg) {
|
||||
s+=Integer.toString(v);
|
||||
s+=Integer.toString(v);
|
||||
}
|
||||
s+="}";
|
||||
}
|
||||
@@ -5150,7 +5150,7 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
|
||||
}
|
||||
output = b.toString();
|
||||
}
|
||||
|
||||
|
||||
public Obj3(String s, Float f, int... ints) {
|
||||
StringBuilder b = new StringBuilder();
|
||||
b.append(s);
|
||||
@@ -5165,7 +5165,7 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
|
||||
}
|
||||
|
||||
public static class Obj4 {
|
||||
|
||||
|
||||
public final String output;
|
||||
|
||||
public Obj4(int[] params) {
|
||||
|
||||
@@ -129,7 +129,7 @@ public class DefaultUserDestinationResolverTests {
|
||||
|
||||
@Test
|
||||
public void handleMessageToOtherUser() {
|
||||
|
||||
|
||||
TestSimpUser otherSimpUser = new TestSimpUser("anna");
|
||||
otherSimpUser.addSessions(new TestSimpSession("456"));
|
||||
when(this.registry.getUser("anna")).thenReturn(otherSimpUser);
|
||||
|
||||
@@ -24,7 +24,7 @@ import org.springframework.http.HttpMethod;
|
||||
* @author Luciano Leggieri
|
||||
*/
|
||||
public class OkHttpAsyncClientHttpRequestFactoryTests extends AbstractAsyncHttpRequestFactoryTestCase {
|
||||
|
||||
|
||||
@Override
|
||||
protected AsyncClientHttpRequestFactory createRequestFactory() {
|
||||
return new OkHttpClientHttpRequestFactory();
|
||||
|
||||
@@ -238,11 +238,11 @@ public class Jackson2ObjectMapperBuilderTests {
|
||||
@Test
|
||||
public void defaultModules() throws JsonProcessingException, UnsupportedEncodingException {
|
||||
ObjectMapper objectMapper = Jackson2ObjectMapperBuilder.json().build();
|
||||
|
||||
|
||||
Long timestamp = 1322903730000L;
|
||||
DateTime dateTime = new DateTime(timestamp, DateTimeZone.UTC);
|
||||
assertEquals(timestamp.toString(), new String(objectMapper.writeValueAsBytes(dateTime), "UTF-8"));
|
||||
|
||||
|
||||
Optional<String> optional = Optional.of("test");
|
||||
assertEquals("\"test\"", new String(objectMapper.writeValueAsBytes(optional), "UTF-8"));
|
||||
}
|
||||
|
||||
@@ -701,7 +701,7 @@ public class MvcUriComponentsBuilder {
|
||||
ControllerMethodInvocationInterceptor(Class<?> controllerType) {
|
||||
this.controllerType = controllerType;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Object intercept(Object obj, Method method, Object[] args, MethodProxy proxy) {
|
||||
if (getControllerMethod.equals(method)) {
|
||||
|
||||
@@ -407,7 +407,7 @@ public class WebMvcConfigurationSupportExtensionTests {
|
||||
public void addCorsMappings(CorsRegistry registry) {
|
||||
registry.addMapping("/resources/**");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
private class TestPathHelper extends UrlPathHelper {}
|
||||
|
||||
Reference in New Issue
Block a user