From 893ed40f1621bc73b39601dbb41081415ecd75cc Mon Sep 17 00:00:00 2001 From: Bas Leijdekkers Date: Sun, 16 Jul 2017 19:23:44 +0200 Subject: [PATCH] IG: fix "Method does not call super method" description (IDEA-175944) --- .../src/inspectionDescriptions/RefusedBequest.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/InspectionGadgets/src/inspectionDescriptions/RefusedBequest.html b/plugins/InspectionGadgets/src/inspectionDescriptions/RefusedBequest.html index e817ef2e7d05..07167f014524 100644 --- a/plugins/InspectionGadgets/src/inspectionDescriptions/RefusedBequest.html +++ b/plugins/InspectionGadgets/src/inspectionDescriptions/RefusedBequest.html @@ -3,12 +3,14 @@ Reports any methods which override concrete methods, but which do not call that method as super. This is also known as a refused bequest and such methods may represent a failure of abstraction which can lead to hard-to-trace bugs. Methods overridden -from java.lang.Object are not reported by this inspection. +from java.lang.Object except for clone() are not reported by this inspection. +A clone() method is expected to call its super, which will automatically return an object of the correct type.

Use the first checkbox below to only warn when the super method is annotated by an annotation specified in the table below.

-Use the second checkbox below to ignore super methods when they are empty. Enabling this option can be processor intensive. +Use the second checkbox below to ignore super methods when they are empty or only throw an exception. + Enabling this option can be processor intensive.