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.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;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user