How inefficient is passing Collections.unmodifiable* an instance which is already wrapped with Collections.unmodifiable*?
问题 I have bits of piecework being done by different custom (source code unavailable) frameworks which hand back Map instances. Unfortunately, these frameworks are not consistent in their returning Map instances which have been wrapped with Collections.unmodifiableMap. To ensure a higher degree of immutability (for easier multi-threaded use) in my code, I have just uniformly called Collections.unmodifiableMap on anything returned by these frameworks. Map<String, Record> immutableMap = framework