소스 검색

WildTypePattern.toString: do not parenthesesise generic type list

It is unnecessary to represent a pattern list 'A,B,C' as '(A,B,C)'. Not
only does it look ugly in a type signature like 'org.acme.Foo<(A,B,C)>',
but also is it not valid Java syntax. While the latter might not be
strictly necessary in a String representation, it certainly is
desirable, if such representations are ever used to generate code or
@AspectJ pointcut annotations.

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
pull/212/head
Alexander Kriegisch 1 년 전
부모
커밋
6babbf9fce
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      org.aspectj.matcher/src/main/java/org/aspectj/weaver/patterns/WildTypePattern.java

+ 1
- 1
org.aspectj.matcher/src/main/java/org/aspectj/weaver/patterns/WildTypePattern.java 파일 보기

@@ -1196,7 +1196,7 @@ public class WildTypePattern extends TypePattern {
}
if (typeParameters != null && typeParameters.size() != 0) {
buf.append("<");
buf.append(typeParameters.toString());
buf.append(typeParameters.toString().replaceFirst("^.(.*).$", "$1"));
buf.append(">");
}
if (includeSubtypes) {

Loading…
취소
저장