mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-01 19:02:13 +07:00
statistics: extentions are not allowed (any plugin could override standard statistics servic)
This commit is contained in:
+1
-12
@@ -82,18 +82,7 @@ public class SendStatisticsComponent implements ApplicationComponent {
|
||||
});
|
||||
}
|
||||
else if (StatisticsUploadAssistant.isSendAllowed() && StatisticsUploadAssistant.isTimeToSend()) {
|
||||
StatisticsService serviceToUse = null;
|
||||
StatisticsServiceEP[] extensions = StatisticsService.EP_NAME.getExtensions();
|
||||
if (extensions.length > 1) {
|
||||
LOG.warn(String.format("More than one stats service detected (%s). Falling back to the built-in one", Arrays.toString(extensions)));
|
||||
}
|
||||
else if (extensions.length == 1) {
|
||||
serviceToUse = extensions[0].getInstance();
|
||||
}
|
||||
if (serviceToUse == null) {
|
||||
serviceToUse = statisticsService;
|
||||
}
|
||||
runWithDelay(serviceToUse);
|
||||
runWithDelay(statisticsService);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user