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

Fix compiler warnings in OperationHelper.java

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.11.0
    • Component/s: Internal
    • Labels:
      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

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: