Skip to content

Commit 675aa23

Browse files
committed
use Class.forName()
1 parent 987cabc commit 675aa23

File tree

1 file changed

+1
-1
lines changed
  • ibm-mq-metrics/src/main/java/io/opentelemetry/ibm/mq/opentelemetry

1 file changed

+1
-1
lines changed

ibm-mq-metrics/src/main/java/io/opentelemetry/ibm/mq/opentelemetry/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public static void main(String[] args) throws Exception {
3333
}
3434

3535
try {
36-
Main.class.getClassLoader().loadClass("com.ibm.mq.headers.MQDataException");
36+
Class.forName("com.ibm.mq.headers.MQDataException");
3737
} catch (ClassNotFoundException e) {
3838
System.err.println("IBM MQ jar is missing from classpath.");
3939
System.exit(1);

0 commit comments

Comments
 (0)