Skip to content

Commit

Permalink
singleOptional changed to single
Browse files Browse the repository at this point in the history
  • Loading branch information
morrowgi committed Jun 21, 2017
1 parent 949e9be commit 7d1859e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ private Map<String, String> manifest() {
.getClassLoader()
.getResourceAsStream(url))
.map(this::getManifest)
.singleOptional()
.single()
.orElse(null);
} catch (Exception e) {
logger.warn("Warning : can't load manifest due to exception {}", e.getMessage());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public String getType(Class c) {
.stream()
.flatMap(Stream::of)
.takeRight(1)
.singleOptional()
.single()
.map(i -> i + ".")
.orElse("")
+ c.getSimpleName();
Expand Down

0 comments on commit 7d1859e

Please sign in to comment.