summaryrefslogtreecommitdiffstats
path: root/qadevOOo/runner/util/dbg.java
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-06-27 16:08:28 +0200
committerMichael Stahl <mstahl@redhat.com>2012-06-29 22:03:01 +0200
commit453d7edc424d6652e209ace4915d96193a79be71 (patch)
tree0a6af928cf7d1fd90ec995ae7d114f08eaf617fd /qadevOOo/runner/util/dbg.java
parentJava5 update - usage generics where possible (diff)
downloadcore-453d7edc424d6652e209ace4915d96193a79be71.tar.gz
core-453d7edc424d6652e209ace4915d96193a79be71.zip
Java5 update - convert more code to use generics:wq
Change-Id: I7ea32cad40a6657e4e5886d04af008cb6d67ac6e
Diffstat (limited to 'qadevOOo/runner/util/dbg.java')
-rw-r--r--qadevOOo/runner/util/dbg.java11
1 files changed, 4 insertions, 7 deletions
diff --git a/qadevOOo/runner/util/dbg.java b/qadevOOo/runner/util/dbg.java
index 95abe526a9a3..a97d6b12b4c2 100644
--- a/qadevOOo/runner/util/dbg.java
+++ b/qadevOOo/runner/util/dbg.java
@@ -77,8 +77,7 @@ public class dbg {
*/
public static Type[] getInterfaceTypes(XInterface xTarget) {
Type[] types = null;
- XTypeProvider xTypeProvider = (XTypeProvider)
- UnoRuntime.queryInterface( XTypeProvider.class, xTarget);
+ XTypeProvider xTypeProvider = UnoRuntime.queryInterface( XTypeProvider.class, xTarget);
if( xTypeProvider != null )
types = xTypeProvider.getTypes();
return types;
@@ -116,7 +115,7 @@ public class dbg {
*/
public static void printInterfaceInfo(Type aType) {
try {
- Class zClass = aType.getZClass();
+ Class<?> zClass = aType.getZClass();
Method[] methods = zClass.getDeclaredMethods();
for (int i=0; i<methods.length; i++) {
System.out.println("\t" + methods[i].getReturnType().getName()
@@ -297,8 +296,7 @@ public class dbg {
* @param aObject A UNO object.
*/
public static void getSuppServices (Object aObject) {
- XServiceInfo xSI = (XServiceInfo)
- UnoRuntime.queryInterface(XServiceInfo.class,aObject);
+ XServiceInfo xSI = UnoRuntime.queryInterface(XServiceInfo.class,aObject);
printArray(xSI.getSupportedServiceNames());
String str="Therein not Supported Service";
boolean notSupportedServices = false;
@@ -319,8 +317,7 @@ public class dbg {
*/
public static String getImplID( XInterface xTarget ) {
String str = "";
- XTypeProvider xTypeProvider = (XTypeProvider)
- UnoRuntime.queryInterface( XTypeProvider.class, xTarget);
+ XTypeProvider xTypeProvider = UnoRuntime.queryInterface( XTypeProvider.class, xTarget);
if( xTypeProvider != null ) {
byte[] id = xTypeProvider.getImplementationId();
str = "ImplementationID: ";