Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

small change

borg-0300718950c5dab1
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));
}