From 718950c5dab122473ab8f5f6d0565427c9f125d9 Mon Sep 17 00:00:00 2001 From: borg-0300 Date: Wed, 7 Sep 2005 15:20:12 +0000 Subject: [PATCH] small change git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@679 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/data/listManager.java | 6 +++--- source/de/anomic/net/ftpc.java | 12 ++++++------ source/de/anomic/server/logging/GuiHandler.java | 2 +- source/de/anomic/server/serverByteBuffer.java | 4 ++-- source/de/anomic/server/serverCodings.java | 2 +- source/de/anomic/tools/cryptbig.java | 2 +- source/de/anomic/tools/gzip.java | 2 +- source/de/anomic/yacy/yacyClient.java | 2 +- 8 files changed, 16 insertions(+), 16 deletions(-) diff --git a/source/de/anomic/data/listManager.java b/source/de/anomic/data/listManager.java index 33becbe8b..772ad673b 100644 --- a/source/de/anomic/data/listManager.java +++ b/source/de/anomic/data/listManager.java @@ -73,7 +73,7 @@ public class listManager { //removes a List from a Lists-List public static void removeListFromListslist(String ListName, String BlackList){ - String Lists[] = getListslistArray(ListName); + String[] Lists = getListslistArray(ListName); String temp = ""; for(int i=0;i <= Lists.length -1;i++){ @@ -93,7 +93,7 @@ public class listManager { //add a new List to a List-List public static void addListToListslist(String ListName, String newList){ - String Lists[] = getListslistArray(ListName); + String[] Lists = getListslistArray(ListName); String temp = ""; for(int i = 0;i <= (Lists.length -1); i++){ @@ -105,7 +105,7 @@ public class listManager { //returns true, if the Lists-List contains the Listname public static boolean ListInListslist(String Listname, String BlackList){ - String Lists[] = getListslistArray(Listname); + String[] Lists = getListslistArray(Listname); for(int u=0;u <= Lists.length -1;u++){ if( BlackList.equals(Lists[u]) ){ diff --git a/source/de/anomic/net/ftpc.java b/source/de/anomic/net/ftpc.java index dc5d1c661..fc5658cb8 100644 --- a/source/de/anomic/net/ftpc.java +++ b/source/de/anomic/net/ftpc.java @@ -260,7 +260,7 @@ public class ftpc { private static String[] shift(String args[]) { if ((args == null) || (args.length == 0)) return args; else { - String newArgs[] = new String[args.length-1]; + String[] newArgs = new String[args.length-1]; System.arraycopy(args, 1, newArgs, 0, args.length-1); return newArgs; } @@ -301,13 +301,13 @@ public class ftpc { private void javaexec(String[] inArgs) { String obj = inArgs[0]; - String args[] = new String[inArgs.length-1]; + String[] args = new String[inArgs.length-1]; // remove the object name from the array of arguments System.arraycopy(inArgs, 1, args, 0, inArgs.length-1); // Build the argument list for invoke() method. - Object argList[] = new Object[1]; + Object[] argList = new Object[1]; argList[0] = args; Properties pr = System.getProperties(); @@ -1557,7 +1557,7 @@ cd .. byte[] Bytes = serverCore.publicIP().getBytes(); // bytes greater than 127 should not be printed as negative - short Shorts[] = new short[4]; + short[] Shorts = new short[4]; for (int i = 0; i < 4; i++) { Shorts[i] = Bytes[i]; if (Shorts[i] < 0) Shorts[i] += 256; @@ -1653,7 +1653,7 @@ cd .. outFile = new RandomAccessFile(fileDest, "rw"); // write remote file to local file - byte block[] = new byte[blockSize]; + byte[] block = new byte[blockSize]; int numRead; long length = 0; @@ -1718,7 +1718,7 @@ cd .. RandomAccessFile inFile = new RandomAccessFile(fileName, "r"); // write remote file to local file - byte block[] = new byte[blockSize]; + byte[] block = new byte[blockSize]; int numRead; while ((numRead = inFile.read(block)) >= 0) { diff --git a/source/de/anomic/server/logging/GuiHandler.java b/source/de/anomic/server/logging/GuiHandler.java index ab3118822..8ed50b684 100644 --- a/source/de/anomic/server/logging/GuiHandler.java +++ b/source/de/anomic/server/logging/GuiHandler.java @@ -150,7 +150,7 @@ public class GuiHandler extends Handler{ */ public synchronized LogRecord[] getLogArray() { - LogRecord tempBuffer[] = new LogRecord[this.count]; + LogRecord[] tempBuffer = new LogRecord[this.count]; for (int i = 0; i < this.count; i++) { int ix = (this.start+i)%this.buffer.length; diff --git a/source/de/anomic/server/serverByteBuffer.java b/source/de/anomic/server/serverByteBuffer.java index 1a213aa90..5f9941050 100644 --- a/source/de/anomic/server/serverByteBuffer.java +++ b/source/de/anomic/server/serverByteBuffer.java @@ -112,7 +112,7 @@ public final class serverByteBuffer extends OutputStream { try { FileInputStream fis = new FileInputStream(f); -// byte buf[] = new byte[512]; +// byte[] buf = new byte[512]; // int p = 0; int l; // while ((l = fis.read(buf)) > 0) { @@ -338,7 +338,7 @@ public final class serverByteBuffer extends OutputStream { } public byte toByteArray()[] { - byte newbuf[] = new byte[this.length]; + byte[] newbuf = new byte[this.length]; System.arraycopy(this.buffer, 0, newbuf, 0, this.length); return newbuf; } diff --git a/source/de/anomic/server/serverCodings.java b/source/de/anomic/server/serverCodings.java index a66cc378b..fdd26c846 100644 --- a/source/de/anomic/server/serverCodings.java +++ b/source/de/anomic/server/serverCodings.java @@ -247,7 +247,7 @@ public final class serverCodings { MessageDigest digest = MessageDigest.getInstance("MD5"); digest.reset(); InputStream in = new BufferedInputStream(new FileInputStream(file), 2048); - byte buf [] = new byte[2048]; + byte[] buf = new byte[2048]; int n; while ((n = in.read(buf)) > 0) digest.update(buf, 0, n); in.close(); diff --git a/source/de/anomic/tools/cryptbig.java b/source/de/anomic/tools/cryptbig.java index 293a31c13..330a5f36e 100644 --- a/source/de/anomic/tools/cryptbig.java +++ b/source/de/anomic/tools/cryptbig.java @@ -362,7 +362,7 @@ public class cryptbig { private static void copy(OutputStream out, InputStream in, int bufferSize) throws IOException { InputStream bIn = new BufferedInputStream(in, bufferSize); OutputStream bOut = new BufferedOutputStream(out, bufferSize); - byte buf [] = new byte[bufferSize]; + byte[] buf = new byte[bufferSize]; int n; while ((n = bIn.read(buf)) > 0) bOut.write(buf, 0, n); bIn.close(); diff --git a/source/de/anomic/tools/gzip.java b/source/de/anomic/tools/gzip.java index 102ec5c8f..e1a94807c 100644 --- a/source/de/anomic/tools/gzip.java +++ b/source/de/anomic/tools/gzip.java @@ -115,7 +115,7 @@ public class gzip { private static void copy(OutputStream out, InputStream in, int bufferSize) throws IOException { InputStream bIn = new BufferedInputStream(in, bufferSize); OutputStream bOut = new BufferedOutputStream(out, bufferSize); - byte buf [] = new byte[bufferSize]; + byte[] buf = new byte[bufferSize]; int n; while ((n = bIn.read(buf)) > 0) bOut.write(buf, 0, n); bIn.close(); diff --git a/source/de/anomic/yacy/yacyClient.java b/source/de/anomic/yacy/yacyClient.java index f1562d9dd..467bbf158 100644 --- a/source/de/anomic/yacy/yacyClient.java +++ b/source/de/anomic/yacy/yacyClient.java @@ -344,7 +344,7 @@ public class yacyClient { // create containers int words = wordhashes.length() / plasmaWordIndexEntry.wordHashLength; - plasmaWordIndexEntryContainer container[] = new plasmaWordIndexEntryContainer[words]; + plasmaWordIndexEntryContainer[] container = new plasmaWordIndexEntryContainer[words]; for (int i = 0; i < words; i++) { container[i] = new plasmaWordIndexEntryContainer(wordhashes.substring(i * plasmaWordIndexEntry.wordHashLength, (i + 1) * plasmaWordIndexEntry.wordHashLength)); }