Which is the metaphor?

He swam in the sea of diamonds.
He swam in a beautiful sea.
The sea sparkled like diamonds.
The sea and diamonds both sparkle.

The metaphor is: "He swam in the sea of diamonds."