server/src/main/java/org/apache/druid/segment/loading/SegmentLoaderConfig.java
/**
   * Convert StorageLocationConfig objects to StorageLocation objects
   * <p>
   * Note: {@link #getLocations} is called instead of variable access because some testcases overrides this method
   */
Convert StorageLocationConfig objects to StorageLocation objects

Note:  #getLocations is called instead of variable access because some testcases overrides this method
Convert StorageLocationConfig objects to StorageLocation objects Note : #getLocations is called instead of variable access because some testcases overrides this method
public List<StorageLocation> toStorageLocations()
  {
    return this.getLocations()
               .stream()
               .map(locationConfig -> new StorageLocation(locationConfig.getPath(),
                                                          locationConfig.getMaxSize(),
                                                          locationConfig.getFreeSpacePercent()))
               .collect(Collectors.toList());
  }
public List < StorageLocation > toStorageLocations ( ) { return this . getLocations ( ) . stream ( ) . map ( locationConfig -> new StorageLocation ( locationConfig . getPath ( ) , locationConfig . getMaxSize ( ) , locationConfig . getFreeSpacePercent ( ) ) ) . collect ( Collectors . toList ( ) ) ; }
Convert StorageLocationConfig objects to StorageLocation objects
 <p>
 Note: {@link #getLocations} is called instead of variable access because some testcases overrides this method
Convert StorageLocationConfig objects to StorageLocation objects <p > Note : { @link #getLocations } is called instead of variable access because some testcases overrides this method