1962 war was for aksai chin,the Chinese didn't withdraw from what they captured.Chinese leader warned the Indians against border encroachment beforehand ,just like they warned the Vietnamese for invading Cambodia,and the Americans before the US invaded the 38th parallel in Korea ,when the other side didn't heed Chinese warning we all know what happens later,.
Now ,Xi again ,though in a more subtle manner, warned US(Biden) against provocation in Taiwan strait,I sense China has ticked their box for onus of warning and will follow through with a war if provocation escalated in strait.