Пример #1
0
  @Override
  void specificToGenericStringHeader(StringBuilder sb) {
    Type genRetType = getGenericReturnType();
    sb.append(
            ((genRetType instanceof Class<?>)
                ? Field.getTypeName((Class<?>) genRetType)
                : genRetType.toString()))
        .append(' ');

    sb.append(Field.getTypeName(getDeclaringClass())).append('.');
    sb.append(getName());
  }
Пример #2
0
 @Override
 void specificToStringHeader(StringBuilder sb) {
   sb.append(Field.getTypeName(getReturnType())).append(' ');
   sb.append(Field.getTypeName(getDeclaringClass())).append('.');
   sb.append(getName());
 }