Fix issues with Java 7 compatibility

This commit is contained in:
2018-02-16 16:57:08 +01:00
parent 18f870a4cc
commit 00e4461043
3 changed files with 35 additions and 26 deletions

View File

@ -41,7 +41,7 @@ object NodeRegistryHelper {
val line = scanner.nextLine().trim { it <= ' ' }
if (line.startsWith("[stream")) {
stream = java.lang.Long.parseLong(line.substring(8, line.lastIndexOf(']')))
streamSet = HashSet<NetworkAddress>()
streamSet = HashSet()
result.put(stream, streamSet)
} else if (streamSet != null && !line.isEmpty() && !line.startsWith("#")) {
val portIndex = line.lastIndexOf(':')