More meaningful toString() method

Produce toString without dilligently adding it to every single class.
Rely on heuristics to cut down the number of fields to show.
This commit is contained in:
Kohsuke Kawaguchi
2016-06-02 22:36:47 -07:00
parent 3c5592c1c8
commit cde501af8d
6 changed files with 72 additions and 11 deletions

View File

@@ -0,0 +1,16 @@
package org.kohsuke.github;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Ignores this field for {@link GHObject#toString()}
*
* @author Kohsuke Kawaguchi
*/
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@interface SkipFromToString {
}