Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sapphire-dev] Be careful of SWT/JFace types that have been parameterized in Eclipse 4.4

The current dev-target is Luna M1. It looks like many of the common SWT and JFace classes are not parameterized (generics), so you will see warnings in Eclipse. Be careful that you don’t try to correct this as that will cause Sapphire to not build with older version of Eclipse. The min req for Sapphire 0.7 is Indigo (Eclipse 3.7).

 

The correct way to handle these warnings is by adding an @SuppressWarnings annotation along with a comment explaining why the warning is suppressed instead of fixed. Something like this…

 

@SuppressWarnings( "rawtypes" ) // LabelProvider is parameterized since Eclipse 4.4

@SuppressWarnings( "unchecked" ) // TreeViewer is parameterized since Eclipse 4.4

 

Let me know if there are any questions.

 

Thanks,

 

- Konstantin


Back to the top