File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
core/trino-main/src/main/java/io/trino/server Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1313 */
1414package io .trino .server ;
1515
16+ import com .google .common .collect .ImmutableList ;
1617import io .airlift .configuration .Config ;
1718import io .airlift .configuration .ConfigDescription ;
19+ import io .airlift .configuration .validation .FileExists ;
1820
1921import java .io .File ;
2022import java .util .List ;
2123
2224public class ServerPluginsProviderConfig
2325{
24- private List <File > installedPluginsDirs = List .of (new File ("plugin" ));
26+ private List <File > installedPluginsDirs = ImmutableList .of (new File ("plugin" ));
2527
2628 public List <File > getInstalledPluginsDirs ()
2729 {
@@ -30,9 +32,9 @@ public List<File> getInstalledPluginsDirs()
3032
3133 @ Config ("plugin.dir" )
3234 @ ConfigDescription ("Comma separated list of root directories where the plugins are located" )
33- public ServerPluginsProviderConfig setInstalledPluginsDirs (List <File > installedPluginsDirs )
35+ public ServerPluginsProviderConfig setInstalledPluginsDirs (List <@ FileExists File > installedPluginsDirs )
3436 {
35- this .installedPluginsDirs = installedPluginsDirs ;
37+ this .installedPluginsDirs = ImmutableList . copyOf ( installedPluginsDirs ) ;
3638 return this ;
3739 }
3840}
You can’t perform that action at this time.
0 commit comments