kerou / gag Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/gag
License: Apache License 2.0
Automatically exported from code.google.com/p/gag
License: Apache License 2.0
To use the Google Annotations Gallery, download the gag-<version>.zip file from http://code.google.com/p/gag/ and unzip. You can find the annotations and supporting enumerations in gag.jar. If you want to enforce the enforceable annotations, you can find the dynamic bytecode instrumentation Java agent in gag-agent.jar. To use the annotations, simply annotate your code with them and include gag.jar in your classpath. To use the Java agent: use at least JDK 5; use the -javaagent:gag-agent.jar option; and put the agent-dependent jars in your classpath, like: java -javaagent:gag-agent.jar \ -cp asm-3.1.jar:asm-commons-3.1.jar:google-collect-1.0.jar:gag.jar \ MyAnnotatedClass A demo can be run from ant by doing: ant run-demo
Might as well bake it in the compiled code. Something like Lombok does a great
job at generated code from annotations, there's perhaps an easy way to take
advantage their existing infrastructure.
(enabling the agent is a tad cumbersome)
Original issue reported on code.google.com by [email protected]
on 22 May 2014 at 7:24
Because @PleaseDontShowUpOn(THEDAILYWTF) is a sentiment that needs expressing.
Original issue reported on code.google.com by [email protected]
on 25 Jun 2013 at 2:23
Annotating a method with the @OnlyProvedNotTested annotation is a way of
indicating to the reader/maintainer: "Beware of bugs in the above code; I have
only proved it correct, not tried it."
It should take an optional string containing the actual proof, or a link to a
document where the proof is written out.
An engineer who is spending his or her time writing unit tests would be advised
to search the codebase for this annotation, and devote lots of time to writing
tests for any method that has this annotation, at which point the annotation
could be removed.
Original issue reported on code.google.com by [email protected]
on 11 Apr 2013 at 2:02
What steps will reproduce the problem?
1. JDK 1.7.0_51
2. ant run-demo
3. VerifyError
What is the expected output? What do you see instead?
The demo output.
What version of the product are you using? On what operating system?
Linux, JDK 1.7.0.51.
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 11 Feb 2014 at 3:24
What about some IoC features on GAG?
@Gimme
private Ring<Gold> precious;
Original issue reported on code.google.com by [email protected]
on 6 Jan 2014 at 5:24
Currently, the library is a big win! But I think it's still missing a useful
annotation. @SorryAboutThat would be a great addition to express desperation to
coworkers, and we couldn't do it another way.
Thanks for such a useful tool!
Original issue reported on code.google.com by bmathus
on 12 Dec 2013 at 1:07
Please add @RTFM annotation with text link to document.
@See http://en.wikipedia.org/wiki/RTFM
Thanks.
Original issue reported on code.google.com by [email protected]
on 2 Apr 2010 at 3:52
Generally accepted practice is to flag operations that are performed with
unbelievable disregard for social custom with the tag @OhNoYouDi-int
Original issue reported on code.google.com by [email protected]
on 12 Sep 2011 at 10:42
What steps will reproduce the problem?
1. When I pass this project link to friends.
2. When they buzz it!
3. When its shared all over.
What is the expected output? What do you see instead?
"Zomg! I'm fooled ;)"
What version of the product are you using? On what operating system?
4.1 [ april.first ]
Please provide any additional information below.
Trying to find more such issues ;)
Original issue reported on code.google.com by [email protected]
on 1 Apr 2010 at 12:20
Do eeeet
Original issue reported on code.google.com by [email protected]
on 1 Apr 2010 at 5:31
noone will ever use another library for anything.
Original issue reported on code.google.com by [email protected]
on 1 Apr 2010 at 5:54
What about being able to "like" code?
Something like:
/**
* Indicates that the mentioned persons like or enjoy the annotated code.
*
* For example:
*
* <pre>
* @Like(persons = "Joe")
* public class FluxCapacitor {
* </pre>
*/
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Visionary("yamass")
public @interface Like {
String[] persons() default {};
}
Original issue reported on code.google.com by [email protected]
on 9 Oct 2013 at 9:57
Here are some ideas for quick prototype code annotations, @yetToBeTested,
@theoretical, or my favorite @thisShouldWork.
You could also add Website.CODINGCONFESSIONAL.
Original issue reported on code.google.com by [email protected]
on 28 May 2013 at 4:14
Could you upload version 1.0 to the maven central repository (as per
http://maven.apache.org/guides/mini/guide-central-repository-upload.html)?
Thanks,
Nick
Original issue reported on code.google.com by [email protected]
on 2 Apr 2010 at 8:47
Please add an @OhNoYouDidnt with a fingerSnapCount attribute.
Original issue reported on code.google.com by [email protected]
on 1 Apr 2010 at 3:14
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 28 May 2013 at 5:06
It'll be grate to use
@AnswerToTheUltimateQuestionOfLifeTheUniverseAndEverything for classes and
methods.
Original issue reported on code.google.com by [email protected]
on 24 Jan 2014 at 9:18
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.