Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Schorn2008-07-15 15:00:31 +0000
committerMarkus Schorn2008-07-15 15:00:31 +0000
commit93fe4bbc48f6d655084852ae59e167d85bc53070 (patch)
tree9f6767e23730d296423f183ad8505b704473ef69 /core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/TeamPDOMExportOperation.java
parent30ddbb87084f3c4d8c7e273d61ddef1b9d91868b (diff)
downloadorg.eclipse.cdt-93fe4bbc48f6d655084852ae59e167d85bc53070.tar.gz
org.eclipse.cdt-93fe4bbc48f6d655084852ae59e167d85bc53070.tar.xz
org.eclipse.cdt-93fe4bbc48f6d655084852ae59e167d85bc53070.zip
Fix warnings.
Diffstat (limited to 'core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/TeamPDOMExportOperation.java')
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/TeamPDOMExportOperation.java13
1 files changed, 6 insertions, 7 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/TeamPDOMExportOperation.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/TeamPDOMExportOperation.java
index 79a6a692e9a..a22a1cfc0f9 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/TeamPDOMExportOperation.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/TeamPDOMExportOperation.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007 Wind River Systems, Inc. and others.
+ * Copyright (c) 2007, 2008 Wind River Systems, Inc. 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
@@ -8,7 +8,6 @@
* Contributors:
* Markus Schorn - initial API and implementation
*******************************************************************************/
-
package org.eclipse.cdt.internal.core.pdom;
import java.io.File;
@@ -144,7 +143,7 @@ public class TeamPDOMExportOperation implements IWorkspaceRunnable {
}
private void createChecksums(ICProject cproject, PDOM pdom, File target, IProgressMonitor monitor) throws CoreException {
- HashSet fullPaths= new HashSet();
+ HashSet<String> fullPaths= new HashSet<String>();
try {
pdom.acquireReadLock();
} catch (InterruptedException e) {
@@ -165,15 +164,15 @@ public class TeamPDOMExportOperation implements IWorkspaceRunnable {
int i=0;
IWorkspaceRoot root= ResourcesPlugin.getWorkspace().getRoot();
IFile[] files= new IFile[fullPaths.size()];
- for (Iterator iterator = fullPaths.iterator(); iterator.hasNext();) {
- String fullPath= (String) iterator.next();
+ for (Iterator<String> iterator = fullPaths.iterator(); iterator.hasNext();) {
+ String fullPath= iterator.next();
files[i++]= root.getFile(new Path(fullPath));
}
- Map map= Checksums.createChecksumMap(files, fMessageDigest, monitor);
+ Map<String, Object> map= Checksums.createChecksumMap(files, fMessageDigest, monitor);
writeChecksums(map, target);
}
- private void writeChecksums(Map map, File target) throws CoreException {
+ private void writeChecksums(Map<?, ?> map, File target) throws CoreException {
ObjectOutputStream out= null;
try {
out= new ObjectOutputStream(new FileOutputStream(target));

Back to the top