Skip to content

Commit

Permalink
Declare PathTemplate is Immutable
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdanfox committed Apr 23, 2020
1 parent 79e04e9 commit 78a9294
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import com.google.common.base.Verify;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.Sets;
import com.google.errorprone.annotations.Immutable;
import com.palantir.logsafe.Preconditions;
import com.palantir.logsafe.SafeArg;
import java.util.ArrayList;
Expand All @@ -27,6 +28,7 @@
import java.util.Set;
import javax.annotation.Nullable;

@Immutable
public final class PathTemplate {

// TODO(rfink): Add query parameters.
Expand Down Expand Up @@ -86,6 +88,7 @@ public PathTemplate build() {
}
}

@Immutable
public static final class Segment {
@Nullable
private final String fixed;
Expand Down

0 comments on commit 78a9294

Please sign in to comment.