Reduce size of xml with user factors
authorVitaliy.Bibaev <vitaliy.bibaev@jetbrains.com>
Tue, 5 Dec 2017 16:01:46 +0000 (19:01 +0300)
committerVitaliy.Bibaev <vitaliy.bibaev@jetbrains.com>
Tue, 5 Dec 2017 16:01:46 +0000 (19:01 +0300)
plugins/stats-collector/src/com/intellij/stats/personalization/impl/UserFactorStorageBase.kt

index d4f7d8f0b46a3b6103225c8ea278c11b4fb2ea26..accf8e31cf5eeea30ed3bbbb531e162a3b05eb90 100644 (file)
@@ -50,7 +50,7 @@ abstract class UserFactorStorageBase
         @MapAnnotation(surroundKeyWithTag = false, keyAttributeName = "name", sortBeforeSave = true)
         var stringFactors: MutableMap<String, String> = HashMap()
 
-        @MapAnnotation(surroundValueWithTag = false, keyAttributeName = "name", sortBeforeSave = true)
+        @MapAnnotation(surroundValueWithTag = false, keyAttributeName = "name", sortBeforeSave = true, surroundWithTag = false)
         var aggregateFactors: MutableMap<String, DailyAggregateFactor> = HashMap()
     }
 
@@ -101,7 +101,7 @@ abstract class UserFactorStorageBase
 
     @Tag("DailyCollectedData")
     class DailyData {
-        @MapAnnotation(keyAttributeName = "key", valueAttributeName = "value", entryTagName = "observation", sortBeforeSave = true)
+        @MapAnnotation(surroundWithTag = false, keyAttributeName = "key", valueAttributeName = "value", entryTagName = "observation", sortBeforeSave = true)
         var data: MutableMap<String, Double> = HashMap()
     }
 }
\ No newline at end of file