From ad4951e507321947eeb090e6f72e749dbf7486f0 Mon Sep 17 00:00:00 2001 From: aclement Date: Mon, 23 Jun 2008 04:01:28 +0000 Subject: [PATCH] PERFORMANCE: avoid unnecessary replace --- .../src/org/aspectj/apache/bcel/generic/ObjectType.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bcel-builder/src/org/aspectj/apache/bcel/generic/ObjectType.java b/bcel-builder/src/org/aspectj/apache/bcel/generic/ObjectType.java index cf3bb25e6..12b77d47f 100644 --- a/bcel-builder/src/org/aspectj/apache/bcel/generic/ObjectType.java +++ b/bcel-builder/src/org/aspectj/apache/bcel/generic/ObjectType.java @@ -60,10 +60,10 @@ import org.aspectj.apache.bcel.classfile.JavaClass; /** * Denotes reference such as java.lang.String. * - * @version $Id: ObjectType.java,v 1.4 2008/05/28 23:52:55 aclement Exp $ + * @version $Id: ObjectType.java,v 1.5 2008/06/23 04:01:28 aclement Exp $ * @author M. Dahm */ -public final class ObjectType extends ReferenceType { +public class ObjectType extends ReferenceType { private String class_name; // Class name of type /** @@ -71,7 +71,7 @@ public final class ObjectType extends ReferenceType { */ public ObjectType(String class_name) { super(Constants.T_REFERENCE, toSignature(class_name));//"L" + class_name.replace('.', '/') + ";"); - this.class_name = class_name.replace('/', '.'); + this.class_name = class_name;//.replace('/', '.'); } private static String toSignature(String classname) { -- 2.39.5