private static @NullUnknown JavaSource _create(final ClasspathInfo cpInfo, final @NonNull Collection<? extends FileObject> files) throws IllegalArgumentException { if (files == null) { throw new IllegalArgumentException (); } try { return new JavaSource(cpInfo, files); // TODO: Split // } catch (DataObjectNotFoundException donf) { // Logger.getLogger("global").warning("Ignoring non existent file: " + FileUtil.getFileDisplayName(donf.getFileObject())); //NOI18N } catch (IOException ex) { Exceptions.printStackTrace(ex); } return null; }
js = new JavaSource (info, fileObject, classSource, root);