Merge pull request #816 from guusdk/SPARK-2324_Upgrade-xstream-to-1.4.20

SPARK-2324: Upgrade XStream from 1.4.19 to 1.4.20
This commit is contained in:
ilyaHlevnoy
2023-03-30 19:36:33 +03:00
committed by GitHub
3 changed files with 7 additions and 1 deletions

View File

@ -188,7 +188,7 @@
<dependency>
<groupId>com.thoughtworks.xstream</groupId>
<artifactId>xstream</artifactId>
<version>1.4.19</version>
<version>1.4.20</version>
</dependency>
<dependency>

View File

@ -84,6 +84,9 @@ public class CheckUpdates {
ProviderManager.addIQProvider("query", "jabber:iq:spark", new SparkVersion.Provider());
// For simplicity, use an alias for the root xml tag
xstream.allowTypes(new Class[] {
SparkVersion.class,
});
xstream.alias("Version", SparkVersion.class);
// Specify the main update url for JiveSoftware

View File

@ -236,6 +236,9 @@ public class SipPreference implements Preference {
private XStream getXStream() {
if (xstream == null) {
xstream = new XStream();
xstream.allowTypes(new Class[] {
SipPreferences.class,
});
xstream.alias("sip", SipPreferences.class);
}
return xstream;