Skip to content

Commit a2a1375

Browse files
author
adam.kaczmmarek@gmail.com
committed
2 parents eeaf7e4 + 5ed46c2 commit a2a1375

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

converter/src/main/java/com/iluwatar/converter/App.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,7 @@ public class App {
4141
* @param args command line args
4242
*/
4343
public static void main(String[] args) {
44-
Converter<UserDto, User> userConverter = new Converter<>(
45-
userDto -> new User(userDto.getFirstName(), userDto.getLastName(), userDto.isActive(),
46-
userDto.getEmail()),
47-
user -> new UserDto(user.getFirstName(), user.getLastName(), user.isActive(), user.getUserId()));
44+
Converter<UserDto, User> userConverter = new UserConverter();
4845

4946
UserDto dtoUser = new UserDto("John", "Doe", true, "whatever[at]wherever.com");
5047
User user = userConverter.convertFromDto(dtoUser);

decorator/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Wikipedia says
3535
3636
**Programmatic Example**
3737

38-
Lets take the troll example. First of all we have a simple troll implementing the troll interface
38+
Let's take the troll example. First of all we have a simple troll implementing the troll interface
3939

4040
```
4141
public interface Troll {

0 commit comments

Comments
 (0)