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

Make IDGenerator generic

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • 3.0.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      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.

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

              Created:
              Updated:
              Resolved: