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

Add toString() methods to model class

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.7.0
    • Affects Version/s: None
    • Component/s: Builders
    • None

      Hello,

      For same reason that JAVA-2000,

      Add toString() methods to model class :

      public class Field<TExpression> {
      
          @Override
          public String toString() {
              return "Field{"
                      + "name='" + name + '\''
                      + ", value=" + value
                      + '}';
          }
      }
      

      And correct existing toString() :

              public String toString() {
                  return "Stage{"
                      + "name='$bucketAuto'"
                      + "buckets=" + buckets // the comma is missing, so the previous line is concatenated to this one without separator
                      + ", groupBy=" + groupBy
                      + ", options=" + options
                      + '}';
      
      
      

      I'm woking on PR.

            Assignee:
            Unassigned Unassigned
            Reporter:
            fares.hassak@gmail.com Farès Hassak
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: