Allow EventSample.record to accept numSamples=0

There's really no reason not to.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=171037754
This commit is contained in:
guyben 2017-10-04 11:30:33 -07:00 committed by jianglai
parent 69d33e928a
commit 840d53c819
49 changed files with 49 additions and 49 deletions

View file

@ -26,6 +26,7 @@ java_binary(
"//java/google/registry/module/frontend",
"//java/google/registry/module/tools",
"//java/google/registry/tools",
"//third_party/java/truth",
"@com_google_apis_google_api_services_cloudkms",
"@com_google_appengine_api_1_0_sdk//:link",
"@com_google_appengine_api_stubs",
@ -33,7 +34,6 @@ java_binary(
"@com_google_appengine_testing",
"@com_google_appengine_tools_sdk",
"@com_google_guava_testlib",
"@com_google_truth",
"@junit",
"@org_apache_ftpserver_core",
"@org_apache_sshd_core",

View file

@ -10,8 +10,8 @@ java_library(
srcs = glob(["*.java"]),
deps = [
"//java/google/registry/monitoring/metrics",
"//third_party/java/truth",
"@com_google_code_findbugs_jsr305",
"@com_google_guava",
"@com_google_truth",
],
)

View file

@ -18,12 +18,12 @@ java_library(
"//javatests/google/registry/testing",
"//javatests/google/registry/testing/mapreduce",
"//third_party/java/objectify:objectify-v4_1",
"//third_party/java/truth",
"@com_google_appengine_api_1_0_sdk//:testonly",
"@com_google_appengine_tools_appengine_gcs_client",
"@com_google_code_findbugs_jsr305",
"@com_google_guava",
"@com_google_guava_testlib",
"@com_google_truth",
"@javax_servlet_api",
"@joda_time",
"@junit",

View file

@ -20,6 +20,7 @@ java_library(
"//javatests/google/registry/testing",
"//javatests/google/registry/testing/mapreduce",
"//third_party/java/objectify:objectify-v4_1",
"//third_party/java/truth",
"@com_google_apis_google_api_services_bigquery",
"@com_google_appengine_api_1_0_sdk//:testonly",
"@com_google_appengine_api_stubs",
@ -31,7 +32,6 @@ java_library(
"@com_google_guava",
"@com_google_http_client",
"@com_google_re2j",
"@com_google_truth",
"@javax_servlet_api",
"@joda_time",
"@junit",

View file

@ -15,11 +15,11 @@ java_library(
"//java/google/registry/bigquery",
"//java/google/registry/util",
"//javatests/google/registry/testing",
"//third_party/java/truth",
"@com_google_apis_google_api_services_bigquery",
"@com_google_code_findbugs_jsr305",
"@com_google_guava",
"@com_google_http_client",
"@com_google_truth",
"@joda_time",
"@junit",
"@org_mockito_all",

View file

@ -12,8 +12,8 @@ java_library(
srcs = glob(["*.java"]),
deps = [
"//java/google/registry/config",
"//third_party/java/truth",
"@com_google_guava",
"@com_google_truth",
"@junit",
],
)

View file

@ -16,11 +16,11 @@ java_library(
"//java/google/registry/util",
"//javatests/google/registry/testing",
"//third_party/java/objectify:objectify-v4_1",
"//third_party/java/truth",
"@com_google_appengine_api_1_0_sdk//:testonly",
"@com_google_appengine_api_stubs",
"@com_google_appengine_testing",
"@com_google_guava",
"@com_google_truth",
"@javax_servlet_api",
"@joda_time",
"@junit",

View file

@ -23,12 +23,12 @@ java_library(
"//java/google/registry/util",
"//javatests/google/registry/testing",
"//third_party/java/objectify:objectify-v4_1",
"//third_party/java/truth",
"@com_google_appengine_api_1_0_sdk//:testonly",
"@com_google_appengine_api_stubs",
"@com_google_code_findbugs_jsr305",
"@com_google_dagger",
"@com_google_guava",
"@com_google_truth",
"@javax_servlet_api",
"@joda_time",
"@junit",

View file

@ -16,10 +16,10 @@ java_library(
"//java/google/registry/util",
"//javatests/google/registry/testing",
"//third_party/java/objectify:objectify-v4_1",
"//third_party/java/truth",
"@com_google_apis_google_api_services_dns",
"@com_google_code_findbugs_jsr305",
"@com_google_guava",
"@com_google_truth",
"@javax_servlet_api",
"@joda_time",
"@junit",

View file

@ -15,11 +15,11 @@ java_library(
"//java/google/registry/model",
"//javatests/google/registry/testing",
"//third_party/java/objectify:objectify-v4_1",
"//third_party/java/truth",
"@com_google_code_findbugs_jsr305",
"@com_google_dagger",
"@com_google_guava",
"@com_google_re2j",
"@com_google_truth",
"@dnsjava",
"@javax_servlet_api",
"@joda_time",

View file

@ -28,6 +28,7 @@ java_library(
"//javatests/google/registry/testing",
"//javatests/google/registry/testing/mapreduce",
"//third_party/java/objectify:objectify-v4_1",
"//third_party/java/truth",
"@com_google_apis_google_api_services_bigquery",
"@com_google_apis_google_api_services_drive",
"@com_google_appengine_api_1_0_sdk//:testonly",
@ -38,7 +39,6 @@ java_library(
"@com_google_guava",
"@com_google_http_client",
"@com_google_re2j",
"@com_google_truth",
"@javax_servlet_api",
"@joda_time",
"@junit",

View file

@ -14,10 +14,10 @@ java_library(
"//java/google/registry/model",
"//javatests/google/registry/testing",
"//third_party/java/objectify:objectify-v4_1",
"//third_party/java/truth",
"@com_google_apis_google_api_services_sheets",
"@com_google_code_findbugs_jsr305",
"@com_google_guava",
"@com_google_truth",
"@javax_servlet_api",
"@joda_time",
"@junit",

View file

@ -40,6 +40,7 @@ java_library(
"//javatests/google/registry/testing",
"//javatests/google/registry/xml",
"//third_party/java/objectify:objectify-v4_1",
"//third_party/java/truth",
"@com_google_appengine_api_1_0_sdk//:testonly",
"@com_google_appengine_testing",
"@com_google_code_findbugs_jsr305",
@ -47,7 +48,6 @@ java_library(
"@com_google_guava",
"@com_google_guava_testlib",
"@com_google_re2j",
"@com_google_truth",
"@com_googlecode_json_simple",
"@javax_servlet_api",
"@joda_time",

View file

@ -15,6 +15,7 @@ java_library(
"//java/google/registry/groups",
"//java/google/registry/model",
"//javatests/google/registry/testing",
"//third_party/java/truth",
"@com_google_api_client",
"@com_google_apis_google_api_services_admin_directory",
"@com_google_apis_google_api_services_groupssettings",
@ -24,7 +25,6 @@ java_library(
"@com_google_guava",
"@com_google_http_client",
"@com_google_http_client_jackson2",
"@com_google_truth",
"@javax_servlet_api",
"@joda_time",
"@junit",

View file

@ -13,8 +13,8 @@ java_library(
deps = [
"//java/google/registry/keyring/api",
"//javatests/google/registry/testing",
"//third_party/java/truth",
"@com_google_guava_testlib",
"@com_google_truth",
"@junit",
"@org_bouncycastle_bcpg_jdk15on",
"@org_bouncycastle_bcpkix_jdk15on",

View file

@ -21,13 +21,13 @@ java_library(
"//java/google/registry/util",
"//javatests/google/registry/testing",
"//third_party/java/objectify:objectify-v4_1",
"//third_party/java/truth",
"@com_google_api_client",
"@com_google_apis_google_api_services_cloudkms",
"@com_google_code_findbugs_jsr305",
"@com_google_guava",
"@com_google_http_client",
"@com_google_http_client_jackson2",
"@com_google_truth",
"@junit",
"@org_bouncycastle_bcpg_jdk15on",
"@org_bouncycastle_bcpkix_jdk15on",

View file

@ -17,11 +17,11 @@ java_library(
"//java/google/registry/util",
"//javatests/google/registry/testing",
"//third_party/java/objectify:objectify-v4_1",
"//third_party/java/truth",
"@com_google_appengine_api_1_0_sdk//:testonly",
"@com_google_appengine_testing",
"@com_google_appengine_tools_appengine_mapreduce",
"@com_google_guava",
"@com_google_truth",
"@joda_time",
"@junit",
"@org_joda_money",

View file

@ -29,12 +29,12 @@ java_library(
"//javatests/google/registry/testing",
"//javatests/google/registry/xml",
"//third_party/java/objectify:objectify-v4_1",
"//third_party/java/truth",
"@com_google_appengine_api_1_0_sdk//:testonly",
"@com_google_appengine_testing",
"@com_google_code_findbugs_jsr305",
"@com_google_guava",
"@com_google_guava_testlib",
"@com_google_truth",
"@joda_time",
"@junit",
"@org_joda_money",

View file

@ -18,8 +18,8 @@ java_library(
"//java/google/registry/request",
"//java/google/registry/util",
"//javatests/google/registry/testing",
"//third_party/java/truth",
"@com_google_guava",
"@com_google_truth",
"@javax_servlet_api",
"@junit",
"@org_mockito_all",

View file

@ -17,8 +17,8 @@ java_library(
"//java/google/registry/module/frontend",
"//java/google/registry/request",
"//javatests/google/registry/testing",
"//third_party/java/truth",
"@com_google_guava",
"@com_google_truth",
"@javax_servlet_api",
"@junit",
"@org_mockito_all",

View file

@ -17,8 +17,8 @@ java_library(
"//java/google/registry/module/tools",
"//java/google/registry/request",
"//javatests/google/registry/testing",
"//third_party/java/truth",
"@com_google_guava",
"@com_google_truth",
"@javax_servlet_api",
"@junit",
"@org_mockito_all",

View file

@ -12,8 +12,8 @@ java_library(
srcs = glob(["*.java"]),
deps = [
"//java/google/registry/monitoring/metrics",
"//third_party/java/truth",
"@com_google_guava",
"@com_google_truth",
"@joda_time",
"@junit",
"@org_mockito_all",

View file

@ -13,8 +13,8 @@ java_library(
deps = [
"//java/google/registry/monitoring/metrics",
"//java/google/registry/monitoring/metrics/contrib",
"//third_party/java/truth",
"@com_google_guava",
"@com_google_truth",
"@junit",
],
)

View file

@ -13,12 +13,12 @@ java_library(
deps = [
"//java/google/registry/monitoring/metrics",
"//java/google/registry/monitoring/metrics/stackdriver",
"//third_party/java/truth",
"@com_google_api_client",
"@com_google_apis_google_api_services_monitoring",
"@com_google_guava",
"@com_google_http_client",
"@com_google_http_client_jackson2",
"@com_google_truth",
"@joda_time",
"@junit",
"@org_mockito_all",

View file

@ -20,6 +20,7 @@ java_library(
"//javatests/google/registry/testing",
"//javatests/google/registry/testing/mapreduce",
"//third_party/java/objectify:objectify-v4_1",
"//third_party/java/truth",
"@com_google_apis_google_api_services_bigquery",
"@com_google_appengine_api_1_0_sdk//:testonly",
"@com_google_appengine_api_stubs",
@ -28,7 +29,6 @@ java_library(
"@com_google_guava",
"@com_google_guava_testlib",
"@com_google_http_client",
"@com_google_truth",
"@javax_servlet_api",
"@joda_time",
"@junit",

View file

@ -15,8 +15,8 @@ java_library(
"//java/google/registry/pricing",
"//java/google/registry/util",
"//javatests/google/registry/testing",
"//third_party/java/truth",
"@com_google_guava",
"@com_google_truth",
"@joda_time",
"@junit",
"@org_joda_money",

View file

@ -21,11 +21,11 @@ java_library(
"//java/google/registry/util",
"//javatests/google/registry/testing",
"//third_party/java/objectify:objectify-v4_1",
"//third_party/java/truth",
"@com_google_appengine_api_1_0_sdk//:testonly",
"@com_google_code_findbugs_jsr305",
"@com_google_dagger",
"@com_google_guava",
"@com_google_truth",
"@com_googlecode_json_simple",
"@javax_servlet_api",
"@joda_time",

View file

@ -29,12 +29,12 @@ java_library(
"//javatests/google/registry/xml",
"//third_party/java/jsch/v0_1_53",
"//third_party/java/objectify:objectify-v4_1",
"//third_party/java/truth",
"@com_google_appengine_api_1_0_sdk//:testonly",
"@com_google_appengine_tools_appengine_gcs_client",
"@com_google_code_findbugs_jsr305",
"@com_google_dagger",
"@com_google_guava",
"@com_google_truth",
"@javax_servlet_api",
"@joda_time",
"@junit",

View file

@ -23,12 +23,12 @@ java_library(
"//javatests/google/registry/testing",
"//javatests/google/registry/testing/mapreduce",
"//third_party/java/objectify:objectify-v4_1",
"//third_party/java/truth",
"@com_google_appengine_api_1_0_sdk//:testonly",
"@com_google_appengine_tools_appengine_gcs_client",
"@com_google_code_findbugs_jsr305",
"@com_google_dagger",
"@com_google_guava",
"@com_google_truth",
"@joda_time",
"@junit",
"@org_joda_money",

View file

@ -18,13 +18,13 @@ java_library(
"//java/google/registry/request",
"//java/google/registry/util",
"//javatests/google/registry/testing",
"//third_party/java/truth",
"@com_google_apis_google_api_services_bigquery",
"@com_google_appengine_tools_appengine_gcs_client",
"@com_google_code_findbugs_jsr305",
"@com_google_dagger",
"@com_google_guava",
"@com_google_http_client",
"@com_google_truth",
"@javax_servlet_api",
"@joda_time",
"@junit",

View file

@ -15,10 +15,10 @@ java_library(
"//java/google/registry/request/auth",
"//java/google/registry/security",
"//javatests/google/registry/testing",
"//third_party/java/truth",
"@com_google_appengine_api_1_0_sdk//:testonly",
"@com_google_guava",
"@com_google_guava_testlib",
"@com_google_truth",
"@com_googlecode_json_simple",
"@javax_inject",
"@javax_servlet_api",

View file

@ -17,12 +17,12 @@ java_library(
"//java/google/registry/security",
"//javatests/google/registry/testing",
"//third_party/java/objectify:objectify-v4_1",
"//third_party/java/truth",
"@com_google_appengine_api_1_0_sdk//:testonly",
"@com_google_appengine_tools_appengine_gcs_client",
"@com_google_appengine_tools_sdk",
"@com_google_code_findbugs_jsr305",
"@com_google_guava",
"@com_google_truth",
"@javax_servlet_api",
"@junit",
"@org_mockito_all",

View file

@ -16,12 +16,12 @@ java_library(
"//java/google/registry/request/lock",
"//javatests/google/registry/testing",
"//third_party/java/objectify:objectify-v4_1",
"//third_party/java/truth",
"@com_google_appengine_api_1_0_sdk//:testonly",
"@com_google_appengine_tools_appengine_gcs_client",
"@com_google_appengine_tools_sdk",
"@com_google_code_findbugs_jsr305",
"@com_google_guava",
"@com_google_truth",
"@javax_servlet_api",
"@joda_time",
"@junit",

View file

@ -17,10 +17,10 @@ java_library(
"//java/google/registry/security",
"//java/google/registry/util",
"//javatests/google/registry/testing",
"//third_party/java/truth",
"@com_google_appengine_api_1_0_sdk//:testonly",
"@com_google_appengine_testing",
"@com_google_guava",
"@com_google_truth",
"@com_googlecode_json_simple",
"@javax_servlet_api",
"@joda_time",

View file

@ -13,10 +13,10 @@ java_library(
deps = [
"//java/google/registry/storage/drive",
"//javatests/google/registry/testing",
"//third_party/java/truth",
"@com_google_apis_google_api_services_drive",
"@com_google_guava",
"@com_google_http_client",
"@com_google_truth",
"@junit",
"@org_mockito_all",
],

View file

@ -34,6 +34,7 @@ java_library(
"//java/google/registry/util",
"//java/google/registry/xml",
"//third_party/java/objectify:objectify-v4_1",
"//third_party/java/truth",
"@com_google_appengine_api_1_0_sdk//:testonly",
"@com_google_appengine_api_stubs",
"@com_google_appengine_testing",
@ -44,7 +45,6 @@ java_library(
"@com_google_dagger",
"@com_google_guava",
"@com_google_guava_testlib",
"@com_google_truth",
"@com_googlecode_json_simple",
"@javax_inject",
"@javax_servlet_api",

View file

@ -16,6 +16,7 @@ java_library(
"//java/google/registry/model",
"//java/google/registry/util",
"//javatests/google/registry/testing",
"//third_party/java/truth",
"@com_google_appengine_api_1_0_sdk",
"@com_google_appengine_api_stubs",
"@com_google_appengine_testing",
@ -23,7 +24,6 @@ java_library(
"@com_google_appengine_tools_appengine_pipeline",
"@com_google_code_findbugs_jsr305",
"@com_google_guava",
"@com_google_truth",
"@javax_servlet_api",
"@joda_time",
"@junit",

View file

@ -15,8 +15,8 @@ java_library(
deps = [
"//java/google/registry/tldconfig/idn",
"//javatests/google/registry/testing",
"//third_party/java/truth",
"@com_google_guava",
"@com_google_truth",
"@junit",
],
)

View file

@ -24,10 +24,10 @@ java_library(
"//java/google/registry/util",
"//javatests/google/registry/testing",
"//third_party/java/objectify:objectify-v4_1",
"//third_party/java/truth",
"@com_google_appengine_api_1_0_sdk//:testonly",
"@com_google_code_findbugs_jsr305",
"@com_google_guava",
"@com_google_truth",
"@javax_servlet_api",
"@joda_time",
"@junit",

View file

@ -37,6 +37,7 @@ java_library(
"//javatests/google/registry/tools/server",
"//javatests/google/registry/xml",
"//third_party/java/objectify:objectify-v4_1",
"//third_party/java/truth",
"@com_beust_jcommander",
"@com_google_api_client",
"@com_google_apis_google_api_services_dns",
@ -49,7 +50,6 @@ java_library(
"@com_google_http_client_jackson2",
"@com_google_oauth_client",
"@com_google_re2j",
"@com_google_truth",
"@com_googlecode_json_simple",
"@javax_inject",
"@joda_time",

View file

@ -12,9 +12,9 @@ java_library(
"//java/google/registry/model",
"//java/google/registry/tools/params",
"//javatests/google/registry/testing",
"//third_party/java/truth",
"@com_beust_jcommander",
"@com_google_guava",
"@com_google_truth",
"@joda_time",
"@junit",
"@org_hamcrest_library",

View file

@ -23,13 +23,13 @@ java_library(
"//javatests/google/registry/testing",
"//javatests/google/registry/testing/mapreduce",
"//third_party/java/objectify:objectify-v4_1",
"//third_party/java/truth",
"@com_google_appengine_api_1_0_sdk//:testonly",
"@com_google_appengine_tools_appengine_gcs_client",
"@com_google_appengine_tools_appengine_mapreduce",
"@com_google_appengine_tools_appengine_pipeline",
"@com_google_guava",
"@com_google_re2j",
"@com_google_truth",
"@javax_servlet_api",
"@joda_time",
"@junit",

View file

@ -13,10 +13,10 @@ java_library(
deps = [
"//java/google/registry/ui/forms",
"//javatests/google/registry/testing",
"//third_party/java/truth",
"@com_google_guava",
"@com_google_guava_testlib",
"@com_google_re2j",
"@com_google_truth",
"@junit",
"@org_hamcrest_library",
"@org_mockito_all",

View file

@ -14,7 +14,7 @@ java_library(
"//java/google/registry/ui/forms",
"//java/google/registry/ui/server",
"//javatests/google/registry/testing",
"@com_google_truth",
"//third_party/java/truth",
"@junit",
"@org_hamcrest_library",
],

View file

@ -25,11 +25,11 @@ java_library(
"//javatests/google/registry/security",
"//javatests/google/registry/testing",
"//third_party/java/objectify:objectify-v4_1",
"//third_party/java/truth",
"@com_braintreepayments_gateway_braintree_java",
"@com_google_appengine_api_1_0_sdk//:testonly",
"@com_google_guava",
"@com_google_guava_testlib",
"@com_google_truth",
"@com_googlecode_json_simple",
"@javax_servlet_api",
"@joda_time",

View file

@ -14,12 +14,12 @@ java_library(
"//java/google/registry/config",
"//java/google/registry/util",
"//javatests/google/registry/testing",
"//third_party/java/truth",
"@com_google_appengine_api_1_0_sdk",
"@com_google_code_findbugs_jsr305",
"@com_google_guava",
"@com_google_guava_testlib",
"@com_google_re2j",
"@com_google_truth",
"@joda_time",
"@junit",
"@org_mockito_all",

View file

@ -19,12 +19,12 @@ java_library(
"//java/google/registry/whois",
"//javatests/google/registry/testing",
"//third_party/java/objectify:objectify-v4_1",
"//third_party/java/truth",
"@com_google_appengine_api_1_0_sdk",
"@com_google_appengine_testing",
"@com_google_dagger",
"@com_google_guava",
"@com_google_guava_testlib",
"@com_google_truth",
"@javax_servlet_api",
"@joda_time",
"@junit",

View file

@ -15,9 +15,9 @@ java_library(
"//java/google/registry/util",
"//java/google/registry/xjc",
"//javatests/google/registry/testing",
"//third_party/java/truth",
"@com_google_code_findbugs_jsr305",
"@com_google_re2j",
"@com_google_truth",
"@junit",
"@org_hamcrest_library",
],

View file

@ -15,9 +15,9 @@ java_library(
"//java/google/registry/util",
"//java/google/registry/xml",
"//javatests/google/registry/testing",
"//third_party/java/truth",
"@com_google_code_findbugs_jsr305",
"@com_google_guava",
"@com_google_truth",
"@joda_time",
"@junit",
"@org_json",