DBZ-2945 Rename local vars

This commit is contained in:
ani-sha 2021-01-19 18:24:47 +05:30 committed by Gunnar Morling
parent 2b76063368
commit 040ec49e90
3 changed files with 7 additions and 6 deletions

View File

@ -26,6 +26,7 @@
import io.debezium.relational.Column; import io.debezium.relational.Column;
import io.debezium.relational.ValueConverter; import io.debezium.relational.ValueConverter;
import io.debezium.util.HexConverter; import io.debezium.util.HexConverter;
import microsoft.sql.DateTimeOffset; import microsoft.sql.DateTimeOffset;
/** /**

View File

@ -24,8 +24,8 @@ public ApicurioRegistryContainer() {
} }
public static String getApicurioVersion() { public static String getApicurioVersion() {
String APICURIO_VERSION_TEST_PROPERTY = System.getProperty(TEST_PROPERTY_PREFIX + "apicurio.version"); String apicurioVersionTestProperty = System.getProperty(TEST_PROPERTY_PREFIX + "apicurio.version");
return APICURIO_VERSION_TEST_PROPERTY != null ? APICURIO_VERSION_TEST_PROPERTY return apicurioVersionTestProperty != null ? apicurioVersionTestProperty
: ContainerImageVersions.getStableVersion("apicurio/apicurio-registry-mem"); : ContainerImageVersions.getStableVersion("apicurio/apicurio-registry-mem");
} }
} }

View File

@ -41,14 +41,14 @@ public static String getStableVersion(String image) {
Pattern pattern = Pattern.compile("\\d.\\d.\\d.Final"); Pattern pattern = Pattern.compile("\\d.\\d.\\d.Final");
Matcher matcher = pattern.matcher(response); Matcher matcher = pattern.matcher(response);
List<String> STABLE_VERSION_LIST = new ArrayList<>(); List<String> stableVersionList = new ArrayList<>();
while (matcher.find()) { while (matcher.find()) {
STABLE_VERSION_LIST.add(matcher.group()); stableVersionList.add(matcher.group());
} }
Collections.sort(STABLE_VERSION_LIST); Collections.sort(stableVersionList);
return STABLE_VERSION_LIST.get(STABLE_VERSION_LIST.size() - 1); return stableVersionList.get(stableVersionList.size() - 1);
} }
else { else {
throw new RuntimeException("Couldn't obtain stable version for image " + image); throw new RuntimeException("Couldn't obtain stable version for image " + image);