Skip to content

Commit

Permalink
Fix javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
Siedlerchr committed Apr 20, 2017
1 parent 90ec742 commit ba8495d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/jabref/gui/DialogService.java
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ Optional<ButtonType> showCustomButtonDialogAndWait(Alert.AlertType type, String
/**
* Shows a new file open dialog. The method doesn't return until the
* displayed open dialog is dismissed. The return value specifies
* the files chosen by the user or an empty {@link Optional} if no selection has been
* the files chosen by the user or an empty {@link List} if no selection has been
* made.
*
* @return the selected files or an empty {@link List} if no file has been selected
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ public Builder withInitialDirectory(Path directory) {
return this;
}

public Builder withInitialDirectory(String directory) {
withInitialDirectory(Paths.get(directory));
return this;
}

public Builder withDefaultExtension(FileExtensions extension) {
defaultExtension = toFilter(extension);
return this;
Expand All @@ -97,9 +102,5 @@ public Builder withInitialFileName(String initialFileName) {

}

public Builder withInitialDirectory(String directory) {
withInitialDirectory(Paths.get(directory));
return this;
}
}
}

0 comments on commit ba8495d

Please sign in to comment.