Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lucko committed Jan 24, 2019
1 parent 39cc56c commit 4e8727f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -3,7 +3,7 @@

An annotation based API for Java reflection.

The system was inspired by the [`Shadow`](http://jenkins.liteloader.com/job/Mixin/javadoc/org/spongepowered/asm/mixin/Shadow.html) feature in the SpongePowered [Mixin](https://github.com/SpongePowered/Mixin) library. The code in this repository is adapted from the package built into [lucko/helper](https://github.com/lucko/helper/tree/master/helper/src/main/java/me/lucko/helper/shadow).
The system was inspired by the [`Shadow`](http://jenkins.liteloader.com/job/Mixin/javadoc/org/spongepowered/asm/mixin/Shadow.html) feature in the SpongePowered [Mixin](https://github.com/SpongePowered/Mixin) library. The code in this repository is adapted from the package previously built into [lucko/helper](https://github.com/lucko/helper).

### Example
Given the following example base class:
Expand Down Expand Up @@ -91,4 +91,4 @@ The shadow approach has a number of key advantages over the plain reflection met
* If the layout of `Person` changes - we only have to update one obvious place.
* The places in our program using the shadow (in this case the `incrementAge` method) aren't cluttered with the details of the person class.
* We don't have to deal with the checked exceptions associated with obtaining the field or modifying the value. These are simply wrapped up into a `RuntimeException` thrown when the shadow is obtained.
* The shadow implementation caches the underlying `Field`, `Method` etc instances behind the scenes, we don't have to worry!
* The shadow implementation caches the underlying `Field`, `Method` etc instances behind the scenes, we don't have to worry!

0 comments on commit 4e8727f

Please sign in to comment.