From 09d57e1522421feb473c44081b3ce81cc19b13c5 Mon Sep 17 00:00:00 2001 From: Andreas Buchen Date: Sun, 4 Aug 2024 18:34:46 +0200 Subject: [PATCH] Removed immutable type setting for latest security price For whatever reasons, there are actually some referenced latest security prices in files out there in the wild. Issue: #4117 Issue: https://forum.portfolio-performance.info/t/fehlermeldungen-nach-update-auf-version-70/29289 Issue: https://forum.portfolio-performance.info/t/fehler-beim-offnen-xml-kann-nicht-geparst-werden/21859/18 Issue: https://www.wertpapier-forum.de/topic/38306-portfolio-performance-mein-neues-programm/?do=findComment&comment=1728577 --- .../src/name/abuchen/portfolio/model/ClientFactory.java | 1 - 1 file changed, 1 deletion(-) diff --git a/name.abuchen.portfolio/src/name/abuchen/portfolio/model/ClientFactory.java b/name.abuchen.portfolio/src/name/abuchen/portfolio/model/ClientFactory.java index f300314801..ad3eb8dbd0 100644 --- a/name.abuchen.portfolio/src/name/abuchen/portfolio/model/ClientFactory.java +++ b/name.abuchen.portfolio/src/name/abuchen/portfolio/model/ClientFactory.java @@ -1730,7 +1730,6 @@ private static synchronized XStream xstream() xstream.alias("security", Security.class); xstream.addImplicitCollection(Security.class, "properties"); xstream.alias("latest", LatestSecurityPrice.class); - xstream.addImmutableType(LatestSecurityPrice.class, false); xstream.alias("category", Category.class); // NOSONAR xstream.alias("watchlist", Watchlist.class); xstream.alias("investment-plan", InvestmentPlan.class);