GuavaEclipsePlugin / GuavaEclipsePluginParent

"Guava Eclipse Plugin" is an eclipse plugin which will generate following methods using Google guava utility classes or jdk utility classes toString() [STRG + SHIFT + 4] - equals(Object object) & hashCode() [STRG + SHIFT + 5] - compareTo(...) [STRG + SHIFT + 6]
https://guavaeclipseplugin.github.io/
10 stars 4 forks source link

Possibility to define "Task Tag" for comments in compareTo methods #22

Closed arolfes closed 9 years ago

arolfes commented 9 years ago

The user should be able to define the "Task Tag" of comments in compareTo Method.

Example: current:

    @Override
    public int compareTo(SampleBean that) {
        return ComparisonChain.start().compare(this.testInt, that.testInt)
                .compare(this.testString, that.testString)
                // XXX field 'testObject' java.lang.Object is not comparable 
                //.compare(this.testObject, that.testObject)
                .result();
    }

define your own:

    @Override
    public int compareTo(SampleBean that) {
        return ComparisonChain.start().compare(this.testInt, that.testInt)
                .compare(this.testString, that.testString)
                // FIXME field 'testObject' java.lang.Object is not comparable 
                //.compare(this.testObject, that.testObject)
                .result();
    }
arolfes commented 9 years ago

should be done over another preference option