11/*
2- * Copyright (c) 1998-2018 John Caron and University Corporation for Atmospheric Research/Unidata
2+ * Copyright (c) 1998-2025 John Caron and University Corporation for Atmospheric Research/Unidata
33 * See LICENSE for license information.
44 */
55
@@ -269,7 +269,7 @@ public static void read(org.jdom2.Element root, StringBuilder errlog) {
269269 // so we cannot refer to the Nc4Iosp.class and NetcdfClibrary.class object.
270270 String nc4IospClassName = "ucar.nc2.jni.netcdf.Nc4Iosp" ;
271271 // The setLibraryAndPath method from Nc4Iosp has been deprecated
272- // and splited into separated class: NetcdfClibrary
272+ // and split into separated class: NetcdfClibrary
273273 String netcdfClibraryClassName = "ucar.nc2.ffi.netcdf.NetcdfClibrary" ;
274274 /*
275275 * <Netcdf4Clibrary>
@@ -285,8 +285,9 @@ public static void read(org.jdom2.Element root, StringBuilder errlog) {
285285 if (path != null && name != null ) {
286286 // reflection is used to decouple optional jars
287287 try {
288- Class netcdfClibraryClass = RuntimeConfigParser .class .getClassLoader ().loadClass (netcdfClibraryClassName );
289- Method method = netcdfClibraryClass .getMethod ("setLibraryAndPath" , String .class , String .class );
288+ Class <?> netcdfClibraryClass =
289+ RuntimeConfigParser .class .getClassLoader ().loadClass (netcdfClibraryClassName );
290+ Method method = netcdfClibraryClass .getMethod ("setLibraryNameAndPath" , String .class , String .class );
290291 method .invoke (null , path , name ); // static method has null for object
291292 } catch (Throwable e ) {
292293 errlog .append (netcdfClibraryClassName + " is not on classpath\n " );
0 commit comments