It's not about the laws, but rather the casual racism.
What I have noticed is internet commenters who have never even been to Japan, let alone lived here, talking about the "casual racism" that they think is so common here just because they read someone else on the internet make that claim. I see this in probably every discussion about Japan either here or especially on Reddit.