Skip to content

Commit

Permalink
Add missing @retention
Browse files Browse the repository at this point in the history
  • Loading branch information
tomergoldst committed Feb 15, 2021
1 parent 78d2418 commit ae904ab
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tooltips/src/main/java/com/tomergoldst/tooltips/ToolTip.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,28 @@
import androidx.annotation.Nullable;
import androidx.annotation.StyleRes;

import java.lang.annotation.Retention;

import static java.lang.annotation.RetentionPolicy.SOURCE;

public class ToolTip {

@Retention(SOURCE)
@IntDef({POSITION_ABOVE, POSITION_BELOW, POSITION_LEFT_TO, POSITION_RIGHT_TO})
public @interface Position {}
public static final int POSITION_ABOVE = 0;
public static final int POSITION_BELOW = 1;
public static final int POSITION_LEFT_TO = 3;
public static final int POSITION_RIGHT_TO = 4;

@Retention(SOURCE)
@IntDef({ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT})
public @interface Align {}
public static final int ALIGN_CENTER = 0;
public static final int ALIGN_LEFT = 1;
public static final int ALIGN_RIGHT = 2;

@Retention(SOURCE)
@IntDef({GRAVITY_CENTER, GRAVITY_LEFT, GRAVITY_RIGHT})
public @interface Gravity {}
public static final int GRAVITY_CENTER = 0;
Expand Down

0 comments on commit ae904ab

Please sign in to comment.