Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-4385

Fix warning about type safety in CachableBlockFile

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 1.6.6, 1.7.3, 1.8.0
    • core
    • None

    Description

      It looks like CacheableBlock in CachableBlockFile has a generic method which overrides a superclass's generic method.

      Type safety cannot be guaranteed by the compiler, because it cannot guarantee that the generic parameters of the subclass conform to the generic parameters of the superclass.

      I'm not sure this is avoidable, and in any case doesn't appear to be a problem in this particular case.

      We can just suppress this particular warning.

      Attachments

        Activity

          People

            ctubbsii Christopher Tubbs
            ctubbsii Christopher Tubbs
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 40m
                40m