h0.3.1 (Jun 10, 2014)
May 3, 2014
Jan 23, 2016 (Retired)
Maciej Górski (mg6maciej)
Tumi (serverperformance)
Philipp Eichhorn (peichhorn)
Jan Lahoda (jlahoda)
Kay-Uwe Janssen (dodgex)
Stephen Haberman (stephenh)
Jan Ouwens (jqno)
Christian Sterzl (Waxolunist)
Anthony Whitford (awhitford)
Taiki Sugawara (buzztaiki)
Maarten Mulders (mthmulders)
Sander Koning (askoning)
Robbert Jan Grootjans (grootjans)
Reinier Zwitserloot (rzwitserloot)
Roel Spilker (rspilker)
Brad Fritz (bfritz)
The Gitter Badger (gitter-badger)
Maciej Górski (mg6maciej)
Show all (21)21
Source code

Show card


Boilerplate code suppressor tool for Android platform based on Project Lombok.

More details on available annotaions in wiki pages.

Current limitation: doesn't work with JDK 8. Any help resolving this issue is highly appreciated.


Add Hrisey as a dependency:

dependencies {
    provided 'pl.mg6.hrisey:hrisey:0.3.1'

Install Hrisey Plugin in IntelliJ IDEA or Android Studio.

And then just start using it:

class ParcelableClass implements android.os.Parcelable {

    String myString;

Note: adding implements android.os.Parcelable seems redundant, but is there only because of a limitation when using certain Jetbrains APIs. Hrisey will generate it if missing, but IDEA / Android Studio will not undestand it.

This will generate

class ParcelableClass implements android.os.Parcelable {

    public static final android.os.Parcelable.Creator<ParcelableClass> CREATOR = new CreatorImpl();

    String myString;

    public int describeContents() {
        return 0;

    public void writeToParcel(android.os.Parcel dest, int flags) {

    protected ParcelableClass(android.os.Parcel source) {
        this.myString = source.readString();

    private static class CreatorImpl implements android.os.Parcelable.Creator<ParcelableClass> {

        public ParcelableClass createFromParcel(android.os.Parcel source) {
            return new ParcelableClass(source);

        public ParcelableClass[] newArray(int size) {
            return new ParcelableClass[size];

during preprocessing phase. You will never see this code again!

Optimization hint: when possible, add final to classes with @Parcelable annotation to avoid some reflection and storing unnecessary bits of data.

Why is Hrisey better?

Because it "adds" code to your classes. Other tools use JSR 269 to generate new classes, which leads to leaking abstraction in your code. Hrisey is transparent and can be technically removed from your project in a matter of minutes. But when you start using it, you will never think of doing so.

Why is Hrisey worse?

Because it "adds" code to your classes. You have to be careful not to put there too much logic yourself, because debugging might be more complicated.

About Lombok

Project Lombok makes java a spicier language by adding 'handlers' that know how to build and compile simple, boilerplate-free, not-quite-java code. See LICENSE for the Project Lombok license.

To start, run:

ant -projecthelp

HINT: If you'd like to develop lombok in eclipse, run ant eclipse first. It creates the necessary project infrastructure and downloads dependencies. Note that, in order to run "LombokizedEclipse.launch", you need to have "Eclipse SDK" installed.

For a list of all authors, see the AUTHORS file.

Project Lombok was started by:

Reinier Zwitserloot twitter: @surial home:

Roel Spilker twitter: @rspilker