Coder Social home page Coder Social logo

gag's Introduction

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

gag's People

Watchers

James Cloos avatar  avatar

gag's Issues

@Like

What about being able to "like" code?

Something like:

/**
 * Indicates that the mentioned persons like or enjoy the annotated code.
 *
 * For example:
 *
 * <pre>
 *   &#064;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

feature request: @OnlyProvedNotTested

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

First issue on april first

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

Please Add @RTFM

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

@yetToBeTested code

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

Where's @YOLO?

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

Add @SorryAboutThat annotation

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

Demo fails with java.lang.VerifyError: Expecting a stackmap frame at ...

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

Upload to the Maven Central Repository?

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.