In this questionthis 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?