Skip to content

Controlling Visibility #152

@JohnLCaron

Description

@JohnLCaron

See https://zsmb.co/mastering-api-visibility-in-kotlin

So we have

  1. public
  2. public but allowing use of InternalLibraryApi with @file:OptIn(InternalLibraryApi::class)
  3. public but marked as @InternalLibraryApi
  4. internal
  5. private

We want to keep things as low down as possible.

But:

  • Some tests require access to some classes marked @InternalLibraryApi. This requires OptIn (even though it would have worked if the class was internal).
  • Hdf4Clib, Hdf5Clib and NetcdfClib all require access to the cdm builders.

openNetchdfFile(filename, NetchdfFileFormat.HDF4) fas been added to replace direct calls to Netcdf3File, Hdf5File, Hdf4File.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions