Skip to content

Commit 3179c26

Browse files
committed
Removed repeatability as it is supported from jdk 8.
1 parent 1b0d60a commit 3179c26

File tree

15 files changed

+27
-151
lines changed

15 files changed

+27
-151
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: build
22
on:
33
push:
44
branches:
5-
- master
5+
- master-jdk7
66
jobs:
77
build:
88
runs-on: ubuntu-20.04

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>com.github.codestickers</groupId>
55
<artifactId>codestickers</artifactId>
6-
<version>1.0.3-SNAPSHOT</version>
6+
<version>1.0.2-jdk7-SNAPSHOT</version>
77
<packaging>jar</packaging>
88
<name>CodeStickers</name>
99
<description>A collection of useful java annotations.</description>
1010
<properties>
1111
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1212
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
13-
<java.version>1.8</java.version>
13+
<java.version>1.7</java.version>
1414
</properties>
1515
<url>https://github.com/codestickers</url>
1616
<developers>

src/main/java/com/github/codestickers/DoNotUse.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import java.lang.annotation.Documented;
44
import java.lang.annotation.ElementType;
5-
import java.lang.annotation.Repeatable;
65
import java.lang.annotation.Retention;
76
import java.lang.annotation.RetentionPolicy;
87
import java.lang.annotation.Target;
@@ -18,9 +17,7 @@
1817
ElementType.CONSTRUCTOR,
1918
ElementType.LOCAL_VARIABLE,
2019
ElementType.ANNOTATION_TYPE,
21-
ElementType.PACKAGE,
22-
ElementType.TYPE_PARAMETER,
23-
ElementType.TYPE_USE})
20+
ElementType.PACKAGE})
2421
@Documented
2522
public @interface DoNotUse
2623
{
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
package com.github.codestickers;
22

3-
import java.lang.annotation.*;
3+
import java.lang.annotation.Documented;
4+
import java.lang.annotation.ElementType;
5+
import java.lang.annotation.Retention;
6+
import java.lang.annotation.RetentionPolicy;
7+
import java.lang.annotation.Target;
48

59
/**
610
* This annotations marks a fix me.
@@ -13,11 +17,8 @@
1317
ElementType.CONSTRUCTOR,
1418
ElementType.LOCAL_VARIABLE,
1519
ElementType.ANNOTATION_TYPE,
16-
ElementType.PACKAGE,
17-
ElementType.TYPE_PARAMETER,
18-
ElementType.TYPE_USE})
20+
ElementType.PACKAGE})
1921
@Documented
20-
@Repeatable(FixMes.class)
2122
public @interface FixMe {
2223
String value() default "";
2324
}

src/main/java/com/github/codestickers/FixMes.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@
1717
ElementType.CONSTRUCTOR,
1818
ElementType.LOCAL_VARIABLE,
1919
ElementType.ANNOTATION_TYPE,
20-
ElementType.PACKAGE,
21-
ElementType.TYPE_PARAMETER,
22-
ElementType.TYPE_USE})
20+
ElementType.PACKAGE})
2321
@Documented
2422
public @interface FixMes
2523
{

src/main/java/com/github/codestickers/Hint.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import java.lang.annotation.Documented;
44
import java.lang.annotation.ElementType;
5-
import java.lang.annotation.Repeatable;
65
import java.lang.annotation.Retention;
76
import java.lang.annotation.RetentionPolicy;
87
import java.lang.annotation.Target;
@@ -18,11 +17,8 @@
1817
ElementType.CONSTRUCTOR,
1918
ElementType.LOCAL_VARIABLE,
2019
ElementType.ANNOTATION_TYPE,
21-
ElementType.PACKAGE,
22-
ElementType.TYPE_PARAMETER,
23-
ElementType.TYPE_USE})
20+
ElementType.PACKAGE})
2421
@Documented
25-
@Repeatable(Hints.class)
2622
public @interface Hint {
2723
String value() default "";
2824
}

src/main/java/com/github/codestickers/Hints.java

Lines changed: 0 additions & 27 deletions
This file was deleted.

src/main/java/com/github/codestickers/Note.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import java.lang.annotation.Documented;
44
import java.lang.annotation.ElementType;
5-
import java.lang.annotation.Repeatable;
65
import java.lang.annotation.Retention;
76
import java.lang.annotation.RetentionPolicy;
87
import java.lang.annotation.Target;
@@ -18,11 +17,8 @@
1817
ElementType.CONSTRUCTOR,
1918
ElementType.LOCAL_VARIABLE,
2019
ElementType.ANNOTATION_TYPE,
21-
ElementType.PACKAGE,
22-
ElementType.TYPE_PARAMETER,
23-
ElementType.TYPE_USE})
20+
ElementType.PACKAGE})
2421
@Documented
25-
@Repeatable(Notes.class)
2622
public @interface Note
2723
{
2824
String value() default "";

src/main/java/com/github/codestickers/Notes.java

Lines changed: 0 additions & 27 deletions
This file was deleted.

src/main/java/com/github/codestickers/See.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import java.lang.annotation.Documented;
44
import java.lang.annotation.ElementType;
5-
import java.lang.annotation.Repeatable;
65
import java.lang.annotation.Retention;
76
import java.lang.annotation.RetentionPolicy;
87
import java.lang.annotation.Target;
@@ -18,11 +17,8 @@
1817
ElementType.CONSTRUCTOR,
1918
ElementType.LOCAL_VARIABLE,
2019
ElementType.ANNOTATION_TYPE,
21-
ElementType.PACKAGE,
22-
ElementType.TYPE_PARAMETER,
23-
ElementType.TYPE_USE})
20+
ElementType.PACKAGE})
2421
@Documented
25-
@Repeatable(Sees.class)
2622
public @interface See {
2723
String value() default "";
2824
}

0 commit comments

Comments
 (0)