modelize: useless-visibility is an advice
authorJean Privat <jean@pryen.org>
Fri, 19 Sep 2014 19:08:40 +0000 (15:08 -0400)
committerJean Privat <jean@pryen.org>
Mon, 22 Sep 2014 15:28:42 +0000 (11:28 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

src/modelize/modelize_property.nit

index b6371f6..52671e4 100644 (file)
@@ -404,8 +404,7 @@ redef class APropdef
                                modelbuilder.error(nvisibility, "Error: The only legal visibility for properties in a private class is private.")
                        else if mvisibility == private_visibility then
                                assert nvisibility != null
-                               # Not yet
-                               modelbuilder.warning(nvisibility, "useless-visibility", "Warning: private is superfluous since the only legal visibility for properties in a private class is private.")
+                               modelbuilder.advice(nvisibility, "useless-visibility", "Warning: private is superfluous since the only legal visibility for properties in a private class is private.")
                        end
                        mvisibility = private_visibility
                end