Compiler log for org.eclipse.e4.xwt_0.9.1.v20091009-1415 : @dot.xml

TOTAL : ERRORS: 0, WARNINGS: 61

errors others warnings forbidden warnings discouraged warnings

ERRORS

top others warnings forbidden warnings discouraged warnings

OTHER WARNINGS

top errors forbidden warnings discouraged warnings

/src/org/eclipse/e4/xwt/XWT.java : 1 warning :

OTHER WARNINGS
1. WARNING in /src/org/eclipse/e4/xwt/XWT.java
 (at line 244)
return loadWithOptions(stream, url, Collections.EMPTY_MAP);
Type safety: The expression of type Map needs unchecked conversion to conform to Map<String,Object>

/src/org/eclipse/e4/xwt/XWTLoader.java : 6 warnings :

OTHER WARNINGS
1. WARNING in /src/org/eclipse/e4/xwt/XWTLoader.java
 (at line 314)
return loadWithOptions(file, Collections.EMPTY_MAP);
Type safety: The expression of type Map needs unchecked conversion to conform to Map<String,Object>
2. WARNING in /src/org/eclipse/e4/xwt/XWTLoader.java
 (at line 369)
} else if (styles instanceof Collection) {
Collection is a raw type. References to generic type Collection<E> should be parameterized
3. WARNING in /src/org/eclipse/e4/xwt/XWTLoader.java
 (at line 370)
for (IStyle style : (Collection<IStyle>) styles) {
Type safety: Unchecked cast from Object to Collection<IStyle>
4. WARNING in /src/org/eclipse/e4/xwt/XWTLoader.java
 (at line 421)
open(type.getResource(type.getSimpleName() + IConstants.XWT_EXTENSION_SUFFIX), Collections.EMPTY_MAP);
Type safety: The expression of type Map needs unchecked conversion to conform to Map<String,Object>
5. WARNING in /src/org/eclipse/e4/xwt/XWTLoader.java
 (at line 430)
open(url, Collections.EMPTY_MAP);
Type safety: The expression of type Map needs unchecked conversion to conform to Map<String,Object>
6. WARNING in /src/org/eclipse/e4/xwt/XWTLoader.java
 (at line 541)
return loadWithOptions(stream, url, Collections.EMPTY_MAP);
Type safety: The expression of type Map needs unchecked conversion to conform to Map<String,Object>

/src/org/eclipse/e4/xwt/animation/TimeSpan.java : 4 warnings :

OTHER WARNINGS
1. WARNING in /src/org/eclipse/e4/xwt/animation/TimeSpan.java
 (at line 15)
public class TimeSpan implements Serializable, Comparable {
The serializable class TimeSpan does not declare a static final serialVersionUID field of type long
2. WARNING in /src/org/eclipse/e4/xwt/animation/TimeSpan.java
 (at line 15)
public class TimeSpan implements Serializable, Comparable {
Comparable is a raw type. References to generic type Comparable<T> should be parameterized
3. WARNING in /src/org/eclipse/e4/xwt/animation/TimeSpan.java
 (at line 23)
private static final double SecondsPerTick = 1E-07;
The field TimeSpan.SecondsPerTick is never read locally
4. WARNING in /src/org/eclipse/e4/xwt/animation/TimeSpan.java
 (at line 43)
private static final int MillisPerHour = 3600000;
The field TimeSpan.MillisPerHour is never read locally

/src/org/eclipse/e4/xwt/converters/StringToEnum.java : 3 warnings :

OTHER WARNINGS
1. WARNING in /src/org/eclipse/e4/xwt/converters/StringToEnum.java
 (at line 32)
return Enum.valueOf((Class) getToType(), (String)fromObject);
Type safety: Unchecked invocation valueOf(Class, String) of the generic method valueOf(Class<T>, String) of type Enum
2. WARNING in /src/org/eclipse/e4/xwt/converters/StringToEnum.java
 (at line 32)
return Enum.valueOf((Class) getToType(), (String)fromObject);
Type safety: The expression of type Class needs unchecked conversion to conform to Class<Enum<Enum<T>>>
3. WARNING in /src/org/eclipse/e4/xwt/converters/StringToEnum.java
 (at line 32)
return Enum.valueOf((Class) getToType(), (String)fromObject);
Class is a raw type. References to generic type Class<T> should be parameterized

/src/org/eclipse/e4/xwt/core/IDynamicBinding.java : 1 warning :

OTHER WARNINGS
1. WARNING in /src/org/eclipse/e4/xwt/core/IDynamicBinding.java
 (at line 13)
import org.eclipse.core.databinding.observable.value.IObservableValue;
The import org.eclipse.core.databinding.observable.value.IObservableValue is never used

/src/org/eclipse/e4/xwt/core/Style.java : 2 warnings :

OTHER WARNINGS
1. WARNING in /src/org/eclipse/e4/xwt/core/Style.java
 (at line 33)
return Collections.EMPTY_LIST;
Type safety: The expression of type List needs unchecked conversion to conform to Collection<TriggerBase>
2. WARNING in /src/org/eclipse/e4/xwt/core/Style.java
 (at line 52)
return Collections.EMPTY_LIST;
Type safety: The expression of type List needs unchecked conversion to conform to Collection<Setter>

/src/org/eclipse/e4/xwt/databinding/BeanObservableValue.java : 7 warnings :

OTHER WARNINGS
1. WARNING in /src/org/eclipse/e4/xwt/databinding/BeanObservableValue.java
 (at line 62)
return readMethod.invoke(target, null);
The argument of type null should explicitly be cast to Object[] for the invocation of the varargs method invoke(Object, Object...) from type Method. It could alternatively be cast to Object for a varargs invocation
2. WARNING in /src/org/eclipse/e4/xwt/databinding/BeanObservableValue.java
 (at line 149)
Class targetType = parameterTypes[0];
Class is a raw type. References to generic type Class<T> should be parameterized
3. WARNING in /src/org/eclipse/e4/xwt/databinding/BeanObservableValue.java
 (at line 153)
writeMethod.invoke(target, new Object[] { Enum.valueOf(targetType, (String) value) });
Type safety: Unchecked invocation valueOf(Class, String) of the generic method valueOf(Class<T>, String) of type Enum
4. WARNING in /src/org/eclipse/e4/xwt/databinding/BeanObservableValue.java
 (at line 153)
writeMethod.invoke(target, new Object[] { Enum.valueOf(targetType, (String) value) });
Type safety: The expression of type Class needs unchecked conversion to conform to Class<Enum<Enum<T>>>
5. WARNING in /src/org/eclipse/e4/xwt/databinding/BeanObservableValue.java
 (at line 173)
Class fieldType = field.getType();
Class is a raw type. References to generic type Class<T> should be parameterized
6. WARNING in /src/org/eclipse/e4/xwt/databinding/BeanObservableValue.java
 (at line 176)
field.set(target, Enum.valueOf(fieldType, (String) value));
Type safety: Unchecked invocation valueOf(Class, String) of the generic method valueOf(Class<T>, String) of type Enum
7. WARNING in /src/org/eclipse/e4/xwt/databinding/BeanObservableValue.java
 (at line 176)
field.set(target, Enum.valueOf(fieldType, (String) value));
Type safety: The expression of type Class needs unchecked conversion to conform to Class<Enum<Enum<T>>>

/src/org/eclipse/e4/xwt/databinding/XWTObservableValue.java : 3 warnings :

OTHER WARNINGS
1. WARNING in /src/org/eclipse/e4/xwt/databinding/XWTObservableValue.java
 (at line 99)
protected Object convert(Class type, Object value) {
Class is a raw type. References to generic type Class<T> should be parameterized
2. WARNING in /src/org/eclipse/e4/xwt/databinding/XWTObservableValue.java
 (at line 102)
return Enum.valueOf(type, (String) value);
Type safety: Unchecked invocation valueOf(Class, String) of the generic method valueOf(Class<T>, String) of type Enum
3. WARNING in /src/org/eclipse/e4/xwt/databinding/XWTObservableValue.java
 (at line 102)
return Enum.valueOf(type, (String) value);
Type safety: The expression of type Class needs unchecked conversion to conform to Class<Enum<Enum<T>>>

/src/org/eclipse/e4/xwt/internal/core/Core.java : 4 warnings :

OTHER WARNINGS
1. WARNING in /src/org/eclipse/e4/xwt/internal/core/Core.java
 (at line 30)
import org.eclipse.e4.xwt.core.IUserDataConstants;
The import org.eclipse.e4.xwt.core.IUserDataConstants is never used
2. WARNING in /src/org/eclipse/e4/xwt/internal/core/Core.java
 (at line 73)
public void printInfo(String message, Tracking tracking, Set trackType) {
Set is a raw type. References to generic type Set<E> should be parameterized
3. WARNING in /src/org/eclipse/e4/xwt/internal/core/Core.java
 (at line 110)
if (object instanceof Class) {
Class is a raw type. References to generic type Class<T> should be parameterized
4. WARNING in /src/org/eclipse/e4/xwt/internal/core/Core.java
 (at line 117)
if (object instanceof Class) {
Class is a raw type. References to generic type Class<T> should be parameterized

/src/org/eclipse/e4/xwt/internal/core/MetaclassManager.java : 1 warning :

OTHER WARNINGS
1. WARNING in /src/org/eclipse/e4/xwt/internal/core/MetaclassManager.java
 (at line 116)
if (object instanceof Class) {
Class is a raw type. References to generic type Class<T> should be parameterized

/src/org/eclipse/e4/xwt/internal/core/NameScope.java : 1 warning :

OTHER WARNINGS
1. WARNING in /src/org/eclipse/e4/xwt/internal/core/NameScope.java
 (at line 15)
public class NameScope extends HashMap<String, Object> {
The serializable class NameScope does not declare a static final serialVersionUID field of type long

/src/org/eclipse/e4/xwt/internal/utils/ClassLoaderUtil.java : 1 warning :

OTHER WARNINGS
1. WARNING in /src/org/eclipse/e4/xwt/internal/utils/ClassLoaderUtil.java
 (at line 132)
Class type = NamespaceHelper.loadCLRClass(loadingContext, className, namespace);
Class is a raw type. References to generic type Class<T> should be parameterized

/src/org/eclipse/e4/xwt/internal/xml/DocumentObject.java : 1 warning :

OTHER WARNINGS
1. WARNING in /src/org/eclipse/e4/xwt/internal/xml/DocumentObject.java
 (at line 63)
DocumentObject oParent = (DocumentObject) (child).getParent();
Null pointer access: The variable child can only be null at this location

/src/org/eclipse/e4/xwt/internal/xml/DocumentRoot.java : 3 warnings :

OTHER WARNINGS
1. WARNING in /src/org/eclipse/e4/xwt/internal/xml/DocumentRoot.java
 (at line 150)
if (path.indexOf(':') < 0) {
Null pointer access: The variable path can only be null at this location
2. WARNING in /src/org/eclipse/e4/xwt/internal/xml/DocumentRoot.java
 (at line 381)
stream.read(cachedBytes);
Null pointer access: The variable stream can only be null at this location
3. WARNING in /src/org/eclipse/e4/xwt/internal/xml/DocumentRoot.java
 (at line 419)
stream.read(cachedBytes);
Null pointer access: The variable stream can only be null at this location

/src/org/eclipse/e4/xwt/internal/xml/Element.java : 5 warnings :

OTHER WARNINGS
1. WARNING in /src/org/eclipse/e4/xwt/internal/xml/Element.java
 (at line 20)
import org.eclipse.e4.xwt.core.IUserDataConstants;
The import org.eclipse.e4.xwt.core.IUserDataConstants is never used
2. WARNING in /src/org/eclipse/e4/xwt/internal/xml/Element.java
 (at line 80)
this.originalAttributes = Collections.EMPTY_MAP;
Type safety: The expression of type Map needs unchecked conversion to conform to Map<String,Attribute>
3. WARNING in /src/org/eclipse/e4/xwt/internal/xml/Element.java
 (at line 81)
this.externalAttributes = Collections.EMPTY_MAP;
Type safety: The expression of type Map needs unchecked conversion to conform to Map<String,Map<String,Attribute>>
4. WARNING in /src/org/eclipse/e4/xwt/internal/xml/Element.java
 (at line 166)
originalAttributes = Collections.EMPTY_MAP;
Type safety: The expression of type Map needs unchecked conversion to conform to Map<String,Attribute>
5. WARNING in /src/org/eclipse/e4/xwt/internal/xml/Element.java
 (at line 176)
element.originalAttributes = Collections.EMPTY_MAP;
Type safety: The expression of type Map needs unchecked conversion to conform to Map<String,Attribute>

/src/org/eclipse/e4/xwt/internal/xml/ElementHandler.java : 5 warnings :

OTHER WARNINGS
1. WARNING in /src/org/eclipse/e4/xwt/internal/xml/ElementHandler.java
 (at line 151)
element.setId(elementManager.generateID(name));
The static method generateID(String) from the type ElementManager should be accessed in a static way
2. WARNING in /src/org/eclipse/e4/xwt/internal/xml/ElementHandler.java
 (at line 197)
Attribute attribute = new Attribute(normalizeAttrNamespace(current.getNamespace()), attributeName, elementManager.generateID(current.getName()));
The static method generateID(String) from the type ElementManager should be accessed in a static way
3. WARNING in /src/org/eclipse/e4/xwt/internal/xml/ElementHandler.java
 (at line 240)
Attribute attribute = new Attribute(normalizeAttrNamespace(current.getNamespace()), attributeName, elementManager.generateID(current.getName()));
The static method generateID(String) from the type ElementManager should be accessed in a static way
4. WARNING in /src/org/eclipse/e4/xwt/internal/xml/ElementHandler.java
 (at line 540)
childElement.setId(elementManager.generateID(element.getName()));
The static method generateID(String) from the type ElementManager should be accessed in a static way
5. WARNING in /src/org/eclipse/e4/xwt/internal/xml/ElementHandler.java
 (at line 727)
private String getDefaultAttribute(Attributes attrs, String name) {
The method getDefaultAttribute(Attributes, String) from the type ElementHandler is never used locally

/src/org/eclipse/e4/xwt/internal/xml/ElementManager.java : 2 warnings :

OTHER WARNINGS
1. WARNING in /src/org/eclipse/e4/xwt/internal/xml/ElementManager.java
 (at line 295)
assert elements.containsKey(element.getId()) : "Element already exists in registry: " + element.getId();
Null pointer access: The variable element can only be null at this location
2. WARNING in /src/org/eclipse/e4/xwt/internal/xml/ElementManager.java
 (at line 311)
assert !elements.containsKey(element.getId()) : "Element not found in registry: " + element.getId();
Null pointer access: The variable element can only be null at this location

/src/org/eclipse/e4/xwt/javabean/ResourceLoader.java : 6 warnings :

OTHER WARNINGS
1. WARNING in /src/org/eclipse/e4/xwt/javabean/ResourceLoader.java
 (at line 99)
static Map<String, Object> EMPTY_MAP = Collections.EMPTY_MAP;
Type safety: The expression of type Map needs unchecked conversion to conform to Map<String,Object>
2. WARNING in /src/org/eclipse/e4/xwt/javabean/ResourceLoader.java
 (at line 117)
protected Collection<IStyle> styles = Collections.EMPTY_LIST;
Type safety: The expression of type List needs unchecked conversion to conform to Collection<IStyle>
3. WARNING in /src/org/eclipse/e4/xwt/javabean/ResourceLoader.java
 (at line 274)
loadData.setStyles((Collection<IStyle>) styles);
Type safety: Unchecked cast from Object to Collection<IStyle>
4. WARNING in /src/org/eclipse/e4/xwt/javabean/ResourceLoader.java
 (at line 480)
Object child = doCreate(targetObject, (Element) doc, null, Collections.EMPTY_MAP);
Type safety: The expression of type Map needs unchecked conversion to conform to Map<String,Object>
5. WARNING in /src/org/eclipse/e4/xwt/javabean/ResourceLoader.java
 (at line 489)
Object editor = doCreate(parent, (Element) doc, null, Collections.EMPTY_MAP);
Type safety: The expression of type Map needs unchecked conversion to conform to Map<String,Object>
6. WARNING in /src/org/eclipse/e4/xwt/javabean/ResourceLoader.java
 (at line 506)
doCreate(targetObject, (Element) doc, null, Collections.EMPTY_MAP);
Type safety: The expression of type Map needs unchecked conversion to conform to Map<String,Object>

/src/org/eclipse/e4/xwt/javabean/metadata/Binding.java : 1 warning :

OTHER WARNINGS
1. WARNING in /src/org/eclipse/e4/xwt/javabean/metadata/Binding.java
 (at line 13)
import org.eclipse.core.databinding.observable.value.IObservableValue;
The import org.eclipse.core.databinding.observable.value.IObservableValue is never used

/src/org/eclipse/e4/xwt/javabean/metadata/properties/AbstractProperty.java : 1 warning :

OTHER WARNINGS
1. WARNING in /src/org/eclipse/e4/xwt/javabean/metadata/properties/AbstractProperty.java
 (at line 22)
protected Collection<ISetPostAction> setPostActions = Collections.EMPTY_LIST;
Type safety: The expression of type List needs unchecked conversion to conform to Collection<ISetPostAction>

/src/org/eclipse/e4/xwt/javabean/metadata/properties/DynamicProperty.java : 1 warning :

OTHER WARNINGS
1. WARNING in /src/org/eclipse/e4/xwt/javabean/metadata/properties/DynamicProperty.java
 (at line 44)
return getter.invoke(target, null);
The argument of type null should explicitly be cast to Object[] for the invocation of the varargs method invoke(Object, Object...) from type Method. It could alternatively be cast to Object for a varargs invocation

/src/org/eclipse/e4/xwt/javabean/metadata/properties/TableItemEditorProperty.java : 1 warning :

OTHER WARNINGS
1. WARNING in /src/org/eclipse/e4/xwt/javabean/metadata/properties/TableItemEditorProperty.java
 (at line 37)
Collection<TableEditor> tableEditors = (Collection<TableEditor>) value;
Type safety: Unchecked cast from Object to Collection<TableEditor>

/src/org/eclipse/e4/xwt/javabean/metadata/properties/TableItemProperty.java : 1 warning :

OTHER WARNINGS
1. WARNING in /src/org/eclipse/e4/xwt/javabean/metadata/properties/TableItemProperty.java
 (at line 64)
Collection<Cell> cells = (Collection<Cell>) value;
Type safety: Unchecked cast from Object to Collection<TableItemProperty.Cell>

FORBIDDEN ACCESS WARNINGS

top errors others warnings discouraged warnings

DISCOURAGED ACCESS WARNINGS

top errors others warnings forbidden warnings