From 0e6bdd025da322a2b0a35fd25d6bb6fedcbfda96 Mon Sep 17 00:00:00 2001 From: Ryan Ernst Date: Mon, 25 Jul 2016 17:17:12 -0700 Subject: [PATCH] Construct hashmap directly instead of using crazy groovy syntax --- .../elasticsearch/gradle/precommit/LicenseHeadersTask.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildSrc/src/main/groovy/org/elasticsearch/gradle/precommit/LicenseHeadersTask.groovy b/buildSrc/src/main/groovy/org/elasticsearch/gradle/precommit/LicenseHeadersTask.groovy index cee01f5380a..820fbe34335 100644 --- a/buildSrc/src/main/groovy/org/elasticsearch/gradle/precommit/LicenseHeadersTask.groovy +++ b/buildSrc/src/main/groovy/org/elasticsearch/gradle/precommit/LicenseHeadersTask.groovy @@ -53,7 +53,7 @@ public class LicenseHeadersTask extends AntTask { * Additional license families that may be found. The key is the license category name (5 characters), * followed by the family name and the value list of patterns to search for. */ - protected Map additionalLicenses = [:] + protected Map additionalLicenses = new HashMap<>() LicenseHeadersTask() { description = "Checks sources for missing, incorrect, or unacceptable license headers"