NEW YORK – Veteran goaltender Tim Thomas, who has said he won’t play this season, was traded by the Boston Bruins to the New York Islanders on Thursday for a conditional second-round draft choice next year or in 2015.

Thomas chose to take this season off and was suspended by the Bruins after he didn’t report to training camp last month. The 38-year-old goalie is in the final season of a four-year deal that counts for $5 million against the salary cap.

The Islanders have plenty of room to fit Thomas’ salary on their cap, and this deal provides financial flexibility for the Bruins. Boston was up against the upper salary limit of $70.2 million, with Thomas’ salary factored in, and New York is only marginally above the minimum payroll of $44 million.

“We felt this would give us flexibility immediately. It was us being proactive,” said Bruins General Manager Peter Chiarelli, adding that he had been having on-and-off discussions with the Islanders.

“I don’t really want to get into details. I think I’ve made it known publicly this was something we would like to try to do at some point.”

NHL teams must be in full compliance of the salary cap by Friday. The Islanders will be even further above the cap floor with the imminent return of defenseman Lubomir Visnovsky, who reported to the club for the first time on Wednesday and then passed a physical on Thursday, which led to New York lifting its suspension and placing him on the active roster.

“We have acquired an asset for our organization,” Islanders General Manager Garth Snow said of Thomas. “This acquisition allows us flexibility with our roster moving forward.”

Thomas is unlikely to play for the Islanders this season or in the future. New York already has veteran goalies Evgeni Nabokov and Rick DiPietro on its roster.

Thomas’ absence has created an opportunity for Tuukka Rask, who is 6-1-1 with a 1.97 goals-against average.

“Without getting into specifics,” Chiarelli said, “the (draft pick) condition is basically if (Thomas) plays.”

Thomas, a two-time Vezina Trophy winner as the NHL’s top goalie, has played in 378 regular-season games — all with the Bruins. He has gone 196-121-45 with a 2.48 GAA and 31 shutouts. Thomas ranks fourth on Boston’s career wins list and third in shutouts,

He also has a 29-21 mark in the postseason with a 2.07 GAA and six shutouts. Thomas won the Vezina and Conn Smythe Trophy as playoff MVP when the Bruins won the Stanley Cup in 2011.

“He had a very good career here,” Chiarelli said. “I can’t say enough of his contributions to the team. The journey he took us on in the Stanley Cup was amazing. I was happy to be along for the ride.”

Chiarelli wouldn’t say if Thomas could ever return to Boston.

“I don’t want to speculate on that,” he said. “Tim can be a character and he can also be principled in a lot of different things. He is/was a heck of a goaltender. I liken him sometimes to that left-handed pitcher that’s a little quirky but wins a lot of games and throws 200 innings a year.

“I don’t know how it would have played out.”