style: 替换为 'getFirst()' 调用
This commit is contained in:
parent
0797723b88
commit
34fd7c6d8b
@ -5,7 +5,7 @@
|
||||
<option name="PROGRAM_PARAMETERS" value="help" />
|
||||
<extension name="coverage">
|
||||
<pattern>
|
||||
<option name="PATTERN" value="org.jcnc.snow.compiler.cli.*" />
|
||||
<option name="PATTERN" value="org.jcnc.snow.compiler.cli.SnowCLI" />
|
||||
<option name="ENABLED" value="true" />
|
||||
</pattern>
|
||||
</extension>
|
||||
|
||||
@ -216,7 +216,7 @@ public final class CompileCommand implements CLICommand {
|
||||
} else if (dir != null) {
|
||||
base = dir.getFileName().toString();
|
||||
} else if (sources.size() == 1) {
|
||||
base = sources.get(0).getFileName().toString().replaceFirst("\\.snow$", "");
|
||||
base = sources.getFirst().getFileName().toString().replaceFirst("\\.snow$", "");
|
||||
} else {
|
||||
base = "program";
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user