public aspect ThisAndTargetPointcutMatching { // rule 1) you can't use generic or parameterized type patterns with this and target pointcut tryThisGeneric() : this(Generic); // CE L 4 pointcut tryTargetGeneric() : target(Generic); // CE L5 pointcut tryThisParameterized() : this(ISore); // CE L6 pointcut tryTargetParameterized() : target(ISore); // CE /7 } class Generic { T foo = null; T getFoo() { return foo; } } interface ISore { void iSee(E anE); } class UglyBuilding implements ISore { public void iSee(String s) {} }o'/> index : gitea.git
Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD: https://github.com/go-gitea/giteawww-data
aboutsummaryrefslogtreecommitdiffstats
blob: 733099041f84fa1e58611ab2e11af51c1f26d1d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22