From af1b8a12aaf2f9792d337b5f786ac78ff39454c9 Mon Sep 17 00:00:00 2001 From: Tomi De Lucca Date: Thu, 20 Jun 2019 21:51:05 -0300 Subject: [PATCH] Optimizing rule --- .../swift/rule/bestpractices/UnavailableFunctionRule.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pmd-swift/src/main/java/net/sourceforge/pmd/lang/swift/rule/bestpractices/UnavailableFunctionRule.java b/pmd-swift/src/main/java/net/sourceforge/pmd/lang/swift/rule/bestpractices/UnavailableFunctionRule.java index f2ee19ef7a..7de31a32cc 100644 --- a/pmd-swift/src/main/java/net/sourceforge/pmd/lang/swift/rule/bestpractices/UnavailableFunctionRule.java +++ b/pmd-swift/src/main/java/net/sourceforge/pmd/lang/swift/rule/bestpractices/UnavailableFunctionRule.java @@ -22,7 +22,7 @@ public class UnavailableFunctionRule extends AbstractSwiftRule { } } - return super.visitFunctionDeclaration(ctx); + return null; } @Override @@ -38,7 +38,7 @@ public class UnavailableFunctionRule extends AbstractSwiftRule { } } - return super.visitInitializerDeclaration(ctx); + return null; } private Boolean shouldIncludeUnavailableModifier(final SwiftParser.CodeBlockContext ctx) {