You mentioned you obey the law so you probably don't do this. Even if the law does not prohibit riding on the sidewalk, you should never ride on the sidewalk.
Just wanted to take this time to remind everyone that bicycles do not belong on the sidewalk.