Browse Source

Use consistent formatting for view name in AbstractView

pull/33350/head
Sam Brannen 2 years ago
parent
commit
000b563e83
  1. 4
      spring-webmvc/src/main/java/org/springframework/web/servlet/view/AbstractView.java

4
spring-webmvc/src/main/java/org/springframework/web/servlet/view/AbstractView.java

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2022 the original author or authors. * Copyright 2002-2024 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -495,7 +495,7 @@ public abstract class AbstractView extends WebApplicationObjectSupport implement
} }
protected String formatViewName() { protected String formatViewName() {
return (getBeanName() != null ? "name '" + getBeanName() + "'" : "[" + getClass().getSimpleName() + "]"); return (getBeanName() != null ? "name [" + getBeanName() + "]" : "[" + getClass().getSimpleName() + "]");
} }
} }

Loading…
Cancel
Save