He replaces Justice Sandra Day O'Connor , who is retiring .