Pointers, Lists and Vectors attribute names necessary in the UML diagram?
<p>I have a short question:<br>
Should I name attributes of types like a List, Arrays, Vectors or Pointers to objects (not primitive type) in the UML diagram or the only association/aggregation/composition arrows are enough?</p>

<p>Example: which of these diagrams is correct?</p>

<p><a href="https://i.stack.imgur.com/aEZl3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aEZl3.png" alt="enter image description here"></a></p>

<p>or</p>

<p><a href="https://i.stack.imgur.com/rWXDH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rWXDH.png" alt="enter image description here"></a></p>