As Ive said before, Bartons reputation precedes him. So incidents like this are bound to flare up against him. It did look painful but it definitely didnt look intentional in his defense.
I didnt see anything he did after the match so I cant comment, but the challenge on Mendes seemed purely accidental.