bodewig 2003/07/24 06:48:16
Modified: src/main/org/apache/tools/ant/taskdefs AntStructure.java
Get.java
src/main/org/apache/tools/ant/taskdefs/optional/ejb
IPlanetEjbc.java
src/main/org/apache/tools/bzip2 CBZip2OutputStream.java
Log:
Make some private things static
Revision Changes Path
1.34 +4 -4
ant/src/main/org/apache/tools/ant/taskdefs/AntStructure.java
Index: AntStructure.java
===================================================================
RCS file:
/home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/AntStructure.java,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- AntStructure.java 19 Jul 2003 11:20:12 -0000 1.33
+++ AntStructure.java 24 Jul 2003 13:48:15 -0000 1.34
@@ -86,9 +86,9 @@
private final String lSep = System.getProperty("line.separator");
- private final String BOOLEAN = "%boolean;";
- private final String TASKS = "%tasks;";
- private final String TYPES = "%types;";
+ private static final String BOOLEAN = "%boolean;";
+ private static final String TASKS = "%tasks;";
+ private static final String TYPES = "%types;";
private Hashtable visited = new Hashtable();
1.37 +1 -1 ant/src/main/org/apache/tools/ant/taskdefs/Get.java
Index: Get.java
===================================================================
RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/Get.java,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -r1.36 -r1.37
--- Get.java 19 Jul 2003 08:10:59 -0000 1.36
+++ Get.java 24 Jul 2003 13:48:15 -0000 1.37
@@ -363,7 +363,7 @@
* <a HREF="[EMAIL PROTECTED]">Gautam Guliani</a>
*********************************************************************/
- class Base64Converter {
+ private static class Base64Converter {
public final char [ ] alphabet = {
'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', // 0 to 7
1.16 +3 -3
ant/src/main/org/apache/tools/ant/taskdefs/optional/ejb/IPlanetEjbc.java
Index: IPlanetEjbc.java
===================================================================
RCS file:
/home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/optional/ejb/IPlanetEjbc.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- IPlanetEjbc.java 19 Jul 2003 08:11:03 -0000 1.15
+++ IPlanetEjbc.java 24 Jul 2003 13:48:16 -0000 1.16
@@ -1,7 +1,7 @@
/*
* The Apache Software License, Version 1.1
*
- * Copyright (c) 2001-2002 The Apache Software Foundation. All rights
+ * Copyright (c) 2001-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -1386,7 +1386,7 @@
*
* @author Greg Nelson <a href="mailto:[EMAIL PROTECTED]">[EMAIL
PROTECTED]</a>
*/
- private class Classname {
+ private static class Classname {
private String qualifiedName; // Fully qualified name of the Java
class
private String packageName; // Name of the package for this class
private String className; // Name of the class without the
package
@@ -1488,7 +1488,7 @@
*
* @author Greg Nelson <a href="mailto:[EMAIL PROTECTED]">[EMAIL
PROTECTED]</a>
*/
- private class RedirectOutput extends Thread {
+ private static class RedirectOutput extends Thread {
InputStream stream; // Stream to read and redirect to standard
output
/**
1.16 +2 -2
ant/src/main/org/apache/tools/bzip2/CBZip2OutputStream.java
Index: CBZip2OutputStream.java
===================================================================
RCS file:
/home/cvs/ant/src/main/org/apache/tools/bzip2/CBZip2OutputStream.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- CBZip2OutputStream.java 24 Jul 2003 13:17:04 -0000 1.15
+++ CBZip2OutputStream.java 24 Jul 2003 13:48:16 -0000 1.16
@@ -1,7 +1,7 @@
/*
* The Apache Software License, Version 1.1
*
- * Copyright (c) 2001-2002 The Apache Software Foundation. All rights
+ * Copyright (c) 2001-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -1028,7 +1028,7 @@
return b;
}
- private class StackElem {
+ private static class StackElem {
int ll;
int hh;
int dd;
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]