From 4355f9f47febe7469e4264d75d603012d863347a Mon Sep 17 00:00:00 2001 From: anhefti Date: Wed, 14 Jun 2023 15:01:14 +0200 Subject: [PATCH] code cleanup --- .../session/impl/SEBClientEventBatchService.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/SEBClientEventBatchService.java b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/SEBClientEventBatchService.java index 3a3852b0..f7fad510 100644 --- a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/SEBClientEventBatchService.java +++ b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/SEBClientEventBatchService.java @@ -71,15 +71,11 @@ public class SEBClientEventBatchService { this.examSessionCacheService = examSessionCacheService; this.jsonMapper = jsonMapper; - this.sqlSessionTemplate = new SqlSessionTemplate( - this.sqlSessionFactory, - ExecutorType.BATCH); - this.clientEventMapper = this.sqlSessionTemplate.getMapper( - ClientEventRecordMapper.class); + this.sqlSessionTemplate = new SqlSessionTemplate(this.sqlSessionFactory, ExecutorType.BATCH); + this.clientEventMapper = this.sqlSessionTemplate.getMapper(ClientEventRecordMapper.class); } private final BlockingDeque eventDataQueue = new LinkedBlockingDeque<>(); - //private final Collection events = new ArrayList<>(); public void accept(final String connectionToken, final String jsonBody) { this.eventDataQueue.add(new EventData(