Skip to content

Commit

Permalink
Change 'transformation' to 'pluginInstance' in EnrichablePlugin::getC…
Browse files Browse the repository at this point in the history
…onfigDefFromConfigProvidingClass
  • Loading branch information
C0urante committed Oct 31, 2023
1 parent 29c95bc commit 5b33be2
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -510,13 +510,13 @@ ConfigDef getConfigDefFromConfigProvidingClass(String key, Class<?> cls) {
}
Utils.ensureConcreteSubclass(baseClass, cls);

T transformation;
T pluginInstance;
try {
transformation = Utils.newInstance(cls, baseClass);
pluginInstance = Utils.newInstance(cls, baseClass);
} catch (Exception e) {
throw new ConfigException(key, String.valueOf(cls), "Error getting config definition from " + baseClass.getSimpleName() + ": " + e.getMessage());
}
ConfigDef configDef = config(transformation);
ConfigDef configDef = config(pluginInstance);
if (null == configDef) {
throw new ConnectException(
String.format(
Expand Down

0 comments on commit 5b33be2

Please sign in to comment.