Для Windows:
blockquote>> rm -Force ./.git/index.lock
- Если это не работает, вы должны убить все процессы git.exe
blockquote>> taskkill /F /IM git.exe SUCCESS: The process "git.exe" with PID 20448 has been terminated. SUCCESS: The process "git.exe" with PID 11312 has been terminated. SUCCESS: The process "git.exe" with PID 23868 has been terminated. SUCCESS: The process "git.exe" with PID 27496 has been terminated. SUCCESS: The process "git.exe" with PID 33480 has been terminated. SUCCESS: The process "git.exe" with PID 28036 has been terminated. > rm -Force ./.git/index.lock
Вы можете использовать flatMap потоков и комбинировать все записи со всех карт, полученных методом преобразования, как:
Map<key,SomeClassObjectAsValue> newMap =
mapOfTypeX.entrySet()
.stream()
.flatMap(e -> transform(e).entrySet().stream())
.collect(Collectors
.toMap(Map.Entry::getKey, Map.Entry::getValue,(oldValue, newValue) -> oldValue));