package org.coursera.metrics.datadog.transport;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeName;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;

@JsonTypeName("udp")
public class UdpTransportFactory implements AbstractTransportFactory {

  @NotNull
  @JsonProperty
  private String statsdHost = "localhost";

  @JsonProperty
  @Range(min = 1, max = 49151)
  private int port = 8125;

  @JsonProperty
  private String prefix = null;

  public UdpTransport build() {
    return new UdpTransport.Builder()
        .withPrefix(prefix)
        .withStatsdHost(statsdHost)
        .withPort(port)
        .build();
    }
}

@@ -153,58 +153,8 @@
 ame;
-%0Aimport org.hibernate.validator.constraints.Range;
 %0A%0Aim
@@ -381,39 +381,8 @@
 rty%0A
-  @Range(min = 1, max = 49151)%0A
   pr

Drop port range check from UdpTransportFactory