diff --git a/.idea/inspectionProfiles/idea_default.xml b/.idea/inspectionProfiles/idea_default.xml index 6d0023466ae4..fbdb5d97b9ee 100644 --- a/.idea/inspectionProfiles/idea_default.xml +++ b/.idea/inspectionProfiles/idea_default.xml @@ -158,6 +158,7 @@ + diff --git a/plugins/InspectionGadgets/src/META-INF/InspectionGadgets.xml b/plugins/InspectionGadgets/src/META-INF/InspectionGadgets.xml index 8af7166a00e4..e1e98a4ad774 100644 --- a/plugins/InspectionGadgets/src/META-INF/InspectionGadgets.xml +++ b/plugins/InspectionGadgets/src/META-INF/InspectionGadgets.xml @@ -2281,7 +2281,7 @@ key="assert.message.not.string.display.name" groupBundle="messages.InspectionsBundle" groupKey="group.names.code.style.issues" enabledByDefault="false" level="WARNING" implementationClass="com.siyeh.ig.style.AssertMessageNotStringInspection"/> { //buffer.append(" [...]\n"); } } + ///////// recursive 2 + public static boolean isBackpointerReference(Object expression, Processor<Number> numberCond) { + if (expression instanceof Number) { + final String contents = expression.toString(); + return isBackpointerReference(contents, numberCond); + } + return expression instanceof Number && numberCond.process((Number)expression); + } + ///////// can't deduce anything - too general private static String findNonCodeAnnotation(Collection annotationNames, Map, String> map ) {