From 857621a3cb332aa7684a1d4900db337a050a4439 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jesper=20=C3=96qvist?= <jesper.oqvist@cs.lth.se>
Date: Wed, 18 Nov 2020 10:21:35 +0100
Subject: [PATCH] Replace "can not" with "cannot"

---
 src/jastadd/ast/AttributeProblems.jrag | 2 +-
 src/java/org/jastadd/Problem.java      | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/jastadd/ast/AttributeProblems.jrag b/src/jastadd/ast/AttributeProblems.jrag
index 3d29e4d7..e81c188b 100644
--- a/src/jastadd/ast/AttributeProblems.jrag
+++ b/src/jastadd/ast/AttributeProblems.jrag
@@ -467,7 +467,7 @@ aspect AttributeProblems {
       if (value == null) {
         msg = "missing CollectionGroup argument";
       } else if (value.equals("")) {
-        msg = "CollectionGroup argument can not be empty";
+        msg = "CollectionGroup argument cannot be empty";
       } else if (!isValidIdentifierPart(value)) {
         msg = "CollectionGroup argument must be a valid identifier part";
       }
diff --git a/src/java/org/jastadd/Problem.java b/src/java/org/jastadd/Problem.java
index a8f9c6b9..d11fce3b 100644
--- a/src/java/org/jastadd/Problem.java
+++ b/src/java/org/jastadd/Problem.java
@@ -56,7 +56,7 @@ public abstract class Problem {
 
     public ProblemBuilder sourceFile(String filename) {
       if (filename == null) {
-        throw new NullPointerException("filename can not be null");
+        throw new NullPointerException("filename cannot be null");
       }
       this.filename = filename;
       return this;
@@ -84,7 +84,7 @@ public abstract class Problem {
 
     private void checkNotNull() {
       if (message == null) {
-        throw new NullPointerException("message can not be null");
+        throw new NullPointerException("message cannot be null");
       }
     }
   }
-- 
GitLab