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

Fix compiler warnings in OperationHelper.java

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 3.11.0
    • None
    • Internal
    • None

    Description

      /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) {
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: