Diagnosability - Add Attribute#toString() for more informative outputs
This commit is contained in:
parent
981db2b37a
commit
541880bdba
|
|
@ -35,6 +35,11 @@ public class Attribute<T> {
|
|||
this.type = type;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("%s(class: %s, multiple: %s)", name, type, multiple);
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return preferredName != null ? preferredName : name;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue