-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minor refactor to JabRefDialogService (#11767)
* minor refactor to JabRefDialogService 1. replace multiple if-else to switch case 2. remove unused generics `<V>` 3. replace `.collect(Collectors.toList())` to `.toList()` 4. remove unnecessary braces * Update JabRefDialogService 1. remove `type` parameter in createDialogWithOptOut, since it always be `AlertType.CONFIRMATION` 2. remove `Math.min` in `shortenDialogMessage`, since it after a if compare, it means the dialogMessage.length() is always not less than JabRefDialogService.DIALOG_SIZE_LIMIT 3. refactor the switch case more. 4. fix the indent issue. * fix missing Localization.lang fix missing Localization.lang * fix missing string add missing newline character and localizedMessage * fix Localization.lang issue need to use plain string not a method result or a var to pass the unit test.
- Loading branch information
Showing
1 changed file
with
32 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters