diff --git a/src/jastadd/ast/AttributeProblems.jrag b/src/jastadd/ast/AttributeProblems.jrag index 3d29e4d7069595421e54716624c4394a192d9096..e81c188b7a2c92ec3cd7b3f460aed9c8f4a54a9a 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 a8f9c6b987b84195a8cc0ea8fdcb597fa9f660f2..d11fce3b995f0513c5dc39e44e351b098f4a0638 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"); } } }