aesthetic fix to the processor-generated jdoc
This commit is contained in:
parent
8b021ac01f
commit
c7504d4ada
|
@ -92,34 +92,38 @@ public abstract class AbstractFinderMethod extends AbstractQueryMethod {
|
||||||
.append("\n * Find ")
|
.append("\n * Find ")
|
||||||
.append("{@link ")
|
.append("{@link ")
|
||||||
.append(annotationMetaEntity.importType(entity))
|
.append(annotationMetaEntity.importType(entity))
|
||||||
.append("} by ");
|
.append("}");
|
||||||
long paramCount = paramTypes.stream()
|
long paramCount = paramTypes.stream()
|
||||||
.filter(type -> !isSpecialParam(type))
|
.filter(type -> !isSpecialParam(type))
|
||||||
.count();
|
.count();
|
||||||
int count = 0;
|
if ( paramCount> 0 ) {
|
||||||
for (int i = 0; i < paramTypes.size(); i++) {
|
declaration
|
||||||
String type = paramTypes.get(i);
|
.append(" by ");
|
||||||
if ( !isSpecialParam(type) ) {
|
int count = 0;
|
||||||
if ( count>0 ) {
|
for (int i = 0; i < paramTypes.size(); i++) {
|
||||||
if ( count + 1 == paramCount) {
|
final String type = paramTypes.get(i);
|
||||||
declaration
|
if ( !isSpecialParam(type) ) {
|
||||||
.append(paramCount>2 ? ", and " : " and "); //Oxford comma
|
if ( count>0 ) {
|
||||||
}
|
if ( count + 1 == paramCount) {
|
||||||
else {
|
declaration
|
||||||
declaration
|
.append(paramCount>2 ? ", and " : " and "); //Oxford comma
|
||||||
.append(", ");
|
}
|
||||||
|
else {
|
||||||
|
declaration
|
||||||
|
.append(", ");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
count++;
|
||||||
|
final String path = paramNames.get(i);
|
||||||
|
declaration
|
||||||
|
.append("{@link ")
|
||||||
|
.append(annotationMetaEntity.importType(entity))
|
||||||
|
.append('#')
|
||||||
|
.append(qualifier(path))
|
||||||
|
.append(' ')
|
||||||
|
.append(path)
|
||||||
|
.append("}");
|
||||||
}
|
}
|
||||||
count++;
|
|
||||||
final String path = paramNames.get(i);
|
|
||||||
declaration
|
|
||||||
.append("{@link ")
|
|
||||||
.append(annotationMetaEntity.importType(entity))
|
|
||||||
.append('#')
|
|
||||||
.append(qualifier(path))
|
|
||||||
.append(' ')
|
|
||||||
.append(path)
|
|
||||||
.append("}");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
declaration
|
declaration
|
||||||
|
|
Loading…
Reference in New Issue