-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove hubspot-style and immutables-exceptions dependencies
- Loading branch information
1 parent
c392aac
commit a0413fd
Showing
3 changed files
with
28 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
src/main/java/com/hubspot/jinjava/style/JinjavaImmutableStyle.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package com.hubspot.jinjava.style; | ||
|
||
import com.fasterxml.jackson.databind.annotation.JsonSerialize; | ||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
import org.immutables.value.Value.Style; | ||
import org.immutables.value.Value.Style.ImplementationVisibility; | ||
|
||
@Target({ ElementType.PACKAGE, ElementType.TYPE }) | ||
@Retention(RetentionPolicy.CLASS) | ||
@JsonSerialize | ||
@Style( | ||
get = { "is*", "get*" }, | ||
init = "set*", | ||
typeAbstract = { "Abstract*", "*IF" }, | ||
typeImmutable = "*", | ||
optionalAcceptNullable = true, | ||
forceJacksonPropertyNames = false, | ||
visibility = ImplementationVisibility.SAME, | ||
redactedMask = "**REDACTED**" | ||
) | ||
public @interface JinjavaImmutableStyle { | ||
} |