Skip to content

Commit 824be7e

Browse files
committed
improve the access of "file separator"
reading from a property is error-prone, because it can be overridden by a command line parameter. we do not want that. we want directly to read it from filesystem.
1 parent 1d9bbb1 commit 824be7e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main/java/de/rwth/idsg/steve/service/GithubReleaseCheckService.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import org.springframework.web.client.RestTemplate;
1717

1818
import javax.annotation.PostConstruct;
19+
import java.io.File;
1920
import java.util.Collections;
2021

2122
/**
@@ -35,7 +36,7 @@ public class GithubReleaseCheckService implements ReleaseCheckService {
3536

3637
private static final String TAG_NAME_PREFIX = "steve-";
3738

38-
private static final String FILE_SEPARATOR = System.getProperty("file.separator");
39+
private static final String FILE_SEPARATOR = File.separator;
3940

4041
private RestTemplate restTemplate;
4142

0 commit comments

Comments
 (0)