File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
src/main/groovy/nebula/plugin/contacts Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -2,17 +2,14 @@ package nebula.plugin.contacts
22
33import groovy.lang.DelegatesTo
44import org.gradle.api.Action
5- import org.gradle.api.NamedDomainObjectContainer
65
76/**
8- * Holds Person for a project.
9- * TODO repeat a name and guarantee uniqueness
7+ * Holds contacts for a project.
108 */
119class ContactsExtension {
1210
1311 private final String emailPattern = / [_A-Za-z0-9-]+(.[_A-Za-z0-9-]+)*@[A-Za-z0-9]+(.[A-Za-z0-9]+)*(.[A-Za-z]{2,})/
1412
15- NamedDomainObjectContainer<Contact > peopleContainer
1613 final LinkedHashMap<String , Contact > people
1714 boolean validateEmails
1815
@@ -70,7 +67,7 @@ class ContactsExtension {
7067 if (validateEmails)
7168 validateEmail(email)
7269 def person = people. containsKey(email) ? people. get(email) : new Contact (email)
73- people. put(email, person) // Redundant if already there, just trying to follow model below
70+ people. put(email, person)
7471 return person
7572 }
7673
You can’t perform that action at this time.
0 commit comments