We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mybatis-3/src/main/java/org/apache/ibatis/util/MapUtil.java
Line 35 in acde70c
Present version
public static <K, V> V computeIfAbsent(Map<K, V> map, K key, Function<K, V> mappingFunction) { V value = map.get(key); if (value != null) { return value; } return map.computeIfAbsent(key, mappingFunction::apply); // Object repeated creation }
Fix
public static <K, V> V computeIfAbsent(Map<K, V> map, K key, Function<K, V> mappingFunction) { V value = map.get(key); if (value != null) { return value; } return map.computeIfAbsent(key, mappingFunction); // Pass parameters directly }
The text was updated successfully, but these errors were encountered:
Did I understand it wrong? ? ?
Sorry, something went wrong.
Oh, you are right. Would you care to send us a pull request? If you are busy, that is okay. I'll fix it later.
Yes
PR merged. Thank you!
harawata
No branches or pull requests
mybatis-3/src/main/java/org/apache/ibatis/util/MapUtil.java
Line 35 in acde70c
Present version
Fix
The text was updated successfully, but these errors were encountered: