super(fields);
}
+ @VisibleForTesting
+ public CoveredFileDoc() {
+ super(Maps.newHashMapWithExpectedSize(2));
+ }
+
@Override
public String getId() {
throw new UnsupportedOperationException();
throw new UnsupportedOperationException();
}
- @VisibleForTesting
- public CoveredFileDoc() {
- super(Maps.<String, Object>newHashMapWithExpectedSize(2));
- }
-
public String fileUuid() {
return getField(FIELD_COVERED_FILE_UUID);
}
controller.done();
}
- private void defineIndexAction(NewController controller) {
+ private static void defineIndexAction(NewController controller) {
controller.createAction("index")
.setDescription("This web service is removed")
.setSince("2.6")
public class MetricKeyValidator {
- private MetricKeyValidator() {
- // static stuff only
- }
-
/*
* Allowed characters are alphanumeric, '-', '_', with at least one non-digit
*/
private static final String VALID_METRIC_KEY_REGEXP = "[\\p{Alnum}\\-_]*[\\p{Alpha}\\-_]+[\\p{Alnum}\\-_]*";
+ private MetricKeyValidator() {
+ // static stuff only
+ }
+
/**
* <p>Test if given parameter is valid for a project/module. Valid format is:</p>
* <ul>
/**
* For stream of one expected element, return the element
+ *
* @throws IllegalArgumentException if stream has no element or more than 1 element
*/
public static <T> Collector<T, ?, T> toOneElement() {