Skip to content

Cascade does not propose fixes for purity errors #52

Description

@reprogrammer

Cascade doesn't propose fixes for some of the purity error messages that the nullness checker reports. Below is one such error message.

warning: [purity.invalid.overriding] String toString(BiGraph this) in em3d.BiGraph cannot override String toString(Object this) in java.lang.Object; attempting to use an incompatible purity declaration
   public String toString() {
                 ^
   found   : []
   required: [SIDE_EFFECT_FREE]

In this case, the fix would be to simply annotate the toString method as @SideEffectFree.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions