2626import java .util .Collections ;
2727import java .util .List ;
2828
29- public class CppcheckInspection extends LocalInspectionTool {
29+ class CppcheckInspection extends LocalInspectionTool {
3030 @ Nullable
3131 @ Override
32- public ProblemDescriptor [] checkFile (@ NotNull PsiFile file ,
33- @ NotNull InspectionManager manager ,
34- boolean isOnTheFly ) {
32+ public ProblemDescriptor [] checkFile (@ NotNull final PsiFile file ,
33+ @ NotNull final InspectionManager manager ,
34+ final boolean isOnTheFly ) {
3535 final VirtualFile vFile = file .getVirtualFile ();
3636 if (vFile == null || !vFile .isInLocalFileSystem () || !isCFamilyFile (vFile )) {
3737 return ProblemDescriptor .EMPTY_ARRAY ;
@@ -68,7 +68,7 @@ public ProblemDescriptor[] checkFile(@NotNull PsiFile file,
6868 final List <ProblemDescriptor > descriptors = CppCheckInspectionImpl .parseOutput (file , manager , document , cppcheckOutput ,
6969 tempFile .getName ());
7070 return descriptors .toArray (new ProblemDescriptor [0 ]);
71- } catch (ExecutionException | CppcheckError | IOException | SAXException | ParserConfigurationException ex ) {
71+ } catch (final ExecutionException | CppcheckError | IOException | SAXException | ParserConfigurationException ex ) {
7272 Notifications .Bus .notify (new Notification ("Cppcheck" ,
7373 "Cppcheck execution failed." ,
7474 ex .getClass ().getSimpleName () + ": " + ex .getMessage (),
@@ -83,7 +83,7 @@ public ProblemDescriptor[] checkFile(@NotNull PsiFile file,
8383 }
8484
8585 @ NotNull
86- private static String prependIncludeDir (@ NotNull String cppcheckOptions , @ NotNull VirtualFile vFile ) {
86+ private static String prependIncludeDir (@ NotNull final String cppcheckOptions , @ NotNull final VirtualFile vFile ) {
8787 final VirtualFile dir = vFile .getParent ();
8888 if (dir == null ) {
8989 return cppcheckOptions ;
0 commit comments