Skip to content

Commit adc689a

Browse files
committed
Added mergeFunction to toMap() to avoid duplicate keys
1 parent 86cb80a commit adc689a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ instrumentCode {
1616
}
1717

1818
group 'com.reallyliri.plugins'
19-
version '1.2'
19+
version '1.3'
2020

2121
sourceCompatibility = 1.8
2222

src/main/java/com/reallyliri/plugins/interfacepairing/InterfacePairingSolutionExplorerCustomization.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ private void setInterfacePairingSortKeys(ProjectModelNode parentNode) {
3434
ArrayList<ProjectModelNode> children = parentNode.getChildren(true, false);
3535
Map<@NotNull String, ProjectModelNode> fileNodesByName = children.stream()
3636
.filter(node -> node.getDescriptor() instanceof RdProjectFileDescriptor)
37-
.collect(Collectors.toMap(ProjectModelNode::getName, node -> node));
37+
.collect(Collectors.toMap(ProjectModelNode::getName, node -> node, (node1, node2) -> node1));
3838

3939
if (fileNodesByName.isEmpty()) {
4040
return;

src/main/resources/META-INF/plugin.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<id>com.reallyliri.plugins.interfacepairing</id>
33
<name>Interface Pairing</name>
44
<vendor url="https://github.com/reallyliri">ReallyLiri</vendor>
5-
<version>1.2</version>
6-
<idea-version since-build="*" />
5+
<version>1.3</version>
6+
<idea-version since-build="191" />
77

88
<description>Pairing C# interface files with implementations files in solution explorer for a better display experience.</description>
99

0 commit comments

Comments
 (0)