Move optional to java-8-core (#5105)

This commit is contained in:
Kacper
2018-08-29 15:51:41 +02:00
committed by maibin
parent 9028707a89
commit c4cb6eec73
3 changed files with 11 additions and 18 deletions
@@ -0,0 +1,9 @@
package com.baeldung.optional;
public class PersonRepository {
public String findNameById(String id) {
return id == null ? null : "Name";
}
}