summaryrefslogtreecommitdiffstats
path: root/javaunohelper/test/com/sun/star/comp
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-08-20 17:05:35 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-08-20 19:04:33 +0100
commit8bfe47960f60e1dc2e6bcf0f3c3f7e43dfd3fc0b (patch)
tree12399f5232ff90f000bb58e213629140e564f0ce /javaunohelper/test/com/sun/star/comp
parentUse PassWord property in impdialog.src for certificate Edit widget. (diff)
downloadcore-8bfe47960f60e1dc2e6bcf0f3c3f7e43dfd3fc0b.tar.gz
core-8bfe47960f60e1dc2e6bcf0f3c3f7e43dfd3fc0b.zip
Java5 updates - convert to generics
Change-Id: I039e51958865a7ea000034e7bf765f64d49689cd
Diffstat (limited to 'javaunohelper/test/com/sun/star/comp')
-rw-r--r--javaunohelper/test/com/sun/star/comp/helper/Bootstrap_Test.java4
-rw-r--r--javaunohelper/test/com/sun/star/comp/helper/ComponentContext_Test.java4
2 files changed, 4 insertions, 4 deletions
diff --git a/javaunohelper/test/com/sun/star/comp/helper/Bootstrap_Test.java b/javaunohelper/test/com/sun/star/comp/helper/Bootstrap_Test.java
index 19d01c19620d..2a292be96b1a 100644
--- a/javaunohelper/test/com/sun/star/comp/helper/Bootstrap_Test.java
+++ b/javaunohelper/test/com/sun/star/comp/helper/Bootstrap_Test.java
@@ -28,7 +28,7 @@ import com.sun.star.lang.XMultiServiceFactory;
public class Bootstrap_Test {
- static public boolean test( String ini_file, java.util.Hashtable bootstrap_parameters )
+ static public boolean test( String ini_file, java.util.Hashtable<String,String> bootstrap_parameters )
throws java.lang.Exception
{
boolean passed = false;
@@ -91,7 +91,7 @@ public class Bootstrap_Test {
if ( args.length == 0 )
usage();
- java.util.Hashtable bootstrap_parameters = new java.util.Hashtable();
+ java.util.Hashtable<String,String> bootstrap_parameters = new java.util.Hashtable<String,String>();
for ( int nPos = 1; nPos < args.length; ++nPos )
{
String arg = args[ nPos ];
diff --git a/javaunohelper/test/com/sun/star/comp/helper/ComponentContext_Test.java b/javaunohelper/test/com/sun/star/comp/helper/ComponentContext_Test.java
index 7c31d134d79f..1a28a77f84f2 100644
--- a/javaunohelper/test/com/sun/star/comp/helper/ComponentContext_Test.java
+++ b/javaunohelper/test/com/sun/star/comp/helper/ComponentContext_Test.java
@@ -31,11 +31,11 @@ import java.util.Hashtable;
public class ComponentContext_Test {
public static void main(String args[]) {
try {
- Hashtable table = new Hashtable();
+ Hashtable<String,Object> table = new Hashtable<String,Object>();
table.put( "bla1", new ComponentContextEntry( null, new Integer( 1 ) ) );
XComponentContext xInitialContext = Bootstrap.createInitialComponentContext( table );
- table = new Hashtable();
+ table = new Hashtable<String,Object>();
table.put( "bla2", new ComponentContextEntry( new Integer( 2 ) ) );
table.put( "bla3", new Integer( 3 ) );
XComponentContext xContext = new ComponentContext( table, xInitialContext );