The pledge comes as China continues to accuse Japan of "accelerated remilitarization."