JDA
JDA copied to clipboard
Removes unnecessary recalculation
Pull Request Etiquette
- [x] I have checked the PRs for upcoming features/bug fixes.
- [x] I have read the contributing guidelines.
Changes
- [x] Internal code
- [ ] Library interface (affecting end-user code)
- [ ] Documentation
Description
Removed recalculation of all listeners on registration at AnnotatedEventManager. Also added the varargs for listener registrar method. A usable edit with no negative effects.
The token cannot be empty. Because pre-checked field. Removed unnecessary check.
Should we add unit tests for this?
I don't think it should be. My attempts works well. The MessageListenerExample.java works fine.
Nothing like that will happen.
https://github.com/DV8FromTheWorld/JDA/blob/development/src/main/java/net/dv8tion/jda/internal/utils/config/AuthorizationConfig.java
bump.
I guess, but well
This needs to be rebased against master
Could you rebase this on master?
Superseded by #2454