Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
355860fd
Commit
355860fd
authored
Mar 01, 2016
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove @Autowired from constructors where class has single constructor
Closes gh-5226
parent
3ca67e66
Changes
25
Hide whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
35 additions
and
77 deletions
+35
-77
DiskSpaceHealthIndicator.java
...amework/boot/actuate/health/DiskSpaceHealthIndicator.java
+1
-4
AuthenticationManagerConfiguration.java
...onfigure/security/AuthenticationManagerConfiguration.java
+0
-1
OAuth2ResourceServerConfiguration.java
...ty/oauth2/resource/OAuth2ResourceServerConfiguration.java
+1
-2
SecurityFilterAutoConfigurationEarlyInitializationTests.java
...urityFilterAutoConfigurationEarlyInitializationTests.java
+1
-2
CacheManagerCheck.java
...e-cache/src/main/java/sample/cache/CacheManagerCheck.java
+1
-3
SampleClient.java
...sample-cache/src/main/java/sample/cache/SampleClient.java
+1
-3
CityServiceImpl.java
...rc/main/java/sample/data/jpa/service/CityServiceImpl.java
+1
-3
HotelServiceImpl.java
...c/main/java/sample/data/jpa/service/HotelServiceImpl.java
+2
-4
CustomerController.java
.../src/main/java/sample/hateoas/web/CustomerController.java
+1
-3
Endpoint.java
...t-sample-jersey/src/main/java/sample/jersey/Endpoint.java
+1
-3
JooqExamples.java
...t-sample-jooq/src/main/java/sample/jooq/JooqExamples.java
+1
-3
AccountService.java
...tomikos/src/main/java/sample/atomikos/AccountService.java
+1
-3
AccountService.java
...itronix/src/main/java/sample/bitronix/AccountService.java
+1
-3
AccountService.java
...le-jta-jndi/src/main/java/sample/jndi/AccountService.java
+1
-3
WebController.java
...ple-jta-jndi/src/main/java/sample/jndi/WebController.java
+1
-3
MessageController.java
...in/java/sample/groovytemplates/mvc/MessageController.java
+3
-3
MessageController.java
...ui/src/main/java/sample/web/ui/mvc/MessageController.java
+10
-8
SimpleClientWebSocketHandler.java
.../websocket/jetty/client/SimpleClientWebSocketHandler.java
+1
-3
EchoWebSocketHandler.java
...va/samples/websocket/jetty/echo/EchoWebSocketHandler.java
+1
-3
SimpleClientWebSocketHandler.java
...websocket/tomcat/client/SimpleClientWebSocketHandler.java
+1
-3
EchoWebSocketHandler.java
...a/samples/websocket/tomcat/echo/EchoWebSocketHandler.java
+1
-3
SimpleClientWebSocketHandler.java
...bsocket/undertow/client/SimpleClientWebSocketHandler.java
+1
-3
EchoWebSocketHandler.java
...samples/websocket/undertow/echo/EchoWebSocketHandler.java
+1
-3
HolidayEndpoint.java
...-ws/src/main/java/sample/ws/endpoint/HolidayEndpoint.java
+1
-3
LoggingApplicationListenerIntegrationTests.java
...t/logging/LoggingApplicationListenerIntegrationTests.java
+0
-2
No files found.
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/DiskSpaceHealthIndicator.java
View file @
355860fd
/*
* Copyright 2014-201
5
the original author or authors.
* Copyright 2014-201
6
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -21,8 +21,6 @@ import java.io.File;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.LogFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
/**
* A {@link HealthIndicator} that checks available disk space and reports a status of
* {@link Status#DOWN} when it drops below a configurable threshold.
...
...
@@ -41,7 +39,6 @@ public class DiskSpaceHealthIndicator extends AbstractHealthIndicator {
* Create a new {@code DiskSpaceHealthIndicator}.
* @param properties the disk space properties
*/
@Autowired
public
DiskSpaceHealthIndicator
(
DiskSpaceHealthIndicatorProperties
properties
)
{
this
.
properties
=
properties
;
}
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/AuthenticationManagerConfiguration.java
View file @
355860fd
...
...
@@ -116,7 +116,6 @@ public class AuthenticationManagerConfiguration {
private
final
SecurityProperties
securityProperties
;
@Autowired
SpringBootAuthenticationConfigurerAdapter
(
SecurityProperties
securityProperties
)
{
this
.
securityProperties
=
securityProperties
;
}
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/oauth2/resource/OAuth2ResourceServerConfiguration.java
View file @
355860fd
/*
* Copyright 2012-201
5
the original author or authors.
* Copyright 2012-201
6
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -78,7 +78,6 @@ public class OAuth2ResourceServerConfiguration {
private
ResourceServerProperties
resource
;
@Autowired
public
ResourceSecurityConfigurer
(
ResourceServerProperties
resource
)
{
this
.
resource
=
resource
;
}
...
...
spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/SecurityFilterAutoConfigurationEarlyInitializationTests.java
View file @
355860fd
/*
* Copyright 2012-201
5
the original author or authors.
* Copyright 2012-201
6
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -114,7 +114,6 @@ public class SecurityFilterAutoConfigurationEarlyInitializationTests {
private
static
final
long
serialVersionUID
=
1L
;
@Autowired
public
JacksonModuleBean
(
DeserializerBean
myDeser
)
{
addDeserializer
(
SourceType
.
class
,
myDeser
);
}
...
...
spring-boot-samples/spring-boot-sample-cache/src/main/java/sample/cache/CacheManagerCheck.java
View file @
355860fd
/*
* Copyright 2012-201
5
the original author or authors.
* Copyright 2012-201
6
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -19,7 +19,6 @@ package sample.cache;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.CommandLineRunner
;
import
org.springframework.cache.CacheManager
;
import
org.springframework.stereotype.Component
;
...
...
@@ -31,7 +30,6 @@ public class CacheManagerCheck implements CommandLineRunner {
private
final
CacheManager
cacheManager
;
@Autowired
public
CacheManagerCheck
(
CacheManager
cacheManager
)
{
this
.
cacheManager
=
cacheManager
;
}
...
...
spring-boot-samples/spring-boot-sample-cache/src/main/java/sample/cache/SampleClient.java
View file @
355860fd
/*
* Copyright 2012-201
5
the original author or authors.
* Copyright 2012-201
6
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -20,7 +20,6 @@ import java.util.Arrays;
import
java.util.List
;
import
java.util.Random
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.context.annotation.Profile
;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.stereotype.Component
;
...
...
@@ -54,7 +53,6 @@ class SampleClient {
private
final
Random
random
;
@Autowired
public
SampleClient
(
CountryRepository
countryService
)
{
this
.
countryService
=
countryService
;
this
.
random
=
new
Random
();
...
...
spring-boot-samples/spring-boot-sample-data-jpa/src/main/java/sample/data/jpa/service/CityServiceImpl.java
View file @
355860fd
/*
* Copyright 2012-201
3
the original author or authors.
* Copyright 2012-201
6
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -19,7 +19,6 @@ package sample.data.jpa.service;
import
sample.data.jpa.domain.City
;
import
sample.data.jpa.domain.HotelSummary
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.stereotype.Component
;
...
...
@@ -35,7 +34,6 @@ class CityServiceImpl implements CityService {
private
final
HotelRepository
hotelRepository
;
@Autowired
public
CityServiceImpl
(
CityRepository
cityRepository
,
HotelRepository
hotelRepository
)
{
this
.
cityRepository
=
cityRepository
;
...
...
spring-boot-samples/spring-boot-sample-data-jpa/src/main/java/sample/data/jpa/service/HotelServiceImpl.java
View file @
355860fd
/*
* Copyright 2012-201
3
the original author or authors.
* Copyright 2012-201
6
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -27,7 +27,6 @@ import sample.data.jpa.domain.RatingCount;
import
sample.data.jpa.domain.Review
;
import
sample.data.jpa.domain.ReviewDetails
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.stereotype.Component
;
...
...
@@ -42,7 +41,6 @@ class HotelServiceImpl implements HotelService {
private
final
ReviewRepository
reviewRepository
;
@Autowired
public
HotelServiceImpl
(
HotelRepository
hotelRepository
,
ReviewRepository
reviewRepository
)
{
this
.
hotelRepository
=
hotelRepository
;
...
...
@@ -71,7 +69,7 @@ class HotelServiceImpl implements HotelService {
@Override
public
Review
addReview
(
Hotel
hotel
,
ReviewDetails
details
)
{
Review
review
=
new
Review
(
hotel
,
1
,
details
);
return
reviewRepository
.
save
(
review
);
return
this
.
reviewRepository
.
save
(
review
);
}
@Override
...
...
spring-boot-samples/spring-boot-sample-hateoas/src/main/java/sample/hateoas/web/CustomerController.java
View file @
355860fd
/*
* Copyright 2012-201
5
the original author or authors.
* Copyright 2012-201
6
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -19,7 +19,6 @@ package sample.hateoas.web;
import
sample.hateoas.domain.Customer
;
import
sample.hateoas.domain.CustomerRepository
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.hateoas.EntityLinks
;
import
org.springframework.hateoas.ExposesResourceFor
;
import
org.springframework.hateoas.Resource
;
...
...
@@ -42,7 +41,6 @@ public class CustomerController {
private
final
EntityLinks
entityLinks
;
@Autowired
public
CustomerController
(
CustomerRepository
repository
,
EntityLinks
entityLinks
)
{
this
.
repository
=
repository
;
this
.
entityLinks
=
entityLinks
;
...
...
spring-boot-samples/spring-boot-sample-jersey/src/main/java/sample/jersey/Endpoint.java
View file @
355860fd
/*
* Copyright 2012-201
4
the original author or authors.
* Copyright 2012-201
6
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -19,7 +19,6 @@ package sample.jersey;
import
javax.ws.rs.GET
;
import
javax.ws.rs.Path
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Component
;
@Component
...
...
@@ -28,7 +27,6 @@ public class Endpoint {
private
Service
service
;
@Autowired
public
Endpoint
(
Service
service
)
{
this
.
service
=
service
;
}
...
...
spring-boot-samples/spring-boot-sample-jooq/src/main/java/sample/jooq/JooqExamples.java
View file @
355860fd
/*
* Copyright 2012-201
5
the original author or authors.
* Copyright 2012-201
6
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -25,7 +25,6 @@ import org.jooq.Query;
import
org.jooq.Record
;
import
org.jooq.Result
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.CommandLineRunner
;
import
org.springframework.jdbc.core.JdbcTemplate
;
import
org.springframework.jdbc.core.RowMapper
;
...
...
@@ -41,7 +40,6 @@ public class JooqExamples implements CommandLineRunner {
private
final
JdbcTemplate
jdbc
;
@Autowired
public
JooqExamples
(
DSLContext
dsl
,
JdbcTemplate
jdbc
)
{
this
.
dsl
=
dsl
;
this
.
jdbc
=
jdbc
;
...
...
spring-boot-samples/spring-boot-sample-jta-atomikos/src/main/java/sample/atomikos/AccountService.java
View file @
355860fd
/*
* Copyright 2012-201
4
the original author or authors.
* Copyright 2012-201
6
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -18,7 +18,6 @@ package sample.atomikos;
import
javax.transaction.Transactional
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.jms.core.JmsTemplate
;
import
org.springframework.stereotype.Service
;
...
...
@@ -30,7 +29,6 @@ public class AccountService {
private
final
AccountRepository
accountRepository
;
@Autowired
public
AccountService
(
JmsTemplate
jmsTemplate
,
AccountRepository
accountRepository
)
{
this
.
jmsTemplate
=
jmsTemplate
;
this
.
accountRepository
=
accountRepository
;
...
...
spring-boot-samples/spring-boot-sample-jta-bitronix/src/main/java/sample/bitronix/AccountService.java
View file @
355860fd
/*
* Copyright 2012-201
4
the original author or authors.
* Copyright 2012-201
6
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -18,7 +18,6 @@ package sample.bitronix;
import
javax.transaction.Transactional
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.jms.core.JmsTemplate
;
import
org.springframework.stereotype.Service
;
...
...
@@ -30,7 +29,6 @@ public class AccountService {
private
final
AccountRepository
accountRepository
;
@Autowired
public
AccountService
(
JmsTemplate
jmsTemplate
,
AccountRepository
accountRepository
)
{
this
.
jmsTemplate
=
jmsTemplate
;
this
.
accountRepository
=
accountRepository
;
...
...
spring-boot-samples/spring-boot-sample-jta-jndi/src/main/java/sample/jndi/AccountService.java
View file @
355860fd
/*
* Copyright 2012-201
4
the original author or authors.
* Copyright 2012-201
6
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -16,7 +16,6 @@
package
sample
.
jndi
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.jms.core.JmsTemplate
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
...
...
@@ -29,7 +28,6 @@ public class AccountService {
private
final
AccountRepository
accountRepository
;
@Autowired
public
AccountService
(
JmsTemplate
jmsTemplate
,
AccountRepository
accountRepository
)
{
this
.
jmsTemplate
=
jmsTemplate
;
this
.
accountRepository
=
accountRepository
;
...
...
spring-boot-samples/spring-boot-sample-jta-jndi/src/main/java/sample/jndi/WebController.java
View file @
355860fd
/*
* Copyright 2012-201
4
the original author or authors.
* Copyright 2012-201
6
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -16,7 +16,6 @@
package
sample
.
jndi
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
...
...
@@ -27,7 +26,6 @@ public class WebController {
private
final
AccountRepository
repository
;
@Autowired
public
WebController
(
AccountService
service
,
AccountRepository
repository
)
{
this
.
service
=
service
;
this
.
repository
=
repository
;
...
...
spring-boot-samples/spring-boot-sample-web-groovy-templates/src/main/java/sample/groovytemplates/mvc/MessageController.java
View file @
355860fd
/*
* Copyright 2012-201
5
the original author or authors.
* Copyright 2012-201
6
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
sample
.
groovytemplates
.
mvc
;
import
java.util.HashMap
;
...
...
@@ -23,7 +24,6 @@ import javax.validation.Valid;
import
sample.groovytemplates.Message
;
import
sample.groovytemplates.MessageRepository
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.validation.BindingResult
;
import
org.springframework.validation.FieldError
;
...
...
@@ -38,9 +38,9 @@ import org.springframework.web.servlet.mvc.support.RedirectAttributes;
@Controller
@RequestMapping
(
"/"
)
public
class
MessageController
{
private
final
MessageRepository
messageRepository
;
@Autowired
public
MessageController
(
MessageRepository
messageRepository
)
{
this
.
messageRepository
=
messageRepository
;
}
...
...
spring-boot-samples/spring-boot-sample-web-ui/src/main/java/sample/web/ui/mvc/MessageController.java
View file @
355860fd
/*
* Copyright 2012-201
5
the original author or authors.
* Copyright 2012-201
6
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
sample
.
web
.
ui
.
mvc
;
...
...
@@ -18,7 +21,6 @@ import javax.validation.Valid;
import
sample.web.ui.Message
;
import
sample.web.ui.MessageRepository
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.validation.BindingResult
;
import
org.springframework.web.bind.annotation.ModelAttribute
;
...
...
@@ -35,9 +37,9 @@ import org.springframework.web.servlet.mvc.support.RedirectAttributes;
@Controller
@RequestMapping
(
"/"
)
public
class
MessageController
{
private
final
MessageRepository
messageRepository
;
@Autowired
public
MessageController
(
MessageRepository
messageRepository
)
{
this
.
messageRepository
=
messageRepository
;
}
...
...
spring-boot-samples/spring-boot-sample-websocket-jetty/src/main/java/samples/websocket/jetty/client/SimpleClientWebSocketHandler.java
View file @
355860fd
/*
* Copyright 2012-201
5
the original author or authors.
* Copyright 2012-201
6
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -22,7 +22,6 @@ import java.util.concurrent.atomic.AtomicReference;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.LogFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.socket.TextMessage
;
import
org.springframework.web.socket.WebSocketSession
;
import
org.springframework.web.socket.handler.TextWebSocketHandler
;
...
...
@@ -37,7 +36,6 @@ public class SimpleClientWebSocketHandler extends TextWebSocketHandler {
private
final
AtomicReference
<
String
>
messagePayload
;
@Autowired
public
SimpleClientWebSocketHandler
(
GreetingService
greetingService
,
CountDownLatch
latch
,
AtomicReference
<
String
>
message
)
{
this
.
greetingService
=
greetingService
;
...
...
spring-boot-samples/spring-boot-sample-websocket-jetty/src/main/java/samples/websocket/jetty/echo/EchoWebSocketHandler.java
View file @
355860fd
/*
* Copyright 2012-201
5
the original author or authors.
* Copyright 2012-201
6
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -19,7 +19,6 @@ package samples.websocket.jetty.echo;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.socket.CloseStatus
;
import
org.springframework.web.socket.TextMessage
;
import
org.springframework.web.socket.WebSocketHandler
;
...
...
@@ -35,7 +34,6 @@ public class EchoWebSocketHandler extends TextWebSocketHandler {
private
final
EchoService
echoService
;
@Autowired
public
EchoWebSocketHandler
(
EchoService
echoService
)
{
this
.
echoService
=
echoService
;
}
...
...
spring-boot-samples/spring-boot-sample-websocket-tomcat/src/main/java/samples/websocket/tomcat/client/SimpleClientWebSocketHandler.java
View file @
355860fd
/*
* Copyright 2012-201
5
the original author or authors.
* Copyright 2012-201
6
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -22,7 +22,6 @@ import java.util.concurrent.atomic.AtomicReference;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.LogFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.socket.TextMessage
;
import
org.springframework.web.socket.WebSocketSession
;
import
org.springframework.web.socket.handler.TextWebSocketHandler
;
...
...
@@ -37,7 +36,6 @@ public class SimpleClientWebSocketHandler extends TextWebSocketHandler {
private
final
AtomicReference
<
String
>
messagePayload
;
@Autowired
public
SimpleClientWebSocketHandler
(
GreetingService
greetingService
,
CountDownLatch
latch
,
AtomicReference
<
String
>
message
)
{
this
.
greetingService
=
greetingService
;
...
...
spring-boot-samples/spring-boot-sample-websocket-tomcat/src/main/java/samples/websocket/tomcat/echo/EchoWebSocketHandler.java
View file @
355860fd
/*
* Copyright 2012-201
5
the original author or authors.
* Copyright 2012-201
6
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -19,7 +19,6 @@ package samples.websocket.tomcat.echo;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.socket.CloseStatus
;
import
org.springframework.web.socket.TextMessage
;
import
org.springframework.web.socket.WebSocketHandler
;
...
...
@@ -35,7 +34,6 @@ public class EchoWebSocketHandler extends TextWebSocketHandler {
private
final
EchoService
echoService
;
@Autowired
public
EchoWebSocketHandler
(
EchoService
echoService
)
{
this
.
echoService
=
echoService
;
}
...
...
spring-boot-samples/spring-boot-sample-websocket-undertow/src/main/java/samples/websocket/undertow/client/SimpleClientWebSocketHandler.java
View file @
355860fd
/*
* Copyright 2012-201
5
the original author or authors.
* Copyright 2012-201
6
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -22,7 +22,6 @@ import java.util.concurrent.atomic.AtomicReference;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.LogFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.socket.TextMessage
;
import
org.springframework.web.socket.WebSocketSession
;
import
org.springframework.web.socket.handler.TextWebSocketHandler
;
...
...
@@ -37,7 +36,6 @@ public class SimpleClientWebSocketHandler extends TextWebSocketHandler {
private
final
AtomicReference
<
String
>
messagePayload
;
@Autowired
public
SimpleClientWebSocketHandler
(
GreetingService
greetingService
,
CountDownLatch
latch
,
AtomicReference
<
String
>
message
)
{
this
.
greetingService
=
greetingService
;
...
...
spring-boot-samples/spring-boot-sample-websocket-undertow/src/main/java/samples/websocket/undertow/echo/EchoWebSocketHandler.java
View file @
355860fd
/*
* Copyright 2012-201
5
the original author or authors.
* Copyright 2012-201
6
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -19,7 +19,6 @@ package samples.websocket.undertow.echo;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.socket.CloseStatus
;
import
org.springframework.web.socket.TextMessage
;
import
org.springframework.web.socket.WebSocketHandler
;
...
...
@@ -35,7 +34,6 @@ public class EchoWebSocketHandler extends TextWebSocketHandler {
private
final
EchoService
echoService
;
@Autowired
public
EchoWebSocketHandler
(
EchoService
echoService
)
{
this
.
echoService
=
echoService
;
}
...
...
spring-boot-samples/spring-boot-sample-ws/src/main/java/sample/ws/endpoint/HolidayEndpoint.java
View file @
355860fd
/*
* Copyright 2012-201
4
the original author or authors.
* Copyright 2012-201
6
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -30,7 +30,6 @@ import org.jdom2.xpath.XPathExpression;
import
org.jdom2.xpath.XPathFactory
;
import
sample.ws.service.HumanResourceService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.ws.server.endpoint.annotation.Endpoint
;
import
org.springframework.ws.server.endpoint.annotation.PayloadRoot
;
import
org.springframework.ws.server.endpoint.annotation.RequestPayload
;
...
...
@@ -46,7 +45,6 @@ public class HolidayEndpoint {
private
HumanResourceService
humanResourceService
;
@Autowired
public
HolidayEndpoint
(
HumanResourceService
humanResourceService
)
throws
JDOMException
,
XPathFactoryConfigurationException
,
XPathExpressionException
{
...
...
spring-boot/src/test/java/org/springframework/boot/logging/LoggingApplicationListenerIntegrationTests.java
View file @
355860fd
...
...
@@ -18,7 +18,6 @@ package org.springframework.boot.logging;
import
org.junit.Test
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.builder.SpringApplicationBuilder
;
import
org.springframework.context.ConfigurableApplicationContext
;
import
org.springframework.stereotype.Component
;
...
...
@@ -50,7 +49,6 @@ public class LoggingApplicationListenerIntegrationTests {
private
final
LoggingSystem
loggingSystem
;
@Autowired
SampleService
(
LoggingSystem
loggingSystem
)
{
this
.
loggingSystem
=
loggingSystem
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment