From 3bd957d17807bf94a4513102bf989608bf27be0e Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Mon, 13 Apr 2015 17:17:33 +0300 Subject: [PATCH] cleanup --- .../intellij/codeInspection/reference/RefManagerImpl.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/platform/analysis-impl/src/com/intellij/codeInspection/reference/RefManagerImpl.java b/platform/analysis-impl/src/com/intellij/codeInspection/reference/RefManagerImpl.java index 10d079ca5631..3188e593432a 100644 --- a/platform/analysis-impl/src/com/intellij/codeInspection/reference/RefManagerImpl.java +++ b/platform/analysis-impl/src/com/intellij/codeInspection/reference/RefManagerImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2009 JetBrains s.r.o. + * Copyright 2000-2015 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -73,11 +73,11 @@ public class RefManagerImpl extends RefManager { private Map myRefTable = new THashMap(); private Map myModules; - private final ProjectIterator myProjectIterator; + private final ProjectIterator myProjectIterator = new ProjectIterator(); private volatile boolean myDeclarationsFound; private final PsiManager myPsiManager; - private volatile boolean myIsInProcess = false; + private volatile boolean myIsInProcess; private final List myGraphAnnotators = new ArrayList(); private GlobalInspectionContext myContext; @@ -88,13 +88,11 @@ public class RefManagerImpl extends RefManager { private final ReentrantReadWriteLock myLock = new ReentrantReadWriteLock(); public RefManagerImpl(@NotNull Project project, @Nullable AnalysisScope scope, @NotNull GlobalInspectionContext context) { - myDeclarationsFound = false; myProject = project; myScope = scope; myContext = context; myPsiManager = PsiManager.getInstance(project); myRefProject = new RefProjectImpl(this); - myProjectIterator = new ProjectIterator(); for (InspectionExtensionsFactory factory : Extensions.getExtensions(InspectionExtensionsFactory.EP_NAME)) { final RefManagerExtension extension = factory.createRefManagerExtension(this); if (extension != null) {