/*
- * Copyright 2003-2007 Dave Griffith, Bas Leijdekkers
+ * Copyright 2003-2010 Dave Griffith, Bas Leijdekkers
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
public class SingletonInspection extends BaseInspection {
+ @Override
@NotNull
public String getDisplayName() {
return InspectionGadgetsBundle.message("singleton.display.name");
}
+ @Override
@NotNull
protected String buildErrorString(Object... infos) {
return InspectionGadgetsBundle.message("singleton.problem.descriptor");
}
+ @Override
+ public boolean runForWholeFile() {
+ return true;
+ }
+
+ @Override
public BaseInspectionVisitor buildVisitor() {
return new SingletonVisitor();
}