Skip to content

Commit

Permalink
remove lombok
Browse files Browse the repository at this point in the history
  • Loading branch information
asloobq committed Oct 9, 2024
1 parent b850865 commit 7e13212
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
6 changes: 0 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,6 @@
<artifactId>junit-jupiter-params</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.34</version>
<scope>provided</scope>
</dependency>
</dependencies>

<dependencyManagement>
Expand Down
12 changes: 7 additions & 5 deletions src/main/java/com/uid2/client/Site.java
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
package com.uid2.client;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Set;

@Getter
@AllArgsConstructor
public class Site {
private final int id;

private final Set<String> domainOrAppNames;

public int getId() { return id;}

public Site(int id, Set<String> domainOrAppNames) {
this.id = id;
this.domainOrAppNames = domainOrAppNames;
}

public boolean allowDomainOrAppName(String domainOrAppName) {
// Using streams because HashSet's contains() is case sensitive
return domainOrAppNames.stream().anyMatch(domainOrAppName::equalsIgnoreCase);
Expand Down

0 comments on commit 7e13212

Please sign in to comment.