Skip to content

Commit 4375c0d

Browse files
author
emineoymak
committed
Merge remote-tracking branch 'origin/BAEL-2399' into BAEL-2399
3 parents ff9830d + 891fde1 + 5db82aa commit 4375c0d

24 files changed

Lines changed: 191 additions & 332 deletions

guice/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
</dependencies>
3838

3939
<properties>
40-
<guice.version>4.1.0</guice.version>
40+
<guice.version>4.2.2</guice.version>
4141
<spring.version>5.1.3.RELEASE</spring.version>
4242
<springtest.version>5.1.3.RELEASE</springtest.version>
4343
</properties>

guice/src/main/java/com/baeldung/examples/common/Account.java

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,23 @@
55
@Component
66
public class Account {
77

8-
private String accountNumber;
9-
private String type;
8+
private String accountNumber;
9+
private String type;
1010

11-
public String getAccountNumber() {
12-
return accountNumber;
13-
}
11+
public String getAccountNumber() {
12+
return accountNumber;
13+
}
1414

15-
public void setAccountNumber(String accountNumber) {
16-
this.accountNumber = accountNumber;
17-
}
15+
public void setAccountNumber(String accountNumber) {
16+
this.accountNumber = accountNumber;
17+
}
1818

19-
public String getType() {
20-
return type;
21-
}
19+
public String getType() {
20+
return type;
21+
}
2222

23-
public void setType(String type) {
24-
this.type = type;
25-
}
23+
public void setType(String type) {
24+
this.type = type;
25+
}
2626

2727
}
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
package com.baeldung.examples.common;
22

3-
import java.util.List;
4-
53
public interface AccountService {
6-
public List<String> listAccountTypes();
74

85
}
Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
11
package com.baeldung.examples.common;
22

3-
import java.util.Arrays;
4-
import java.util.List;
5-
63
import org.springframework.stereotype.Component;
74

85
@Component
96
public class AccountServiceImpl implements AccountService {
107

11-
public List<String> listAccountTypes() {
12-
return Arrays.asList("Checking", "Saving");
13-
}
14-
158
}

guice/src/main/java/com/baeldung/examples/common/Address.java

Lines changed: 0 additions & 35 deletions
This file was deleted.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package com.baeldung.examples.common;
2+
3+
public interface AudioBookService {
4+
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package com.baeldung.examples.common;
2+
3+
public class AudioBookServiceImpl implements AudioBookService {
4+
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package com.baeldung.examples.common;
2+
3+
public interface AuthorService {
4+
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package com.baeldung.examples.common;
2+
3+
public class AuthorServiceImpl implements AuthorService {
4+
5+
}
Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
package com.baeldung.examples.common;
22

3-
import java.util.List;
4-
53
public interface BookService {
64

7-
public List<String> findBestSellerBooks();
8-
95
}

0 commit comments

Comments
 (0)