Arrays.stream(getTransportAddresses().split(",")).forEach(s -> { |
String[] address = s.split(":"); |
localClient.addTransportAddress(new InetSocketTransportAddress(address[0], Integer.parseInt(address[1]))); |
}); |
--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/719efe2e-6c40-491c-b9df-e7d862b1077a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/aa29f029-4887-4bc9-9795-67afd0a37e27%40googlegroups.com.
java.util.Arrays.stream("toto:1,tata:2".split(",")).forEach(s -> { |
String[] address = s.split(":"); |
System.out.printf("%s:%d%n", address[0], Integer.parseInt(address[1])); |
}); |
Arrays.stream("toto,tata".split(",")).forEach(s -> System.out.println(s));
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/7fd078a6-d9cc-417e-8540-386e4d9ee59e%40googlegroups.com.
ApplicationContext ctx = SpringApplication.run(Application.class, args); final List<java.nio.file.Path> files = java.nio.file.Files.list(parentDirectory).collect(toList()); with parentDirectory being a java.nio.file.Path |
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/e2e7fa2a-b625-469b-9e51-c189332a486a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.