METAGEN-85 Fixing typo and some raw type warnings
This commit is contained in:
parent
399bc3542f
commit
042368ed3e
|
@ -360,7 +360,7 @@ public class XmlMetaEntity implements MetaEntity {
|
||||||
context.logMessage(
|
context.logMessage(
|
||||||
Diagnostic.Kind.WARNING,
|
Diagnostic.Kind.WARNING,
|
||||||
"Unable to determine type for property " + propertyName + " of class " + getQualifiedName()
|
"Unable to determine type for property " + propertyName + " of class " + getQualifiedName()
|
||||||
+ " using assess type " + accessTypeInfo.getDefaultAccessType()
|
+ " using access type " + accessTypeInfo.getDefaultAccessType()
|
||||||
);
|
);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -54,7 +54,7 @@ public abstract class CompilationTest {
|
||||||
|
|
||||||
public static final String DIRECTORY_SEPARATOR = File.separator;
|
public static final String DIRECTORY_SEPARATOR = File.separator;
|
||||||
|
|
||||||
private List<Diagnostic> compilationDiagnostics;
|
private List<Diagnostic<?>> compilationDiagnostics;
|
||||||
|
|
||||||
static {
|
static {
|
||||||
String tmp = System.getProperty( SOURCE_BASE_DIR_PROPERTY );
|
String tmp = System.getProperty( SOURCE_BASE_DIR_PROPERTY );
|
||||||
|
@ -71,10 +71,10 @@ public abstract class CompilationTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
public CompilationTest() {
|
public CompilationTest() {
|
||||||
compilationDiagnostics = new ArrayList<Diagnostic>();
|
compilationDiagnostics = new ArrayList<Diagnostic<?>>();
|
||||||
}
|
}
|
||||||
|
|
||||||
public final List<Diagnostic> getCompilationDiagnostics() {
|
public final List<Diagnostic<?>> getCompilationDiagnostics() {
|
||||||
return compilationDiagnostics;
|
return compilationDiagnostics;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -149,7 +149,7 @@ public abstract class CompilationTest {
|
||||||
null, fileManager, diagnostics, options, null, compilationUnits
|
null, fileManager, diagnostics, options, null, compilationUnits
|
||||||
);
|
);
|
||||||
task.call();
|
task.call();
|
||||||
for ( Diagnostic diagnostic : diagnostics.getDiagnostics() ) {
|
for ( Diagnostic<?> diagnostic : diagnostics.getDiagnostics() ) {
|
||||||
log.debug( diagnostic.getMessage( null ) );
|
log.debug( diagnostic.getMessage( null ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -241,8 +241,8 @@ public class TestUtil {
|
||||||
return fcn.replace( PACKAGE_SEPARATOR, PATH_SEPARATOR );
|
return fcn.replace( PACKAGE_SEPARATOR, PATH_SEPARATOR );
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void assertNoCompilationError(List<Diagnostic> diagnostics) {
|
public static void assertNoCompilationError(List<Diagnostic<?>> diagnostics) {
|
||||||
for ( Diagnostic diagnostic : diagnostics ) {
|
for ( Diagnostic<?> diagnostic : diagnostics ) {
|
||||||
if ( diagnostic.getKind().equals( Diagnostic.Kind.ERROR ) ) {
|
if ( diagnostic.getKind().equals( Diagnostic.Kind.ERROR ) ) {
|
||||||
fail( "There was a compilation error. " + diagnostic.getMessage( null ) );
|
fail( "There was a compilation error. " + diagnostic.getMessage( null ) );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue