Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 362070
Collapse All | Expand All

(-)miners/org/eclipse/rse/internal/dstore/universal/miners/filesystem/UniversalSearchHandler.java (-2 / +5 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2006, 2010 IBM Corporation and others.
2
 * Copyright (c) 2006, 2011 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 23-28 Link Here
23
 * David McKnight  (IBM)  - [255390] checking for memory
23
 * David McKnight  (IBM)  - [255390] checking for memory
24
 * David McKnight  (IBM)  - [261644] [dstore] remote search improvements
24
 * David McKnight  (IBM)  - [261644] [dstore] remote search improvements
25
 * David McKnight  (IBM]  - [330989] [dstore] OutOfMemoryError occurs when searching for a text in a large remote file
25
 * David McKnight  (IBM]  - [330989] [dstore] OutOfMemoryError occurs when searching for a text in a large remote file
26
 * Noriaki Takatsu  (IBM) - [362025] [dstore] Search for text hung in encountering a device definition
26
 ********************************************************************************/
27
 ********************************************************************************/
27
28
28
package org.eclipse.rse.internal.dstore.universal.miners.filesystem;
29
package org.eclipse.rse.internal.dstore.universal.miners.filesystem;
Lines 184-190 Link Here
184
	protected void internalSearch(File theFile, int depth) throws SystemMessageException {
185
	protected void internalSearch(File theFile, int depth) throws SystemMessageException {
185
		
186
		
186
		if (!hasSearched(theFile)) {
187
		if (!hasSearched(theFile)) {
187
			
188
			if (!theFile.isDirectory() && !theFile.isFile()) {
189
				return;
190
			}
188
			try {
191
			try {
189
				_alreadySearched.add(theFile.getCanonicalPath());
192
				_alreadySearched.add(theFile.getCanonicalPath());
190
			}
193
			}

Return to bug 362070