瀏覽代碼

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>
tags/V1_9_22_1
Alexander Kriegisch 1 年之前
父節點
當前提交
397796d676
共有 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…
取消
儲存