Skip to content

Commit 45a629e

Browse files
chenqimiaorstoyanchev
authored andcommitted
Remove unnecessary check in ConvertingEncoderDecoderSupport
1 parent 9685380 commit 45a629e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-websocket/src/main/java/org/springframework/web/socket/adapter/standard/ConvertingEncoderDecoderSupport.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2018 the original author or authors.
2+
* Copyright 2002-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -85,7 +85,7 @@ public abstract class ConvertingEncoderDecoderSupport<T, M> {
8585
*/
8686
public void init(EndpointConfig config) {
8787
ApplicationContext applicationContext = getApplicationContext();
88-
if (applicationContext != null && applicationContext instanceof ConfigurableApplicationContext) {
88+
if (applicationContext instanceof ConfigurableApplicationContext) {
8989
ConfigurableListableBeanFactory beanFactory =
9090
((ConfigurableApplicationContext) applicationContext).getBeanFactory();
9191
beanFactory.autowireBean(this);

0 commit comments

Comments
 (0)