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:
Noel Grandin
2021-05-03 09:59:08 +02:00
parent ff673ce838
commit ed33d1d492
3 changed files with 4 additions and 3 deletions

View File

@@ -49,6 +49,7 @@ public class PropertyInfo<PropType> {
return m_description;
}
@SuppressWarnings("unchecked")
public void setValue(Object value) throws IllegalArgumentException {
if (m_property.Type == Type.LONG) {
if (!(value instanceof Integer))

View File

@@ -205,7 +205,7 @@ public class SOReportJobFactory
{
if (exception instanceof ReportDataFactoryException == false)
return;
exception = ((ReportDataFactoryException)exception).getParent();
exception = ((ReportDataFactoryException)exception).getCause();
if (exception instanceof DataSourceException == false)
return;
exception = ((DataSourceException)exception).getCause();

View File

@@ -47,7 +47,7 @@ public class UIControlArranger
private final XRadioButton optAlignLeft;
private final XRadioButton optAlignRight;
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 Integer IControlStep;
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(ARRANGELISTTOP);
imageModel.addElement(ARRANGETABLE);