Skip to content

Commit e0ae92f

Browse files
committed
Remove deprecated method from FilesystemUtils.
1 parent 929e392 commit e0ae92f

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

src/test/groovy/sdkman/steps/installation_steps.groovy

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import java.nio.file.FileSystems
44
import java.nio.file.Files
55

66
import static cucumber.api.groovy.EN.And
7+
import static sdkman.support.FilesystemUtils.prepareCandidateBinFolder
78
import static sdkman.support.FilesystemUtils.prepareCandidateWithVersionFolder
8-
import static sdkman.support.FilesystemUtils.prepareLocalCandidateWithVersionFolder
99

1010
And(~'^the candidate "([^"]*)" version "([^"]*)" is installed$') { String candidate, String version ->
1111
def file = "${candidatesDir}/${candidate}/${version}" as File
@@ -47,7 +47,7 @@ And(~'^the candidate "([^"]*)" does not exist locally$') { String candidate ->
4747
}
4848

4949
And(~'^I have a local candidate "([^"]*)" version "([^"]*)" at "([^"]*)"$') { String candidate, String version, String directory ->
50-
prepareLocalCandidateWithVersionFolder directory, candidate, version
50+
prepareCandidateBinFolder directory, candidate, version
5151
}
5252

5353
And(~'^the candidate "([^"]*)" version "([^"]*)" is linked to "([^"]*)"$') { String candidate, String version, String directory ->
@@ -69,7 +69,7 @@ And(~'^the candidate "([^"]*)" version "([^"]*)" is already linked to "([^"]*)"$
6969
candidateFolder.mkdirs()
7070

7171
def link = fileSystem.getPath("$candidatesDir/$candidate/$version")
72-
def target = prepareLocalCandidateWithVersionFolder(folder, candidate, version)
72+
def target = prepareCandidateBinFolder(folder, candidate, version)
7373

7474
Files.createSymbolicLink(link, target)
7575
}

src/test/groovy/sdkman/support/FilesystemUtils.groovy

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,7 @@ class FilesystemUtils {
3232
prepareCandidateBinFolder directory, candidate, version
3333
}
3434

35-
@Deprecated
36-
static prepareLocalCandidateWithVersionFolder(String baseDir, String candidate, String version){
37-
prepareCandidateBinFolder baseDir, candidate, version
38-
}
39-
40-
private static prepareCandidateBinFolder(String folder, String candidate, String version) {
35+
static prepareCandidateBinFolder(String folder, String candidate, String version) {
4136
def fileSystem = FileSystems.default
4237

4338
def binFolderPath = fileSystem.getPath("$folder/bin")

0 commit comments

Comments
 (0)