Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-25776

Use Class.asSubclass to fix the warning in StochasticLoadBalancer.loadCustomCostFunctions

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Hadoop Flags:
      Reviewed

      Description

       klass = (Class<? extends CostFunction>) Class.forName(c);
      

      This will generated a warning of unchecked casting, could simply use Class.forName(c).asSubclass(CostFunction.class).

        Attachments

          Activity

            People

            • Assignee:
              xiaoyu Xiao Yu
              Reporter:
              zhangduo Duo Zhang

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment