@Test public void nullQualityIsValid() { assertThat(HttpUtils.checkQuality(null,"Weight"),nullValue()); }
static Double checkQuality(final Double quality, final String parameter) { if(quality==null) { return null; } checkQualityRange(quality, parameter); checkArgument(DoubleUtils.hasPrecision(quality,3),"%s cannot have more than 3 decimals (%s)",parameter,quality); return quality; }
HttpUtils { static Double checkQuality(final Double quality, final String parameter) { if(quality==null) { return null; } checkQualityRange(quality, parameter); checkArgument(DoubleUtils.hasPrecision(quality,3),"%s cannot have more than 3 decimals (%s)",parameter,quality); return quality; } }
HttpUtils { static Double checkQuality(final Double quality, final String parameter) { if(quality==null) { return null; } checkQualityRange(quality, parameter); checkArgument(DoubleUtils.hasPrecision(quality,3),"%s cannot have more than 3 decimals (%s)",parameter,quality); return quality; } private  HttpUtils(); }
HttpUtils { static Double checkQuality(final Double quality, final String parameter) { if(quality==null) { return null; } checkQualityRange(quality, parameter); checkArgument(DoubleUtils.hasPrecision(quality,3),"%s cannot have more than 3 decimals (%s)",parameter,quality); return quality; } private  HttpUtils();  }
HttpUtils { static Double checkQuality(final Double quality, final String parameter) { if(quality==null) { return null; } checkQualityRange(quality, parameter); checkArgument(DoubleUtils.hasPrecision(quality,3),"%s cannot have more than 3 decimals (%s)",parameter,quality); return quality; } private  HttpUtils();   }