mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-05 15:25:49 +02:00
bug 319512: Missing type arguments on managedbuilder.core
This commit is contained in:
parent
ab8cfb77ff
commit
1586b85da5
1 changed files with 6 additions and 6 deletions
|
@ -30,20 +30,20 @@ public class DefaultGnuWinScannerInfoCollector extends DefaultGCCScannerInfoColl
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.cdt.make.core.scannerconfig.IScannerInfoCollector#contributeToScannerConfig(java.lang.Object, java.util.Map)
|
* @see org.eclipse.cdt.make.core.scannerconfig.IScannerInfoCollector#contributeToScannerConfig(java.lang.Object, java.util.Map)
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("rawtypes")
|
@SuppressWarnings("unchecked")
|
||||||
@Override
|
@Override
|
||||||
public void contributeToScannerConfig(Object resource, Map scannerInfo) {
|
public void contributeToScannerConfig(Object resource, @SuppressWarnings("rawtypes") Map scannerInfo) {
|
||||||
// check the resource
|
// check the resource
|
||||||
// if (resource != null && resource instanceof IResource &&
|
// if (resource != null && resource instanceof IResource &&
|
||||||
// ((IResource) resource).getProject().equals(getProject())) {
|
// ((IResource) resource).getProject().equals(getProject())) {
|
||||||
List includes = (List) scannerInfo.get(ScannerInfoTypes.INCLUDE_PATHS);
|
List<String> includes = (List<String>) scannerInfo.get(ScannerInfoTypes.INCLUDE_PATHS);
|
||||||
// List symbols = (List) scannerInfo.get(ScannerInfoTypes.SYMBOL_DEFINITIONS);
|
// List symbols = (List) scannerInfo.get(ScannerInfoTypes.SYMBOL_DEFINITIONS);
|
||||||
|
|
||||||
// This method will be called by the parser each time there is a new value
|
// This method will be called by the parser each time there is a new value
|
||||||
List translatedIncludes = CygpathTranslator.translateIncludePaths(fProject, includes);
|
List<String> translatedIncludes = CygpathTranslator.translateIncludePaths(fProject, includes);
|
||||||
Iterator pathIter = translatedIncludes.listIterator();
|
Iterator<String> pathIter = translatedIncludes.listIterator();
|
||||||
while (pathIter.hasNext()) {
|
while (pathIter.hasNext()) {
|
||||||
String convertedPath = (String) pathIter.next();
|
String convertedPath = pathIter.next();
|
||||||
// On MinGW, there is no facility for converting paths
|
// On MinGW, there is no facility for converting paths
|
||||||
if (convertedPath.startsWith("/")) //$NON-NLS-1$
|
if (convertedPath.startsWith("/")) //$NON-NLS-1$
|
||||||
pathIter.remove();
|
pathIter.remove();
|
||||||
|
|
Loading…
Add table
Reference in a new issue