Javelina isn't a pig it's a rodent!
Sent from my iPhone using Tapatalk
You might be thinking of capybaras. Javelina are new world pigs, a different family to sus scrofa (eurasian boar/hogs/pigs whatever) but they're all pigs/suids, and not rodents.
Warthogs are another pig you would think is very dangerous for dogs, but actually they're just really really fast and can only really be hunted with sighthounds. Other than that they're actually easier than hogs.