Skip to content

Commit 537b42d

Browse files
committed
[#164] Fixed mistake in error message
1 parent bb87cef commit 537b42d

File tree

1 file changed

+1
-1
lines changed
  • atom-basis/src/main/java/oo/atom/codegen/bytebuddy/validator

1 file changed

+1
-1
lines changed

atom-basis/src/main/java/oo/atom/codegen/bytebuddy/validator/ValAtom.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public ValAtom() {
3939
super(
4040
new ValSingle(new AllFieldsArePrivateFinal(), "All Atom's fields must be private final"),
4141
new ValSingle(new NoArrayFields(), "Fields of array type are restricted in Atoms"),
42-
new ValSingle(new AllMethodsAreFinal(), "All Atom's methods must be private final"),
42+
new ValSingle(new AllMethodsAreFinal(), "All Atom's methods must be public final"),
4343
new ValSingle(new HasNoStaticMethods(), "Atom shouldn't have static methods"),
4444
new ValSingle(new IsNotAbstract(), "Atoms can't be abstract")
4545
);

0 commit comments

Comments
 (0)