remove tri-state logic from IncludeExcludeConnectionStatistics

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
Lachlan Roberts 2020-08-18 10:18:44 +10:00
parent 1663a6d7af
commit c37d902ef7
1 changed files with 2 additions and 2 deletions

View File

@ -64,14 +64,14 @@ public class IncludeExcludeConnectionStatistics extends ConnectionStatistics
@Override
public void onOpened(Connection connection)
{
if (Boolean.TRUE.equals(_set.isIncludedAndNotExcluded(connection)))
if (_set.test(connection))
super.onOpened(connection);
}
@Override
public void onClosed(Connection connection)
{
if (Boolean.TRUE.equals(_set.isIncludedAndNotExcluded(connection)))
if (_set.test(connection))
super.onClosed(connection);
}