Bushido The bushido (warrior way) — the samurai code — had come from the bun shun code, ”””””of Korean origin”””””””””. When the daimyo system was abolished the code was adopted for ideological purposes and ultranationalist doctrine. Officers and commanders in the Imperial Japanese Forces carried the katana, the Japanese samurai sword, as well as the Nambu pistol.