Skip to content

Commit 43a9157

Browse files
committed
update changelog
1 parent cbf8238 commit 43a9157

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

CHANGELOG

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
3.0.1
2-
Nov 11, 2022
2+
Nov 12, 2022
33

44
FIX: cannot init component state (componentName=CsvFileAttributes) #359
5-
FIX: cannot invoke "java.util.List.add(Object)" because "this.myUncommittedActions" is null #361
5+
FIX: cannot invoke "add(Object)" because "this.myUncommittedActions" is null #361
6+
FIX: cannot invoke "createNotification(...)" because "notificationGroup" is null #362
7+
FIX: cannot invoke "getManager()" because the return value of "getPsiFile()" is null #363
68
FIX: image in plugin description
79
FIX: plugin update restart
810

build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,9 @@ PS: The previous versions are still available on the project page.
110110
Update 3.0.1
111111
112112
FIX: cannot init component state (componentName=CsvFileAttributes) #359
113-
FIX: cannot invoke "java.util.List.add(Object)" because "this.myUncommittedActions" is null #361
113+
FIX: cannot invoke "add(Object)" because "this.myUncommittedActions" is null #361
114+
FIX: cannot invoke "createNotification(...)" because "notificationGroup" is null #362
115+
FIX: cannot invoke "getManager()" because the return value of "getPsiFile()" is null #363
114116
FIX: image in plugin description
115117
FIX: plugin update restart
116118

src/main/java/net/seesharpsoft/intellij/plugins/csv/components/CsvFileAttributes.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ public CsvFileAttributes getState() {
5151
}
5252

5353
@Override
54-
public void loadState(@NotNull CsvFileAttributes state) {
54+
public synchronized void loadState(@NotNull CsvFileAttributes state) {
5555
XmlSerializerUtil.copyBean(state, this);
5656
}
5757

58-
public void cleanupAttributeMap(@NotNull Project project) {
58+
public synchronized void cleanupAttributeMap(@NotNull Project project) {
5959
List<String> faultyFiles = new ArrayList<>();
6060
attributeMap.forEach((fileName, attribute) -> {
6161
if (!CsvStorageHelper.csvFileExists(project, fileName)) {
@@ -153,7 +153,7 @@ private CsvValueSeparator autoDetectSeparator(Project project, VirtualFile virtu
153153
// ignore non-matched separators
154154
.filter(p -> p.getSecond() > 0)
155155
// get the one with most hits
156-
.max((p1, p2) -> p1.getSecond() - p2.getSecond())
156+
.max(Comparator.comparingInt(Pair::getSecond))
157157
// failsafe (e.g. empty document)
158158
.orElse(null);
159159

0 commit comments

Comments
 (0)