jsnsndn | 6 months ago | on: All New Java Language Features Since Java 21 While I do use `var` when appropriate, your example is in general not appropriateYou would like to use Map<Key, Value> items = new HashMap<>() since in general you do not want implementation detail leaking into contracts
You would like to use Map<Key, Value> items = new HashMap<>() since in general you do not want implementation detail leaking into contracts