summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-05-03 15:20:36 +0200
committerNoel Grandin <noel@peralex.com>2013-05-06 11:45:58 +0200
commit8bebd29976f41cb8793804f3e0b22ef75c56d8dd (patch)
tree3a9b5803cd5b8cf2f7ddafbc41cd92bb369953a0
parent402c8f5f1efd053cc69556d63999955b3af4f41d (diff)
Java cleanup, remove unnecessary @SuppressWarnings annotations
Change-Id: Ib5df091fc4a6233b526c44ae42dbdbacb0bef7c6
-rw-r--r--comphelper/qa/complex/comphelper/Map.java1
-rw-r--r--dbaccess/qa/complex/dbaccess/DatabaseDocument.java1
-rw-r--r--dbaccess/qa/complex/dbaccess/RowSet.java1
-rw-r--r--dbaccess/qa/complex/dbaccess/SingleSelectQueryComposer.java1
-rw-r--r--dbaccess/qa/complex/dbaccess/TestCase.java1
-rw-r--r--javaunohelper/com/sun/star/lib/uno/helper/PropertySetMixin.java1
-rw-r--r--qadevOOo/tests/java/ifc/beans/_XFastPropertySet.java1
-rw-r--r--qadevOOo/tests/java/ifc/beans/_XMultiPropertySet.java1
-rw-r--r--qadevOOo/tests/java/ifc/io/_XDataInputStream.java1
-rw-r--r--qadevOOo/tests/java/ifc/io/_XDataOutputStream.java1
-rw-r--r--qadevOOo/tests/java/ifc/io/_XOutputStream.java1
-rw-r--r--qadevOOo/tests/java/ifc/sdbc/_XParameters.java1
-rw-r--r--qadevOOo/tests/java/ifc/sdbc/_XRow.java1
-rw-r--r--qadevOOo/tests/java/ifc/sdbc/_XRowUpdate.java1
-rw-r--r--qadevOOo/tests/java/ifc/view/_XMultiSelectionSupplier.java1
-rw-r--r--qadevOOo/tests/java/ifc/view/_XSelectionSupplier.java1
-rw-r--r--ridljar/com/sun/star/lib/util/WeakMap.java1
-rw-r--r--sfx2/qa/complex/sfx2/UndoManager.java1
-rw-r--r--wizards/com/sun/star/wizards/ui/ButtonList.java3
-rw-r--r--wizards/com/sun/star/wizards/ui/ImageList.java5
20 files changed, 3 insertions, 23 deletions
diff --git a/comphelper/qa/complex/comphelper/Map.java b/comphelper/qa/complex/comphelper/Map.java
index 84304d2f87bf..20ce90e166c4 100644
--- a/comphelper/qa/complex/comphelper/Map.java
+++ b/comphelper/qa/complex/comphelper/Map.java
@@ -188,7 +188,6 @@ public class Map /* extends complexlib.ComplexTestCase */
);
}
- @SuppressWarnings("unchecked")
@Test public void testComplexKeyTypes() throws com.sun.star.uno.Exception
{
Type intType = new Type( Integer.class );
diff --git a/dbaccess/qa/complex/dbaccess/DatabaseDocument.java b/dbaccess/qa/complex/dbaccess/DatabaseDocument.java
index 264872dadf2e..fc5999dcba5f 100644
--- a/dbaccess/qa/complex/dbaccess/DatabaseDocument.java
+++ b/dbaccess/qa/complex/dbaccess/DatabaseDocument.java
@@ -173,7 +173,6 @@ public class DatabaseDocument extends TestCase implements com.sun.star.document.
};
}
- @SuppressWarnings("unchecked")
public void dispose()
{
final EventObject event = new EventObject(this);
diff --git a/dbaccess/qa/complex/dbaccess/RowSet.java b/dbaccess/qa/complex/dbaccess/RowSet.java
index b5ecad9237ee..e7f195ab9a55 100644
--- a/dbaccess/qa/complex/dbaccess/RowSet.java
+++ b/dbaccess/qa/complex/dbaccess/RowSet.java
@@ -370,7 +370,6 @@ public class RowSet extends TestCase
// --------------------------------------------------------------------------------------------------------
@Test
- @SuppressWarnings("unchecked")
public void testRowSetEvents() throws java.lang.Exception
{
System.out.println("testing RowSet Events");
diff --git a/dbaccess/qa/complex/dbaccess/SingleSelectQueryComposer.java b/dbaccess/qa/complex/dbaccess/SingleSelectQueryComposer.java
index b95144ae4a6a..4b762d814e73 100644
--- a/dbaccess/qa/complex/dbaccess/SingleSelectQueryComposer.java
+++ b/dbaccess/qa/complex/dbaccess/SingleSelectQueryComposer.java
@@ -80,7 +80,6 @@ public class SingleSelectQueryComposer extends CRMBasedTestCase
}
// --------------------------------------------------------------------------------------------------------
- @SuppressWarnings("unchecked")
private void checkAttributeAccess(String _attributeName, String _attributeValue)
{
System.out.println("setting " + _attributeName + " to " + _attributeValue);
diff --git a/dbaccess/qa/complex/dbaccess/TestCase.java b/dbaccess/qa/complex/dbaccess/TestCase.java
index 738f39d2a937..3db21c8a936d 100644
--- a/dbaccess/qa/complex/dbaccess/TestCase.java
+++ b/dbaccess/qa/complex/dbaccess/TestCase.java
@@ -117,7 +117,6 @@ public abstract class TestCase
* is the class of the exception to be caught. If this is null,
* it means that <em>no</em> exception must be throw by invoking the method.
*/
- @SuppressWarnings("unchecked")
protected void assureException( final String _message, final Object _object, final String _methodName,
final Class[] _argClasses, final Object[] _methodArgs, final Class _expectedExceptionClass )
{
diff --git a/javaunohelper/com/sun/star/lib/uno/helper/PropertySetMixin.java b/javaunohelper/com/sun/star/lib/uno/helper/PropertySetMixin.java
index cd57c6357330..dae489fd4c66 100644
--- a/javaunohelper/com/sun/star/lib/uno/helper/PropertySetMixin.java
+++ b/javaunohelper/com/sun/star/lib/uno/helper/PropertySetMixin.java
@@ -200,7 +200,6 @@ public final class PropertySetMixin {
{@link BoundListeners#notifyListeners} has not yet been called); may only
be null if the attribute that is going to be set is not bound
*/
- @SuppressWarnings("unchecked")
public void prepareSet(
String propertyName, Object oldValue, Object newValue,
BoundListeners bound)
diff --git a/qadevOOo/tests/java/ifc/beans/_XFastPropertySet.java b/qadevOOo/tests/java/ifc/beans/_XFastPropertySet.java
index 2ba20762d538..6ee8c0c611c9 100644
--- a/qadevOOo/tests/java/ifc/beans/_XFastPropertySet.java
+++ b/qadevOOo/tests/java/ifc/beans/_XFastPropertySet.java
@@ -62,7 +62,6 @@ public class _XFastPropertySet extends MultiMethodTest {
/**
* Retrieves relation.
*/
- @SuppressWarnings("unchecked")
protected void before() {
exclude = (Set<String>) tEnv.getObjRelation("XFastPropertySet.ExcludeProps") ;
if (exclude == null) {
diff --git a/qadevOOo/tests/java/ifc/beans/_XMultiPropertySet.java b/qadevOOo/tests/java/ifc/beans/_XMultiPropertySet.java
index 54fe4ea46b41..9b814658d620 100644
--- a/qadevOOo/tests/java/ifc/beans/_XMultiPropertySet.java
+++ b/qadevOOo/tests/java/ifc/beans/_XMultiPropertySet.java
@@ -76,7 +76,6 @@ public class _XMultiPropertySet extends MultiMethodTest {
/**
* Initializes some fields.
*/
- @SuppressWarnings("unchecked")
public void before() {
exclProps = (Set<String>) tEnv.getObjRelation("XMultiPropertySet.ExcludeProps");
if (exclProps == null) exclProps = new HashSet<String>(0);
diff --git a/qadevOOo/tests/java/ifc/io/_XDataInputStream.java b/qadevOOo/tests/java/ifc/io/_XDataInputStream.java
index e912334252eb..2671b4baf620 100644
--- a/qadevOOo/tests/java/ifc/io/_XDataInputStream.java
+++ b/qadevOOo/tests/java/ifc/io/_XDataInputStream.java
@@ -76,7 +76,6 @@ public class _XDataInputStream extends MultiMethodTest {
* data of different types and fills the appropriate variables.
* @throws StatusException If one of relations not found.
*/
- @SuppressWarnings("unchecked")
public void before(){
XInterface x = (XInterface)tEnv.getObjRelation("StreamWriter") ;
diff --git a/qadevOOo/tests/java/ifc/io/_XDataOutputStream.java b/qadevOOo/tests/java/ifc/io/_XDataOutputStream.java
index c66c8bea3da5..90d049cbd05f 100644
--- a/qadevOOo/tests/java/ifc/io/_XDataOutputStream.java
+++ b/qadevOOo/tests/java/ifc/io/_XDataOutputStream.java
@@ -56,7 +56,6 @@ public class _XDataOutputStream extends MultiMethodTest {
* If relation or data of some type in stream not found then
* tests of corresponding methods are skipped.
*/
- @SuppressWarnings("unchecked")
public void before() throws RuntimeException {
List<Object> data = (List<Object>) tEnv.getObjRelation("StreamData") ;
diff --git a/qadevOOo/tests/java/ifc/io/_XOutputStream.java b/qadevOOo/tests/java/ifc/io/_XOutputStream.java
index 9945437a6f7c..8e53c67def0b 100644
--- a/qadevOOo/tests/java/ifc/io/_XOutputStream.java
+++ b/qadevOOo/tests/java/ifc/io/_XOutputStream.java
@@ -56,7 +56,6 @@ public class _XOutputStream extends MultiMethodTest {
public void resetStreams();
}
- @SuppressWarnings("unchecked")
protected void before() {
checker = (StreamChecker)
tEnv.getObjRelation("XOutputStream.StreamChecker");
diff --git a/qadevOOo/tests/java/ifc/sdbc/_XParameters.java b/qadevOOo/tests/java/ifc/sdbc/_XParameters.java
index fd3dd2bafcb2..e9d9774c0688 100644
--- a/qadevOOo/tests/java/ifc/sdbc/_XParameters.java
+++ b/qadevOOo/tests/java/ifc/sdbc/_XParameters.java
@@ -100,7 +100,6 @@ public class _XParameters extends MultiMethodTest {
/**
* Gets object relation
*/
- @SuppressWarnings("unchecked")
public void before() {
data = (List<Object>) tEnv.getObjRelation("XParameters.ParamValues") ;
if (data == null) {
diff --git a/qadevOOo/tests/java/ifc/sdbc/_XRow.java b/qadevOOo/tests/java/ifc/sdbc/_XRow.java
index 8eca4027804a..b7d680ef1cca 100644
--- a/qadevOOo/tests/java/ifc/sdbc/_XRow.java
+++ b/qadevOOo/tests/java/ifc/sdbc/_XRow.java
@@ -100,7 +100,6 @@ public class _XRow extends MultiMethodTest {
/**
* Retrieves object relation first.
*/
- @SuppressWarnings("unchecked")
public void before() {
data = (List<Object>) tEnv.getObjRelation("CurrentRowData") ;
}
diff --git a/qadevOOo/tests/java/ifc/sdbc/_XRowUpdate.java b/qadevOOo/tests/java/ifc/sdbc/_XRowUpdate.java
index 0ae50bd300bc..53cd93d9fa5b 100644
--- a/qadevOOo/tests/java/ifc/sdbc/_XRowUpdate.java
+++ b/qadevOOo/tests/java/ifc/sdbc/_XRowUpdate.java
@@ -99,7 +99,6 @@ public class _XRowUpdate extends MultiMethodTest {
/**
* Gets relations.
*/
- @SuppressWarnings("unchecked")
public void before() {
rowData = (List<Object>) tEnv.getObjRelation("CurrentRowData") ;
if (rowData == null) {
diff --git a/qadevOOo/tests/java/ifc/view/_XMultiSelectionSupplier.java b/qadevOOo/tests/java/ifc/view/_XMultiSelectionSupplier.java
index 3d81a16cecba..3ca7861c0db0 100644
--- a/qadevOOo/tests/java/ifc/view/_XMultiSelectionSupplier.java
+++ b/qadevOOo/tests/java/ifc/view/_XMultiSelectionSupplier.java
@@ -55,7 +55,6 @@ public class _XMultiSelectionSupplier extends MultiMethodTest {
Object[] selections = null;
Comparator<Object> ObjCompare = null;
- @SuppressWarnings("unchecked")
protected void before() {
selections = (Object[])tEnv.getObjRelation("Selections");
if (selections == null) {
diff --git a/qadevOOo/tests/java/ifc/view/_XSelectionSupplier.java b/qadevOOo/tests/java/ifc/view/_XSelectionSupplier.java
index 40f1b55c4a8d..37fce51db73d 100644
--- a/qadevOOo/tests/java/ifc/view/_XSelectionSupplier.java
+++ b/qadevOOo/tests/java/ifc/view/_XSelectionSupplier.java
@@ -53,7 +53,6 @@ public class _XSelectionSupplier extends MultiMethodTest {
Object[] selections = null;
Comparator<Object> ObjCompare = null;
- @SuppressWarnings("unchecked")
protected void before() {
selections = (Object[])tEnv.getObjRelation("Selections");
if (selections == null) {
diff --git a/ridljar/com/sun/star/lib/util/WeakMap.java b/ridljar/com/sun/star/lib/util/WeakMap.java
index 5de60a19df11..69c2cb0146b6 100644
--- a/ridljar/com/sun/star/lib/util/WeakMap.java
+++ b/ridljar/com/sun/star/lib/util/WeakMap.java
@@ -275,7 +275,6 @@ public final class WeakMap<K,V> implements Map {
* (Specifically, iterating over the collections returned by those
* methods), as non-modifying methods might modify the underlying map.
**/
- @SuppressWarnings("unchecked")
private void cleanUp() {
for (;;) {
Entry<K,V> e = (Entry<K,V>) queue.poll();
diff --git a/sfx2/qa/complex/sfx2/UndoManager.java b/sfx2/qa/complex/sfx2/UndoManager.java
index 47734bfe9683..69c9dd2cb3f8 100644
--- a/sfx2/qa/complex/sfx2/UndoManager.java
+++ b/sfx2/qa/complex/sfx2/UndoManager.java
@@ -1375,7 +1375,6 @@ public class UndoManager
return new String[] { getCallbackComponentServiceName() };
}
- @SuppressWarnings("unchecked")
public void dispose()
{
final EventObject event = new EventObject( this );
diff --git a/wizards/com/sun/star/wizards/ui/ButtonList.java b/wizards/com/sun/star/wizards/ui/ButtonList.java
index 5dc2f4d24114..10b80afbb5fb 100644
--- a/wizards/com/sun/star/wizards/ui/ButtonList.java
+++ b/wizards/com/sun/star/wizards/ui/ButtonList.java
@@ -80,7 +80,7 @@ public class ButtonList implements XItemEventBroadcaster, XActionListener
{
m_aControlName = _sName;
}
-
+
/** Setter for property m_aButtonSize.
* @param imageSize New value of property m_aButtonSize.
*/
@@ -413,7 +413,6 @@ public class ButtonList implements XItemEventBroadcaster, XActionListener
/** Notifies all registered listeners about the event.
*
*/
- @SuppressWarnings("unchecked")
private void fireItemSelected()
{
java.util.ArrayList<XItemListener> list;
diff --git a/wizards/com/sun/star/wizards/ui/ImageList.java b/wizards/com/sun/star/wizards/ui/ImageList.java
index 65ce47a602c8..048ff0d6d390 100644
--- a/wizards/com/sun/star/wizards/ui/ImageList.java
+++ b/wizards/com/sun/star/wizards/ui/ImageList.java
@@ -470,7 +470,7 @@ public class ImageList implements XItemEventBroadcaster, ListDataListener
}
/**
- *
+ *
* @param i
* @return the Object in the list model corresponding to the given image index.
*/
@@ -488,7 +488,7 @@ public class ImageList implements XItemEventBroadcaster, ListDataListener
}
/**
- *
+ *
* @param i
* @return the index in the listModel for the given image index.
*/
@@ -561,7 +561,6 @@ public class ImageList implements XItemEventBroadcaster, ListDataListener
/** Notifies all registered listeners about the event.
*/
- @SuppressWarnings("unchecked")
private void fireItemSelected()
{
java.util.ArrayList<XItemListener> list;