mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-31 12:55:40 +02:00
bug 319512: Missing type arguments compilation warnings
This commit is contained in:
parent
c2a0602718
commit
0699858e87
3 changed files with 10 additions and 8 deletions
|
@ -12,6 +12,7 @@
|
||||||
package org.eclipse.cdt.make.core.tests;
|
package org.eclipse.cdt.make.core.tests;
|
||||||
|
|
||||||
import junit.framework.Test;
|
import junit.framework.Test;
|
||||||
|
import junit.framework.TestCase;
|
||||||
import junit.framework.TestSuite;
|
import junit.framework.TestSuite;
|
||||||
|
|
||||||
import org.eclipse.cdt.make.builder.tests.StandardBuildTests;
|
import org.eclipse.cdt.make.builder.tests.StandardBuildTests;
|
||||||
|
@ -22,11 +23,11 @@ public class AutomatedIntegrationSuite extends TestSuite {
|
||||||
public AutomatedIntegrationSuite() {
|
public AutomatedIntegrationSuite() {
|
||||||
}
|
}
|
||||||
|
|
||||||
public AutomatedIntegrationSuite(Class theClass, String name) {
|
public AutomatedIntegrationSuite(Class<? extends TestCase> theClass, String name) {
|
||||||
super(theClass, name);
|
super(theClass, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
public AutomatedIntegrationSuite(Class theClass) {
|
public AutomatedIntegrationSuite(Class<? extends TestCase> theClass) {
|
||||||
super(theClass);
|
super(theClass);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -109,7 +109,7 @@ public class SCProfileInstance {
|
||||||
public IScannerInfoCollector createScannerInfoCollector() {
|
public IScannerInfoCollector createScannerInfoCollector() {
|
||||||
ScannerInfoCollector collector = profile.getScannerInfoCollectorElement();
|
ScannerInfoCollector collector = profile.getScannerInfoCollectorElement();
|
||||||
if (collector != null) {
|
if (collector != null) {
|
||||||
return (IScannerInfoCollector) collector.createScannerInfoCollector();
|
return collector.createScannerInfoCollector();
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,6 +16,7 @@ import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import org.eclipse.cdt.make.core.MakeCorePlugin;
|
import org.eclipse.cdt.make.core.MakeCorePlugin;
|
||||||
|
import org.eclipse.cdt.make.core.scannerconfig.IScannerInfoCollector;
|
||||||
import org.eclipse.cdt.make.core.scannerconfig.InfoContext;
|
import org.eclipse.cdt.make.core.scannerconfig.InfoContext;
|
||||||
import org.eclipse.cdt.make.core.scannerconfig.ScannerConfigScope;
|
import org.eclipse.cdt.make.core.scannerconfig.ScannerConfigScope;
|
||||||
import org.eclipse.core.runtime.CoreException;
|
import org.eclipse.core.runtime.CoreException;
|
||||||
|
@ -42,9 +43,9 @@ public class ScannerConfigProfile {
|
||||||
public ScannerInfoCollector(IConfigurationElement configElem) {
|
public ScannerInfoCollector(IConfigurationElement configElem) {
|
||||||
this.configElem = configElem;
|
this.configElem = configElem;
|
||||||
}
|
}
|
||||||
public Object createScannerInfoCollector() {
|
public IScannerInfoCollector createScannerInfoCollector() {
|
||||||
try {
|
try {
|
||||||
return configElem.createExecutableExtension("class"); //$NON-NLS-1$
|
return (IScannerInfoCollector) configElem.createExecutableExtension("class"); //$NON-NLS-1$
|
||||||
} catch (CoreException e) {
|
} catch (CoreException e) {
|
||||||
MakeCorePlugin.log(e);
|
MakeCorePlugin.log(e);
|
||||||
return null;
|
return null;
|
||||||
|
@ -319,9 +320,9 @@ public class ScannerConfigProfile {
|
||||||
if(supportsContext == null){
|
if(supportsContext == null){
|
||||||
ScannerInfoCollector cr = getScannerInfoCollectorElement();
|
ScannerInfoCollector cr = getScannerInfoCollectorElement();
|
||||||
if(cr != null){
|
if(cr != null){
|
||||||
Object o = cr.createScannerInfoCollector();
|
IScannerInfoCollector collector = cr.createScannerInfoCollector();
|
||||||
if(o != null){
|
if(collector != null){
|
||||||
Class clazz = o.getClass();
|
Class<? extends IScannerInfoCollector> clazz = collector.getClass();
|
||||||
try {
|
try {
|
||||||
clazz.getMethod("setInfoContext", new Class[] {InfoContext.class}); //$NON-NLS-1$
|
clazz.getMethod("setInfoContext", new Class[] {InfoContext.class}); //$NON-NLS-1$
|
||||||
supportsContext = Boolean.TRUE;
|
supportsContext = Boolean.TRUE;
|
||||||
|
|
Loading…
Add table
Reference in a new issue