Skip to content

Commit

Permalink
safe-logging annotations may be applied to fields and variables (#682)
Browse files Browse the repository at this point in the history
safe-logging annotations may be applied to fields and variables
  • Loading branch information
carterkozak authored Mar 30, 2022
1 parent 3b5ba69 commit dcbe7e9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions changelog/@unreleased/pr-682.v2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
type: improvement
improvement:
description: safe-logging annotations may be applied to fields and variables
links:
- https://github.com/palantir/safe-logging/pull/682
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@
*/
@Documented
@Inherited
@Target({ElementType.TYPE, ElementType.METHOD, ElementType.PARAMETER})
@Target({ElementType.TYPE, ElementType.METHOD, ElementType.PARAMETER, ElementType.LOCAL_VARIABLE, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface DoNotLog {}
2 changes: 1 addition & 1 deletion safe-logging/src/main/java/com/palantir/logsafe/Safe.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@
*/
@Documented
@Inherited
@Target({ElementType.TYPE, ElementType.METHOD, ElementType.PARAMETER})
@Target({ElementType.TYPE, ElementType.METHOD, ElementType.PARAMETER, ElementType.LOCAL_VARIABLE, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface Safe {}
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@
*/
@Documented
@Inherited
@Target({ElementType.TYPE, ElementType.METHOD, ElementType.PARAMETER})
@Target({ElementType.TYPE, ElementType.METHOD, ElementType.PARAMETER, ElementType.LOCAL_VARIABLE, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface Unsafe {}

0 comments on commit dcbe7e9

Please sign in to comment.