Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordavid_williams2005-11-19 23:07:34 +0000
committerdavid_williams2005-11-19 23:07:34 +0000
commitc040dc54a41a25b2d69976e2890c668ea891d9fd (patch)
tree50e3b22999515718a757601f10bcd9a444452ef8 /bundles/org.eclipse.wst.xml.ui/src-catalog
parent62c016e4c190c0cd9d5f5a185a98674da3f16f71 (diff)
downloadwebtools.sourceediting-c040dc54a41a25b2d69976e2890c668ea891d9fd.tar.gz
webtools.sourceediting-c040dc54a41a25b2d69976e2890c668ea891d9fd.tar.xz
webtools.sourceediting-c040dc54a41a25b2d69976e2890c668ea891d9fd.zip
[117204] Unnecessary class casts can impact performance
Diffstat (limited to 'bundles/org.eclipse.wst.xml.ui/src-catalog')
-rw-r--r--bundles/org.eclipse.wst.xml.ui/src-catalog/org/eclipse/wst/xml/ui/internal/catalog/XMLCatalogTreeViewer.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.wst.xml.ui/src-catalog/org/eclipse/wst/xml/ui/internal/catalog/XMLCatalogTreeViewer.java b/bundles/org.eclipse.wst.xml.ui/src-catalog/org/eclipse/wst/xml/ui/internal/catalog/XMLCatalogTreeViewer.java
index 10321af61d..ff39ae2a35 100644
--- a/bundles/org.eclipse.wst.xml.ui/src-catalog/org/eclipse/wst/xml/ui/internal/catalog/XMLCatalogTreeViewer.java
+++ b/bundles/org.eclipse.wst.xml.ui/src-catalog/org/eclipse/wst/xml/ui/internal/catalog/XMLCatalogTreeViewer.java
@@ -177,7 +177,7 @@ public class XMLCatalogTreeViewer extends TreeViewer {
List nextCatalogsList = Arrays.asList(nextCatalogs);
result.addAll(nextCatalogsList);
- return (ICatalogElement[]) result.toArray(new ICatalogElement[result.size()]);
+ return result.toArray(new ICatalogElement[result.size()]);
}
public Object getParent(Object element) {

Back to the top