By the end of the war, under the Treaty of San Francisco, it was AGREED by Allies, including China but cannot attend due to ongoing civil war, that Japan SHOULD and MUST return all territories occupied during the war as part of unconditional surrender AND that Japan shall maintain ONLY the four largest island territories (ie, none of which contain Diaoyu/Senkaku).