A related question:
Suppose the Celtics determine on July 2nd that they could have either Amir Johnson and Jonas Jerebko for $17 million next season, or Festus Ezeli and Harrison Barnes for $38 million (and signed to 4-year deals). Are those two collectively an upgrade, and worth it given the longer deals and relative youth (3 and 5 years younger, and more on the same development curve with the rest of the Celtics)? The C's would still be $12-15 million under the cap in such a scenario.
Furthermore, would acquiring Johnson and Jerebko be interesting to the Warriors, in a universe where Durant stays in OKC? The major savings would make it simpler to keep Speights and Barbosa, as well as an interesting player like Ian Clark. It also wouldn't give them salary obligations in summer 2017, when Curry, Iggy, and Bogut are all free agents.
In other words, if the Celtics and the Warriors talked about a sign-and-trade of Barnes and Ezeli for Johnson and Jerebko, does it make sense for one, both, or neither of the teams?