> + }
> + };
> + }
> +
> + private static String parseVersion(String version) {
> + if(version.contains("-")) {
> + String rawVersion = version.substring(0,
> + version.lastIndexOf("-"));
> + if(Iterables.size(Splitter.on(".").split(rawVersion)) == 3) {
> + return rawVersion.substring(0, rawVersion.lastIndexOf("."));
> + } else {
> + return rawVersion;
> + }
> + } else if(version.contains(" ")) {
> + return version.substring(0,
> + version.indexOf(" "));
[minor] Spaces after each `if` and don't break lines here (also in the above
call to substring).
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/296/files#r11137092