Make inner class ResourceCounterVisitor static in CounterResourceAction
This avoids the pointer to the outer class and save a tiny bit of
memory. Done via JDT cleanup actions
Change-Id: I517ea3f368c1b6efcaaa307a365d4670316aa43d
Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
diff --git a/bundles/org.eclipse.core.tools.resources/src/org/eclipse/core/tools/resources/CountResourcesAction.java b/bundles/org.eclipse.core.tools.resources/src/org/eclipse/core/tools/resources/CountResourcesAction.java
index 183d959..08906b8 100644
--- a/bundles/org.eclipse.core.tools.resources/src/org/eclipse/core/tools/resources/CountResourcesAction.java
+++ b/bundles/org.eclipse.core.tools.resources/src/org/eclipse/core/tools/resources/CountResourcesAction.java
@@ -155,7 +155,7 @@
* A helper class that implements <code>IResourceVisitor</code>. Visits each
* resource in a resource hierarchy, counting them.
*/
- class ResourceCounterVisitor implements IResourceVisitor {
+ static class ResourceCounterVisitor implements IResourceVisitor {
protected int count;
/**