summaryrefslogtreecommitdiff
path: root/scripting/examples
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-05-03 14:35:04 +0200
committerNoel Grandin <noel@peralex.com>2013-05-06 11:45:50 +0200
commit587c59fbc931b12f4d63d077a78bcaa43ffbf83d (patch)
treec1984991960664faf41ea3e32e3804404aecb22d /scripting/examples
parent95e1ecbf89f75e2b298b931c3cc2e0d5655c31ed (diff)
Java cleanup, Convert Vector to ArrayList
Change-Id: I323a6625f93347e69f3114fc10cb04dc759a539f
Diffstat (limited to 'scripting/examples')
-rw-r--r--scripting/examples/java/Newsgroup/PostNewsgroup.java2
-rw-r--r--scripting/examples/java/Newsgroup/SubscribedNewsgroups.java6
2 files changed, 4 insertions, 4 deletions
diff --git a/scripting/examples/java/Newsgroup/PostNewsgroup.java b/scripting/examples/java/Newsgroup/PostNewsgroup.java
index a0bb9f9c06e9..697b52a66a62 100644
--- a/scripting/examples/java/Newsgroup/PostNewsgroup.java
+++ b/scripting/examples/java/Newsgroup/PostNewsgroup.java
@@ -329,7 +329,7 @@ public class PostNewsgroup extends JFrame
{
// Copy all newsgroups into a vector for comparison
// Alter entries (to include host name) if duplication is found
- Vector vector = new Vector( subscribedNewsgroups.length );
+ ArrayList vector = new ArrayList( subscribedNewsgroups.length );
for(int i=0; i < subscribedNewsgroups.length; i++ )
{
vector.add( subscribedNewsgroups[i].getNewsgroupName() );
diff --git a/scripting/examples/java/Newsgroup/SubscribedNewsgroups.java b/scripting/examples/java/Newsgroup/SubscribedNewsgroups.java
index bc1bb24bce6a..f5140690c924 100644
--- a/scripting/examples/java/Newsgroup/SubscribedNewsgroups.java
+++ b/scripting/examples/java/Newsgroup/SubscribedNewsgroups.java
@@ -118,7 +118,7 @@ public class SubscribedNewsgroups {
}
//System.out.println("mailrc files found");
- Vector subscribed = new Vector();
+ ArrayList subscribed = new ArrayList();
// Get the newsgroups in each mailrc file
for( int i=0; i < allMailrcs.length; i++ )
{
@@ -201,7 +201,7 @@ public class SubscribedNewsgroups {
LineNumberReader in = null;
try {
in = new LineNumberReader( new FileReader( mailrcfile ) );
- Vector groups = new Vector();
+ ArrayList groups = new ArrayList();
String inString = "";
int line = 0;
while( inString != null )
@@ -232,7 +232,7 @@ public class SubscribedNewsgroups {
// Finds all the mailrc files for all the given News directories
private static File[] findMailrcFiles(File[] newsDirs)
{
- Vector allFiles = new Vector();
+ ArrayList allFiles = new ArrayList();
for( int i=0; i < newsDirs.length; i++ )
{