Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornitind2011-11-10 21:43:00 +0000
committernitind2011-11-10 21:43:00 +0000
commit6e2921029615ee6713f544186e946cdf048513af (patch)
tree7595332c32efad26af98828e6e563ae8a552660a
parent345de595a9e2e9e115bb4369fc6b79b6c2da5ecf (diff)
downloadwebtools.sourceediting-R3_2_maintenance.tar.gz
webtools.sourceediting-R3_2_maintenance.tar.xz
webtools.sourceediting-R3_2_maintenance.zip
[329094] Cleanup unread fields/variables that are only incremented/decrementedR3_2_maintenance
-rw-r--r--bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/internal/search/OccurrencesContentProvider.java6
-rw-r--r--bundles/org.eclipse.wst.xml.core/src-validation/org/eclipse/wst/xml/core/internal/validation/core/LazyURLInputStream.java2
2 files changed, 2 insertions, 6 deletions
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 274c9b6710..7a8f26a607 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 class OccurrencesContentProvider implements IStructuredContentProvider {
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 834cb0b23a..2498b500c2 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 @@ import java.net.URL;
*/
public class LazyURLInputStream extends InputStream
{
- private static int debugTotalOpenStreamCount = 0;
+ static int debugTotalOpenStreamCount = 0;
protected InputStream inner;
protected String url;
protected boolean error;

Back to the top