Anthony "Rumble" Johnson's domestic violence case is closed ... the ex-UFC star just cut a deal with prosecutors and won't have to spend more time behind bars.
Johnson was arrested back on May 6 in Palm Beach County, Florida after his girlfriend told cops the former fighter roughed her up during an argument.
In police docs, Johnson said he DID pick the woman up to carry her to a different room because he was tired of arguing ... but he insists he never tried to hurt her.
Johnson was hit with a misdemeanor domestic battery charge ... and faced up to 1 YEAR in jail.
But, Johnson's attorney, Michael Walsh, tells TMZ Sports Johnson reached an agreement with prosecutors this month to enter a pretrial diversion program.
Walsh says Johnson will be required to complete an anger management course ... and once he's done that, the case will be dismissed.
Walsh -- who called the deal a "no-brainer" for Johnson -- says the 35-year-old has until Oct. 21 to complete the course ... although he could request an extension.
Johnson retired from fighting back in 2017 with a 22-6 record as a pro ... with wins over stars like Glover Teixeira, Ryan Bader and Alexander Gustafsson.
There are rumblings Johnson could return to the Octagon in 2020.