Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-5135

Code sample in Java SDK documentation for setting kv endpoints is using a deprecated method

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • None
    • None
    • documentation, sdk
    • None
    • 1

    Description

      On this page https://docs.couchbase.com/java-sdk/2.7/client-settings.html, the client settings code sample is using a deprecated method and needs to be updated to the current way to set kv endpoints.

      CouchbaseEnvironment environment = DefaultCouchbaseEnvironment
          .builder()
          .kvEndpoints(2)
          .build();
      

      DefaultCouchbaseEnvironment.builder().kvEndpoints() is deprecated. See here: https://docs.couchbase.com/sdk-api/couchbase-core-io-1.7.3/com/couchbase/client/core/env/DefaultCoreEnvironment.Builder.html?is-external=true#kvEndpoints-int-

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              richard.smedley Richard Smedley
              muneeb.master Muneeb Master [X] (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty