The resolution , which is nonbinding but reflective of European public opinion , was sharply critical of China for adopting legislation recently that would require China to go to war in the event of significant moves by Taiwan toward independence .