Skip to content

Commit 1e0aa9f

Browse files
authored
Merge pull request #10 from campfireman/dev
Added absolutely essential stickers.
2 parents 1b0d60a + 53ef680 commit 1e0aa9f

File tree

4 files changed

+85
-0
lines changed

4 files changed

+85
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
package com.github.codestickers;
2+
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;
8+
9+
/**
10+
* Instructs the fellow programmer not to further mess
11+
* with this potent piece of code
12+
*/
13+
@Retention(RetentionPolicy.CLASS)
14+
@Target({ElementType.TYPE,
15+
ElementType.FIELD,
16+
ElementType.METHOD,
17+
ElementType.PARAMETER,
18+
ElementType.CONSTRUCTOR,
19+
ElementType.LOCAL_VARIABLE,
20+
ElementType.ANNOTATION_TYPE,
21+
ElementType.PACKAGE,
22+
ElementType.TYPE_PARAMETER,
23+
ElementType.TYPE_USE})
24+
@Documented
25+
public @interface Magic {
26+
String value() default "";
27+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
package com.github.codestickers;
2+
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;
8+
9+
/**
10+
* A reminder of the total human capital wasted here
11+
*/
12+
@Retention(RetentionPolicy.CLASS)
13+
@Target({ElementType.TYPE,
14+
ElementType.FIELD,
15+
ElementType.METHOD,
16+
ElementType.PARAMETER,
17+
ElementType.CONSTRUCTOR,
18+
ElementType.LOCAL_VARIABLE,
19+
ElementType.ANNOTATION_TYPE,
20+
ElementType.PACKAGE,
21+
ElementType.TYPE_PARAMETER,
22+
ElementType.TYPE_USE})
23+
@Documented
24+
public @interface TotalHoursWastedHere {
25+
String value() default "";
26+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package com.github.codestickers;
2+
3+
public class MagicTest {
4+
5+
@Magic
6+
public static class SomeClass {
7+
@Magic("Copied from stackoverflow")
8+
public SomeClass() {
9+
10+
}
11+
12+
@Magic("I don't know what's happening here")
13+
public static void crazyCodeNinjaShit(@Magic("Only the lord knows where this value comes from") String theHolyScript) {
14+
}
15+
}
16+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package com.github.codestickers;
2+
3+
public class TotalHoursWastedHereTest {
4+
5+
@TotalHoursWastedHere("80h")
6+
public static class SomeClass {
7+
@TotalHoursWastedHere("0.01h")
8+
public SomeClass() {
9+
10+
}
11+
12+
@TotalHoursWastedHere("79.9h. Please update once you attempted to fix this.")
13+
public static void itSeemsSimpleToOptimizeButItIsNot(@TotalHoursWastedHere("0.09h. Many have come and failed") String val) {
14+
}
15+
}
16+
}

0 commit comments

Comments
 (0)