From e604324cec0ba9a783e39b006e6c524286925e41 Mon Sep 17 00:00:00 2001
From: Dani Megert
Date: Mon, 18 Oct 2010 11:03:50 +0000
Subject: Fixed bug 226532:
org.eclipse.core.filebuffers.FileBuffers.getWorkspaceFileAtLocation(IPath)
code doesn't do what javadoc says it does
---
.../src/org/eclipse/core/filebuffers/FileBuffers.java | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
(limited to 'org.eclipse.core.filebuffers')
diff --git a/org.eclipse.core.filebuffers/src/org/eclipse/core/filebuffers/FileBuffers.java b/org.eclipse.core.filebuffers/src/org/eclipse/core/filebuffers/FileBuffers.java
index dfbfbe474..0a3c914e7 100644
--- a/org.eclipse.core.filebuffers/src/org/eclipse/core/filebuffers/FileBuffers.java
+++ b/org.eclipse.core.filebuffers/src/org/eclipse/core/filebuffers/FileBuffers.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2008 IBM Corporation and others.
+ * Copyright (c) 2000, 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
@@ -97,23 +97,23 @@ public final class FileBuffers {
}
/**
- * Returns the workspace file at the given location or null
if
- * the location is not a valid location in the workspace.
- *
+ * Returns the workspace file at the given location if such a file exists.
+ *
* @param location the location
- * @return the workspace file at the location or null
+ * @return the workspace file at the location or null
if no such file exists or if
+ * the location is not a valid location
*/
public static IFile getWorkspaceFileAtLocation(IPath location) {
return getWorkspaceFileAtLocation(location, false);
}
/**
- * Returns the workspace file at the given location or null
if
- * the location is not a valid location in the workspace.
- *
+ * Returns the workspace file at the given location if such a file exists.
+ *
* @param location the location
* @param isNormalized true
if the given location is already normalized
- * @return the workspace file at the location or null
+ * @return the workspace file at the location or null
if no such file exists or if
+ * the location is not a valid location
* @since 3.3
*/
public static IFile getWorkspaceFileAtLocation(IPath location, boolean isNormalized) {
--
cgit v1.2.1