test/java/time/test/java/time/temporal/MockFieldValue.java

Print this page

        

@@ -88,11 +88,11 @@
             if (isSupported(field)) {
                 return field.range();
             }
             throw new DateTimeException("Unsupported field: " + field.getName());
         }
-        return field.doRange(this);
+        return field.rangeRefinedBy(this);
     }
 
     @Override
     public long getLong(TemporalField field) {
         if (this.field.equals(field)) {