fix Classcanbestatic (#5597)

Inner class is non-static but does not reference enclosing class

ref: https://errorprone.info/bugpattern/ClassCanBeStatic

Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
This commit is contained in:
Kdump 2020-10-01 08:18:00 +08:00 committed by GitHub
parent 7d5d8b4335
commit 8a8df3550e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -110,8 +110,8 @@ public class MultipleChannelsConsumer extends Thread {
running = false;
}
private class Group {
private Channels channels;
private static class Group {
private Channels channels;
private IConsumer consumer;
public Group(Channels channels, IConsumer consumer) {