Skip to content

Commit fa22396

Browse files
committed
Merge branch '1.5.x'
2 parents 6c50874 + 1a69a4f commit fa22396

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

Diff for: spring-boot-samples/spring-boot-sample-jta-narayana/src/main/java/sample/narayana/AccountService.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2016 the original author or authors.
2+
* Copyright 2012-2017 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.
@@ -18,7 +18,6 @@
1818

1919
import javax.transaction.Transactional;
2020

21-
import org.springframework.beans.factory.annotation.Autowired;
2221
import org.springframework.jms.core.JmsTemplate;
2322
import org.springframework.stereotype.Service;
2423

@@ -30,7 +29,6 @@ public class AccountService {
3029

3130
private final AccountRepository accountRepository;
3231

33-
@Autowired
3432
public AccountService(JmsTemplate jmsTemplate, AccountRepository accountRepository) {
3533
this.jmsTemplate = jmsTemplate;
3634
this.accountRepository = accountRepository;

Diff for: spring-boot-samples/spring-boot-sample-metrics-redis/src/main/java/sample/metrics/redis/SampleController.java

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2016 the original author or authors.
2+
* Copyright 2012-2017 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.
@@ -21,7 +21,6 @@
2121

2222
import org.hibernate.validator.constraints.NotBlank;
2323

24-
import org.springframework.beans.factory.annotation.Autowired;
2524
import org.springframework.context.annotation.Description;
2625
import org.springframework.stereotype.Controller;
2726
import org.springframework.web.bind.annotation.GetMapping;
@@ -33,16 +32,15 @@ public class SampleController {
3332

3433
private final HelloWorldProperties helloWorldProperties;
3534

36-
@Autowired
3735
public SampleController(HelloWorldProperties helloWorldProperties) {
3836
this.helloWorldProperties = helloWorldProperties;
3937
}
4038

4139
@GetMapping("/")
4240
@ResponseBody
4341
public Map<String, String> hello() {
44-
return Collections.singletonMap("message", "Hello " +
45-
this.helloWorldProperties.getName());
42+
return Collections.singletonMap("message",
43+
"Hello " + this.helloWorldProperties.getName());
4644
}
4745

4846
protected static class Message {

Diff for: spring-boot-samples/spring-boot-sample-parent-context/src/main/java/sample/parent/SampleEndpoint.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2016 the original author or authors.
2+
* Copyright 2012-2017 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.
@@ -19,7 +19,6 @@
1919
import java.io.File;
2020
import java.io.FileInputStream;
2121

22-
import org.springframework.beans.factory.annotation.Autowired;
2322
import org.springframework.integration.annotation.MessageEndpoint;
2423
import org.springframework.integration.annotation.ServiceActivator;
2524
import org.springframework.util.StreamUtils;
@@ -29,7 +28,6 @@ public class SampleEndpoint {
2928

3029
private final HelloWorldService helloWorldService;
3130

32-
@Autowired
3331
public SampleEndpoint(HelloWorldService helloWorldService) {
3432
this.helloWorldService = helloWorldService;
3533
}

0 commit comments

Comments
 (0)