Skip to content

Commit

Permalink
small change
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@679 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
borg-0300 committed Sep 7, 2005
1 parent e6338b4 commit 718950c
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 16 deletions.
6 changes: 3 additions & 3 deletions source/de/anomic/data/listManager.java
Expand Up @@ -73,7 +73,7 @@ public static String[] getListslistArray(String Listname){

//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++){
Expand All @@ -93,7 +93,7 @@ public static void removeListFromListslist(String ListName, String BlackList){

//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++){
Expand All @@ -105,7 +105,7 @@ public static void addListToListslist(String ListName, String newList){

//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]) ){
Expand Down
12 changes: 6 additions & 6 deletions source/de/anomic/net/ftpc.java
Expand Up @@ -260,7 +260,7 @@ private String[] line2args(String line) {

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;
}
Expand Down Expand Up @@ -301,13 +301,13 @@ public Class loadClass(String classname, boolean resolve) throws ClassNotFoundEx

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();
Expand Down Expand Up @@ -1557,7 +1557,7 @@ private void createActiveDataPort() throws IOException {
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;
Expand Down Expand Up @@ -1653,7 +1653,7 @@ private void get(String fileDest, String fileName) throws IOException {
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;

Expand Down Expand Up @@ -1718,7 +1718,7 @@ private void put(String fileName, String fileDest) throws IOException {
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) {
Expand Down
2 changes: 1 addition & 1 deletion source/de/anomic/server/logging/GuiHandler.java
Expand Up @@ -150,7 +150,7 @@ public synchronized void publish(LogRecord record) {
*/
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;
Expand Down
4 changes: 2 additions & 2 deletions source/de/anomic/server/serverByteBuffer.java
Expand Up @@ -112,7 +112,7 @@ public serverByteBuffer(File f) throws IOException {

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) {
Expand Down Expand Up @@ -338,7 +338,7 @@ public void resize(int newSize) {
}

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;
}
Expand Down
2 changes: 1 addition & 1 deletion source/de/anomic/server/serverCodings.java
Expand Up @@ -247,7 +247,7 @@ private static byte[] encodeMD5Raw(File file) {
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();
Expand Down
2 changes: 1 addition & 1 deletion source/de/anomic/tools/cryptbig.java
Expand Up @@ -362,7 +362,7 @@ public void decryptFile(String inFileName, String outFileName) {
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();
Expand Down
2 changes: 1 addition & 1 deletion source/de/anomic/tools/gzip.java
Expand Up @@ -115,7 +115,7 @@ public static String gunzipString(byte[] in) {
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();
Expand Down
2 changes: 1 addition & 1 deletion source/de/anomic/yacy/yacyClient.java
Expand Up @@ -344,7 +344,7 @@ public static int search(String wordhashes, int count, boolean global,

// 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));
}
Expand Down

0 comments on commit 718950c

Please sign in to comment.