@Test public void testGet() { String version = SdkVersion.get(); assertThat(version).isNotEmpty(); assertThat(version).doesNotContain("project.version"); assertThat(version).matches("\\d+\\.\\d+\\.\\d+(-SNAPSHOT)?"); }
static String get() { if (version == null) { version = readFromFile(); return version; } else { return version; } }
SdkVersion { static String get() { if (version == null) { version = readFromFile(); return version; } else { return version; } } }
SdkVersion { static String get() { if (version == null) { version = readFromFile(); return version; } else { return version; } }  }
SdkVersion { static String get() { if (version == null) { version = readFromFile(); return version; } else { return version; } }   }
SdkVersion { static String get() { if (version == null) { version = readFromFile(); return version; } else { return version; } }    }