Allow empty string in shadowMethod for backward compatibility.