DBZ-2945 Rename local vars
This commit is contained in:
parent
2b76063368
commit
040ec49e90
@ -26,6 +26,7 @@
|
||||
import io.debezium.relational.Column;
|
||||
import io.debezium.relational.ValueConverter;
|
||||
import io.debezium.util.HexConverter;
|
||||
|
||||
import microsoft.sql.DateTimeOffset;
|
||||
|
||||
/**
|
||||
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user