super.unusedPrivateType(typeDecl);
}
+ public void unusedPrivateMethod(AbstractMethodDeclaration methodDecl) {
+ // don't output unused warnings for pointcuts...
+ if (!(methodDecl instanceof PointcutDeclaration))
+ super.unusedPrivateMethod(methodDecl);
+ }
}
--- /dev/null
+public aspect pr101606 {
+
+ private pointcut foo();
+
+}
\ No newline at end of file
runTest("synchronized itd interface methods");
}
+ public void testNoWarningOnUnusedPointcut() {
+ runTest("unused private pointcuts");
+ }
+
// helper methods.....
public SyntheticRepository createRepos(File cpentry) {
</compile>
<run class="SynchronizedInterfaceMethods"/>
</ajc-test>
-
+
+ <ajc-test dir="bugs150" pr="101606" title="unused private pointcuts">
+ <compile files="pr101606.aj" options="-warn:unusedPrivate">
+ </compile>
+ </ajc-test>
+
<!-- ============================================================================ -->
<!-- ============================================================================ -->