This is an automated email from the ASF dual-hosted git repository.
lzljs3620320 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-paimon.git
The following commit(s) were added to refs/heads/master by this push:
new a849570ea [hotfix] Use class cl in ActionFactory
a849570ea is described below
commit a849570ea23741a04753faa9d08563041f2b08af
Author: Jingsong <[email protected]>
AuthorDate: Tue Jul 11 16:03:16 2023 +0800
[hotfix] Use class cl in ActionFactory
---
.../src/main/java/org/apache/paimon/flink/action/ActionFactory.java | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git
a/paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/action/ActionFactory.java
b/paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/action/ActionFactory.java
index 4cba00494..45c93321f 100644
---
a/paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/action/ActionFactory.java
+++
b/paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/action/ActionFactory.java
@@ -51,9 +51,7 @@ public interface ActionFactory extends Factory {
try {
actionFactory =
FactoryUtil.discoverFactory(
- Thread.currentThread().getContextClassLoader(),
- ActionFactory.class,
- action);
+ ActionFactory.class.getClassLoader(),
ActionFactory.class, action);
} catch (FactoryException e) {
printDefaultHelp();
throw new UnsupportedOperationException("Unknown action \"" +
action + "\".");
@@ -79,7 +77,7 @@ public interface ActionFactory extends Factory {
System.out.println("Available actions:");
List<String> identifiers =
FactoryUtil.discoverIdentifiers(
- Thread.currentThread().getContextClassLoader(),
ActionFactory.class);
+ ActionFactory.class.getClassLoader(),
ActionFactory.class);
identifiers.forEach(action -> System.out.println(" " + action));
System.out.println("For detailed options of each action, run <action>
--help");
}