Skip to content

Commit

Permalink
Issue #64 Refactor project according to IntelliJ inspection suggestions.
Browse files Browse the repository at this point in the history
  • Loading branch information
simondelabici committed Mar 24, 2020
1 parent ca6ce67 commit ee87ab4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class BlockingQueueMonitorNotificationServiceFactory implements MonitorNo

private static final Logger logger = Logger.getLogger( BlockingQueueMonitorNotificationServiceFactory.class.getName() );

private final List<MonitorNotificationService> serviceList = new ArrayList<>();
private final List<MonitorNotificationService<?>> serviceList = new ArrayList<>();
private final ThreadPoolExecutor threadPoolExecutor;
private final int bufferSize;
private final int numberOfThreads;
Expand Down Expand Up @@ -87,7 +87,7 @@ public <T> MonitorNotificationService<T> getServiceForConsumer( Consumer<? super
public void close()
{
logger.log( Level.FINEST, String.format( "A BlockingQueueMonitorNotificationServiceFactory is being closed with %d service entries...", getServiceCount() ) );
for ( MonitorNotificationService service : serviceList )
for ( MonitorNotificationService<?> service : serviceList )
{
service.close();
}
Expand Down Expand Up @@ -158,7 +158,7 @@ private MyThreadFactory( String prefix )
@Override
public Thread newThread( Runnable r )
{
return new Thread(r, prefix + String.valueOf( id++ ) );
return new Thread(r, prefix + id++);
}
}

Expand Down

0 comments on commit ee87ab4

Please sign in to comment.