LOS ANGELES (AP)The Los Angeles Dodgers on Thursday acquired infielder Yonny Hernandez from the Oakland Athletics in exchange for cash.

The 24-year-old switch-hitter played in 12 games for Arizona last season after being traded by Texas in April. Hernandez was claimed by Oakland last month and was designated for assignment this week.

He played 10 games at third base and two at second base for the Diamondbacks. Hernandez has hit .198 with 13 stolen bases while playing shortstop, second base and third base in 55 career major-league games with the Rangers and D-backs.

Hernandez spent seven seasons in the minors, mostly with the Rangers organization, hitting .262 with 21 triples and 184 stolen bases in 532 games.

The Dodgers’ 40-man roster now stands at 39.

AP MLB: https://apnews.com/hub/MLB and https://twitter.com/AP-Sports