diff --git a/src/main/kotlin/b/language/server/BWorkspaceService.kt b/src/main/kotlin/b/language/server/BWorkspaceService.kt
index 6ed6d36fb5b84f20ff3321132083b81a23e119d6..4690a89b5ec3108605f2cfac959630968ed12b9a 100644
--- a/src/main/kotlin/b/language/server/BWorkspaceService.kt
+++ b/src/main/kotlin/b/language/server/BWorkspaceService.kt
@@ -8,7 +8,7 @@ import org.eclipse.lsp4j.MessageType
 import org.eclipse.lsp4j.services.WorkspaceService
 
 
-class BWorkspaceService(private val server: Server, val communicator: Communicator) : WorkspaceService {
+class BWorkspaceService(private val server: Server, private val communicator: Communicator) : WorkspaceService {
     /**
      * The watched files notification is sent from the client to the server when
      * the client detects changes to file watched by the language client.
diff --git a/src/main/kotlin/b/language/server/communication/CommunicatorInterface.kt b/src/main/kotlin/b/language/server/communication/CommunicatorInterface.kt
index 64967c770c5b553f193601c384d2379850e36169..bc443c11de63bff084a2f355a3974215e9826839 100644
--- a/src/main/kotlin/b/language/server/communication/CommunicatorInterface.kt
+++ b/src/main/kotlin/b/language/server/communication/CommunicatorInterface.kt
@@ -2,7 +2,6 @@ package b.language.server.communication
 
 import org.eclipse.lsp4j.Diagnostic
 import org.eclipse.lsp4j.MessageType
-import org.eclipse.lsp4j.PublishDiagnosticsParams
 
 /**
  * Describes the basic functions used to communicate with the outside world