minor: java platform check here isn't correct or needed