1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Cosmetics.

This commit is contained in:
Sergey Prigogin 2012-09-02 18:24:23 -07:00
parent 887ec0b8a1
commit 9e9c380798
4 changed files with 7 additions and 10 deletions

View file

@ -13,12 +13,11 @@ package org.eclipse.cdt.internal.core.index;
import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.CoreException;
public interface IIndexFragmentFileSet { public interface IIndexFragmentFileSet {
/** /**
* Returns whether the file-set contains the file of the local binding. * Returns whether the file-set contains the file of the local binding.
* @throws CoreException * @throws CoreException
*/ */
boolean containsFileOfLocalBinding(IIndexFragmentBinding fb) throws CoreException; boolean containsFileOfLocalBinding(IIndexFragmentBinding binding) throws CoreException;
/** /**
* Adds the fragment file to the file-set. * Adds the fragment file to the file-set.

View file

@ -12,7 +12,6 @@ package org.eclipse.cdt.internal.core.parser.scanner;
import java.util.List; import java.util.List;
/** /**
* Represents the include search path * Represents the include search path
*/ */
@ -20,7 +19,6 @@ public final class IncludeSearchPath {
private final boolean fInhibitUseOfCurrentFileDirectory; private final boolean fInhibitUseOfCurrentFileDirectory;
private final IncludeSearchPathElement[] fElements; private final IncludeSearchPathElement[] fElements;
IncludeSearchPath(List<IncludeSearchPathElement> elements, boolean inhibitUseOfCurrentFileDirectory) { IncludeSearchPath(List<IncludeSearchPathElement> elements, boolean inhibitUseOfCurrentFileDirectory) {
fElements= elements.toArray(new IncludeSearchPathElement[elements.size()]); fElements= elements.toArray(new IncludeSearchPathElement[elements.size()]);
fInhibitUseOfCurrentFileDirectory= inhibitUseOfCurrentFileDirectory; fInhibitUseOfCurrentFileDirectory= inhibitUseOfCurrentFileDirectory;

View file

@ -195,7 +195,7 @@ public class PDOMUpdateTask implements IPDOMIndexerTask {
return tu; return tu;
} }
private boolean canResolveUnresolvedInclude(IIndexFile file, IScannerInfo scannerInfo, private static boolean canResolveUnresolvedInclude(IIndexFile file, IScannerInfo scannerInfo,
ProjectIndexerIncludeResolutionHeuristics includeResolutionHeuristics) { ProjectIndexerIncludeResolutionHeuristics includeResolutionHeuristics) {
try { try {
String filePath = IndexLocationFactory.getAbsolutePath(file.getLocation()).toOSString(); String filePath = IndexLocationFactory.getAbsolutePath(file.getLocation()).toOSString();
@ -214,7 +214,7 @@ public class PDOMUpdateTask implements IPDOMIndexerTask {
return false; return false;
} }
private boolean canResolveInclude(IIndexInclude include, String currentFile, long timestamp, private static boolean canResolveInclude(IIndexInclude include, String currentFile, long timestamp,
IncludeSearchPath includeSearchPath, IncludeSearchPath includeSearchPath,
ProjectIndexerIncludeResolutionHeuristics includeResolutionHeuristics) throws CoreException { ProjectIndexerIncludeResolutionHeuristics includeResolutionHeuristics) throws CoreException {
String includeName = include.getFullName(); String includeName = include.getFullName();
@ -259,7 +259,7 @@ public class PDOMUpdateTask implements IPDOMIndexerTask {
/** /**
* Returns true if the file exists and is not older than the given timestamp. * Returns true if the file exists and is not older than the given timestamp.
*/ */
private boolean fileIsNotOlderThanTimestamp(String filename, long timestamp) { private static boolean fileIsNotOlderThanTimestamp(String filename, long timestamp) {
// We are subtracting 1 second from the timestamp to account for limited precision // We are subtracting 1 second from the timestamp to account for limited precision
// of File.lastModified() method and possible skew between clocks on a multi-CPU // of File.lastModified() method and possible skew between clocks on a multi-CPU
// system. This may produce false positives, but they are pretty harmless. // system. This may produce false positives, but they are pretty harmless.