-
Notifications
You must be signed in to change notification settings - Fork 24.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hide internal details of ActionListener impls (#94320)
The `ActionListener` interface implements its static methods using various inner classes. These inner classes are public because interfaces do not support package-private inner classes, although they are `final` and only have `protected` constructors which prevent anyone else from instantiating them. It's certainly a mistake for code in other packages to access these things. This commit moves the implementation details into a separate class to hide them from the rest of the world. It also tightens up the calls to `onFailure()` in a few places to better handle the possibility of this method throwing an exception. Finally, it moves `DelegatingActionListener` to a top level public class since this utility is used in quite a number of places.
- Loading branch information
1 parent
0bd7373
commit e1ad46b
Showing
34 changed files
with
391 additions
and
314 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
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
Oops, something went wrong.