clean up some Java warnings
Change-Id: Id54e8fd6803c3a6c0d924338d1781679ed0b1bfd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115025 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
@@ -49,6 +49,7 @@ public class PropertyInfo<PropType> {
|
|||||||
return m_description;
|
return m_description;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
public void setValue(Object value) throws IllegalArgumentException {
|
public void setValue(Object value) throws IllegalArgumentException {
|
||||||
if (m_property.Type == Type.LONG) {
|
if (m_property.Type == Type.LONG) {
|
||||||
if (!(value instanceof Integer))
|
if (!(value instanceof Integer))
|
||||||
|
@@ -205,7 +205,7 @@ public class SOReportJobFactory
|
|||||||
{
|
{
|
||||||
if (exception instanceof ReportDataFactoryException == false)
|
if (exception instanceof ReportDataFactoryException == false)
|
||||||
return;
|
return;
|
||||||
exception = ((ReportDataFactoryException)exception).getParent();
|
exception = ((ReportDataFactoryException)exception).getCause();
|
||||||
if (exception instanceof DataSourceException == false)
|
if (exception instanceof DataSourceException == false)
|
||||||
return;
|
return;
|
||||||
exception = ((DataSourceException)exception).getCause();
|
exception = ((DataSourceException)exception).getCause();
|
||||||
|
@@ -47,7 +47,7 @@ public class UIControlArranger
|
|||||||
private final XRadioButton optAlignLeft;
|
private final XRadioButton optAlignLeft;
|
||||||
private final XRadioButton optAlignRight;
|
private final XRadioButton optAlignRight;
|
||||||
private final XControl flnLabelPlacement;
|
private final XControl flnLabelPlacement;
|
||||||
private final Map helpTexts = new HashMap(4);
|
private final Map<String,String> helpTexts = new HashMap<String,String>(4);
|
||||||
private final ArrangeButtonList[] m_aArrangeList = new ArrangeButtonList[2];
|
private final ArrangeButtonList[] m_aArrangeList = new ArrangeButtonList[2];
|
||||||
private final Integer IControlStep;
|
private final Integer IControlStep;
|
||||||
private static final int SOBASEIMAGEYPOSITION = 66;
|
private static final int SOBASEIMAGEYPOSITION = 66;
|
||||||
@@ -109,7 +109,7 @@ public class UIControlArranger
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
DefaultListModel imageModel = new DefaultListModel();
|
DefaultListModel<String> imageModel = new DefaultListModel<String>();
|
||||||
imageModel.addElement(ARRANGELISTSIDE);
|
imageModel.addElement(ARRANGELISTSIDE);
|
||||||
imageModel.addElement(ARRANGELISTTOP);
|
imageModel.addElement(ARRANGELISTTOP);
|
||||||
imageModel.addElement(ARRANGETABLE);
|
imageModel.addElement(ARRANGETABLE);
|
||||||
|
Reference in New Issue
Block a user