Skip to content

Commit 77e719a

Browse files
committed
Get rid of unneeded type on data mappers.
1 parent c72e8d5 commit 77e719a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

data/src/main/java/com/fernandocejas/android10/sample/data/entity/mapper/UserEntityDataMapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public User transform(UserEntity userEntity) {
6060
* @return {@link User} if valid {@link UserEntity} otherwise null.
6161
*/
6262
public List<User> transform(Collection<UserEntity> userEntityCollection) {
63-
List<User> userList = new ArrayList<User>(20);
63+
List<User> userList = new ArrayList<>(20);
6464
User user;
6565
for (UserEntity userEntity : userEntityCollection) {
6666
user = transform(userEntity);

presentation/src/main/java/com/fernandocejas/android10/sample/presentation/mapper/UserModelDataMapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public Collection<UserModel> transform(Collection<User> usersCollection) {
6363
Collection<UserModel> userModelsCollection;
6464

6565
if (usersCollection != null && !usersCollection.isEmpty()) {
66-
userModelsCollection = new ArrayList<UserModel>();
66+
userModelsCollection = new ArrayList<>();
6767
for (User user : usersCollection) {
6868
userModelsCollection.add(transform(user));
6969
}

0 commit comments

Comments
 (0)