Skip to content

Commit 4812c18

Browse files
committed
Polish LiveBeansView Javadoc and suppress warnings
1 parent 7513e21 commit 4812c18

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

spring-context/src/main/java/org/springframework/context/support/LiveBeansView.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@
3535

3636
/**
3737
* Adapter for live beans view exposure, building a snapshot of current beans
38-
* and their dependencies from either a local ApplicationContext (with a
39-
* local LiveBeansView bean definition) or all registered ApplicationContexts
40-
* (driven by the "spring.liveBeansView.mbean" environment property).
38+
* and their dependencies from either a local {@code ApplicationContext} (with a
39+
* local {@code LiveBeansView} bean definition) or all registered ApplicationContexts
40+
* (driven by the {@value #MBEAN_DOMAIN_PROPERTY_NAME} environment property).
4141
*
4242
* <p>Note: This feature is still in beta and primarily designed for use with
43-
* SpringSource Tool Suite 3.1.
43+
* Spring Tool Suite 3.1.
4444
*
4545
* @author Juergen Hoeller
4646
* @since 3.2
@@ -152,7 +152,7 @@ protected String generateJson(Set<ConfigurableApplicationContext> contexts) {
152152
scope = BeanDefinition.SCOPE_SINGLETON;
153153
}
154154
result.append("\"scope\": \"").append(scope).append("\",\n");
155-
Class beanType = bf.getType(beanName);
155+
Class<?> beanType = bf.getType(beanName);
156156
if (beanType != null) {
157157
result.append("\"type\": \"").append(beanType.getName()).append("\",\n");
158158
}

spring-web/src/main/java/org/springframework/web/context/support/LiveBeansViewServlet.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
* @since 3.2
3535
* @see org.springframework.context.support.LiveBeansView#getSnapshotAsJson()
3636
*/
37+
@SuppressWarnings("serial")
3738
public class LiveBeansViewServlet extends HttpServlet {
3839

3940
private LiveBeansView liveBeansView;

0 commit comments

Comments
 (0)