Skip to main content
4 of 4
replaced http://codereview.stackexchange.com/ with https://codereview.stackexchange.com/

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
  • 12
  • 6