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
@@ -1,16 +1,10 @@
package com.baeldung.throwsexception;
import javax.annotation.Nullable;
import java.sql.SQLException;
import java.util.List;
public class PersonRepository {
@Nullable
public String findNameById(String id) {
return id == null ? null : "Name";
}
public List<String> findAll() throws SQLException {
throw new SQLException();
}