commit | 6e2921029615ee6713f544186e946cdf048513af | [log] [tgz] |
---|---|---|
author | nitind <nitind> | Thu Nov 10 21:43:00 2011 +0000 |
committer | nitind <nitind> | Thu Nov 10 21:43:00 2011 +0000 |
tree | 7595332c32efad26af98828e6e563ae8a552660a | |
parent | 345de595a9e2e9e115bb4369fc6b79b6c2da5ecf [diff] |
[329094] Cleanup unread fields/variables that are only incremented/decremented
diff --git a/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/internal/search/OccurrencesContentProvider.java b/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/internal/search/OccurrencesContentProvider.java index 274c9b6..7a8f26a 100644 --- a/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/internal/search/OccurrencesContentProvider.java +++ b/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/internal/search/OccurrencesContentProvider.java
@@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2001, 2009 IBM Corporation and others. + * Copyright (c) 2001, 2010 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -42,18 +42,14 @@ public void elementsChanged(Object[] updatedElements) { //TODO: copied from JavaSearchTableContentProvider - int addCount = 0; - int removeCount = 0; for (int i = 0; i < updatedElements.length; i++) { if (this.fResult.getMatchCount(updatedElements[i]) > 0) { if (this.fTableViewer.testFindItem(updatedElements[i]) != null) this.fTableViewer.refresh(updatedElements[i]); else this.fTableViewer.add(updatedElements[i]); - addCount++; } else { this.fTableViewer.remove(updatedElements[i]); - removeCount++; } } }
diff --git a/bundles/org.eclipse.wst.xml.core/src-validation/org/eclipse/wst/xml/core/internal/validation/core/LazyURLInputStream.java b/bundles/org.eclipse.wst.xml.core/src-validation/org/eclipse/wst/xml/core/internal/validation/core/LazyURLInputStream.java index 834cb0b..2498b50 100644 --- a/bundles/org.eclipse.wst.xml.core/src-validation/org/eclipse/wst/xml/core/internal/validation/core/LazyURLInputStream.java +++ b/bundles/org.eclipse.wst.xml.core/src-validation/org/eclipse/wst/xml/core/internal/validation/core/LazyURLInputStream.java
@@ -22,7 +22,7 @@ */ public class LazyURLInputStream extends InputStream { - private static int debugTotalOpenStreamCount = 0; + static int debugTotalOpenStreamCount = 0; protected InputStream inner; protected String url; protected boolean error;