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.ValueConverter;
import io.debezium.util.HexConverter;
import microsoft.sql.DateTimeOffset;
/**

View File

@ -24,8 +24,8 @@ public ApicurioRegistryContainer() {
}
public static String getApicurioVersion() {
String APICURIO_VERSION_TEST_PROPERTY = System.getProperty(TEST_PROPERTY_PREFIX + "apicurio.version");
return APICURIO_VERSION_TEST_PROPERTY != null ? APICURIO_VERSION_TEST_PROPERTY
String apicurioVersionTestProperty = System.getProperty(TEST_PROPERTY_PREFIX + "apicurio.version");
return apicurioVersionTestProperty != null ? apicurioVersionTestProperty
: 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");
Matcher matcher = pattern.matcher(response);
List<String> STABLE_VERSION_LIST = new ArrayList<>();
List<String> stableVersionList = new ArrayList<>();
while (matcher.find()) {
STABLE_VERSION_LIST.add(matcher.group());
stableVersionList.add(matcher.group());
}
Collections.sort(STABLE_VERSION_LIST);
return STABLE_VERSION_LIST.get(STABLE_VERSION_LIST.size() - 1);
Collections.sort(stableVersionList);
return stableVersionList.get(stableVersionList.size() - 1);
}
else {
throw new RuntimeException("Couldn't obtain stable version for image " + image);