Last active
April 24, 2017 18:46
-
-
Save romach/c0fbecd0c65ef5446cd5a6b40d9abebb to your computer and use it in GitHub Desktop.
Create map to fit PMD UseConcurrentHashMap rule
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final Map<String, Object> map = Maps.newHashMap(); | |
map.put("value", new Integer()); | |
ImmutableMap.of("param", 2.0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment