From df87db8d7aeb8d5f6fefc7e94c7637d658729462 Mon Sep 17 00:00:00 2001 From: "Travis CI (pmd-bot)" Date: Sat, 16 Sep 2017 14:34:19 +0000 Subject: [PATCH] Update documentation --- docs/pages/pmd/rules/java/basic.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/pages/pmd/rules/java/basic.md b/docs/pages/pmd/rules/java/basic.md index 70130b5879..6399d7a262 100644 --- a/docs/pages/pmd/rules/java/basic.md +++ b/docs/pages/pmd/rules/java/basic.md @@ -476,9 +476,8 @@ Explicitly calling Thread.run() method will execute in the caller's thread of co [ ./Name[ends-with(@Image, '.run') or @Image = 'run'] and substring-before(Name/@Image, '.') =//VariableDeclarator/VariableDeclaratorId/@Image - [../../../Type/ReferenceType[ClassOrInterfaceType/@Image = 'Thread']] - or ( - ./AllocationExpression/ClassOrInterfaceType[@Image = 'Thread'] + [../../../Type/ReferenceType/ClassOrInterfaceType[typeof(@Image, 'java.lang.Thread', 'Thread')]] + or (./AllocationExpression/ClassOrInterfaceType[typeof(@Image, 'java.lang.Thread', 'Thread')] and ../PrimarySuffix[@Image = 'run']) ] ]