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

Fix compiler warnings in OperationHelper.java

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.11.0
    • Affects Version/s: None
    • Component/s: Internal
    • None

      /Users/jeff/mongo-java-driver/driver-core/src/main/com/mongodb/internal/operation/OperationHelper.java:552: warning: [overloads] withConnection(AsyncReadBinding,AsyncCallableWithConnection) in OperationHelper is potentially ambiguous with withConnection(AsyncReadBinding,AsyncCallableWithSource) in OperationHelper
          static void withConnection(final AsyncReadBinding binding, final AsyncCallableWithConnection callable) {
                      ^
      /Users/jeff/mongo-java-driver/driver-core/src/main/com/mongodb/internal/operation/OperationHelper.java:594: warning: [overloads] withConnectionSource(AsyncConnectionSource,AsyncCallableWithConnection) in OperationHelper is potentially ambiguous with withConnectionSource(AsyncConnectionSource,AsyncCallableWithSource) in OperationHelper
          private static void withConnectionSource(final AsyncConnectionSource source, final AsyncCallableWithConnection callable) {
      

            Assignee:
            john.stewart@mongodb.com John Stewart (Inactive)
            Reporter:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: