/** 用默认值初始化所有没设置的参数 */
 private void initEmptyFieldsWithDefaultValues() {
   if (taskExecutor == null) {
     taskExecutor = DefaultConfigurationFactory.createExecutor(threadPoolSize, threadPriority);
   } else {
     isCustomExecutor = true;
   }
   if (fileUploader == null) {
     fileUploader = DefaultConfigurationFactory.createDefaultUploader();
   }
   if (responseProcessor == null) {
     responseProcessor = DefaultConfigurationFactory.createDefaultResponseProcessor();
   }
 }
 private void initEmptyFieldsWithDefaultValues() {
   if (taskExecutor == null) {
     taskExecutor =
         DefaultConfigurationFactory.createExecutor(
             threadPoolSize, threadPriority, tasksProcessingType);
   } else {
     customExecutor = true;
   }
   if (taskExecutorForCachedImages == null) {
     taskExecutorForCachedImages =
         DefaultConfigurationFactory.createExecutor(
             threadPoolSize, threadPriority, tasksProcessingType);
   } else {
     customExecutorForCachedImages = true;
   }
   if (diskCache == null) {
     if (diskCacheFileNameGenerator == null) {
       diskCacheFileNameGenerator = DefaultConfigurationFactory.createFileNameGenerator();
     }
     diskCache =
         DefaultConfigurationFactory.createDiskCache(
             context, diskCacheFileNameGenerator, diskCacheSize, diskCacheFileCount);
   }
   if (memoryCache == null) {
     memoryCache = DefaultConfigurationFactory.createMemoryCache(memoryCacheSize);
   }
   if (denyCacheImageMultipleSizesInMemory) {
     memoryCache =
         new FuzzyKeyMemoryCache(memoryCache, MemoryCacheUtils.createFuzzyKeyComparator());
   }
   if (downloader == null) {
     downloader = DefaultConfigurationFactory.createImageDownloader(context);
   }
   if (decoder == null) {
     decoder = DefaultConfigurationFactory.createImageDecoder(writeLogs);
   }
   if (defaultDisplayImageOptions == null) {
     defaultDisplayImageOptions = DisplayImageOptions.createSimple();
   }
 }