Homoclinic classes with shadowing property