Even if Japan doesn't want to defend Taiwan, the close geography makes conflict between china and Japan (and the USA) if China invades Taiwan.