[jOOQ/jOOQ#13211] KotlinGenerator cannot read existing catalog/schema

version
This commit is contained in:
Lukas Eder 2022-03-04 15:35:43 +01:00
parent 92c3f30e7f
commit 77c1cd2ebf

View File

@ -8675,7 +8675,7 @@ public class JavaGenerator extends AbstractGenerator {
f.readFully(bytes);
String string = new String(bytes);
Matcher matcher = Pattern.compile("@(?:javax\\.annotation\\.)?Generated\\(\\s*?value\\s*?=\\s*?" + (scala ? "Array\\([^)]*?" : "\\{[^}]*?") + "\"" + type + " version:([^\"]*?)\"").matcher(string);
Matcher matcher = Pattern.compile("@(?:javax\\.annotation\\.)?Generated\\(\\s*?value\\s*?=\\s*?" + (kotlin ? "\\[[^]]*?" : scala ? "Array\\([^)]*?" : "\\{[^}]*?") + "\"" + type + " version:([^\"]*?)\"").matcher(string);
if (matcher.find())
return matcher.group(1);
}