Browse Source

refactoring

tags/V1_6_6
aclement 14 years ago
parent
commit
250b7a1b06

+ 1
- 10
bcel-builder/src/org/aspectj/apache/bcel/classfile/JavaClass.java View File

@@ -80,7 +80,7 @@ import org.aspectj.apache.bcel.util.SyntheticRepository;
* The intent of this class is to represent a parsed or otherwise existing class file. Those interested in programatically
* generating classes should see the <a href="../generic/ClassGen.html">ClassGen</a> class.
*
* @version $Id: JavaClass.java,v 1.20 2009/09/15 03:33:52 aclement Exp $
* @version $Id: JavaClass.java,v 1.21 2009/09/15 16:39:56 aclement Exp $
* @see org.aspectj.apache.bcel.generic.ClassGen
* @author <A HREF="mailto:markus.dahm@berlin.de">M. Dahm</A>
*/
@@ -240,9 +240,6 @@ public class JavaClass extends Modifiers implements Cloneable, Node {

/**
* Dump Java class to output stream in binary format.
*
* @param file Output stream
* @exception IOException
*/
public void dump(OutputStream file) throws IOException {
dump(new DataOutputStream(file));
@@ -250,9 +247,6 @@ public class JavaClass extends Modifiers implements Cloneable, Node {

/**
* Dump Java class to output stream in binary format.
*
* @param file Output stream
* @exception IOException
*/
public void dump(DataOutputStream file) throws IOException {
file.writeInt(0xcafebabe);
@@ -285,9 +279,6 @@ public class JavaClass extends Modifiers implements Cloneable, Node {
file.close();
}

/**
* @return Attributes of the class.
*/
public Attribute[] getAttributes() {
return attributes;
}

+ 0
- 6
bcel-builder/src/org/aspectj/apache/bcel/classfile/annotation/AnnotationGen.java View File

@@ -32,12 +32,6 @@ public class AnnotationGen {
private ConstantPool cpool;
private boolean isRuntimeVisible = false;

/**
* Here we are taking a fixed annotation of type Annotation and building a modifiable AnnotationGen object. If the pool passed
* in is for a different class file, then copyPoolEntries should have been passed as true as that will force us to do a deep
* copy of the annotation and move the cpool entries across. We need to copy the type and the element name value pairs and the
* visibility.
*/
public AnnotationGen(AnnotationGen a, ConstantPool cpool, boolean copyPoolEntries) {
this.cpool = cpool;
if (copyPoolEntries) {

Loading…
Cancel
Save