Skip to main content
3 of 4
edited tags
Jamal Mod
  • 35.2k
  • 2
  • 54
  • 106

Edit a question to add comments to the code?

In this question, an edit to the code (by other than the asker) added this block of comments to the code:

    // duplication
    //     ||
    //    \||/
    //     \/
    try {
        listener = (SomeListener) activity;
    } catch (ClassCastException e) {
        throw new ClassCastException(activity.toString()
                + " must implement SomeListener");
    }

This appears to be an answer or comment, of sorts.

Is this good practice? Should I flag it for moderator attention?

Wayne Conrad
  • 3.3k
  • 13
  • 6