Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-1425

Make IDGenerator generic

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • 3.0.0
    • None
    • None
    • None

    Description

      The IDGenerator currently returns an Object, when it would be better practice to make this generic:

      public interface IdGenerator<T> {
      T generate();
      }

      There are places where we need to resort to using Objects, but this is not one of them.

      Attachments

        Activity

          People

            Unassigned Unassigned
            trisha.gee@10gen.com Trisha Gee
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: