aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/src
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/src')
-rw-r--r--runtime/src/main/java/org/aspectj/runtime/internal/Conversions.java74
1 files changed, 37 insertions, 37 deletions
diff --git a/runtime/src/main/java/org/aspectj/runtime/internal/Conversions.java b/runtime/src/main/java/org/aspectj/runtime/internal/Conversions.java
index 0632ae8f8..13e8d9edd 100644
--- a/runtime/src/main/java/org/aspectj/runtime/internal/Conversions.java
+++ b/runtime/src/main/java/org/aspectj/runtime/internal/Conversions.java
@@ -1,14 +1,14 @@
/* *******************************************************************
- * Copyright (c) 1999-2001 Xerox Corporation,
+ * Copyright (c) 1999-2001 Xerox Corporation,
* 2002 Palo Alto Research Center, Incorporated (PARC).
- * All rights reserved.
- * This program and the accompanying materials are made available
- * under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Xerox/PARC initial implementation
+ * All rights reserved.
+ * This program and the accompanying materials are made available
+ * under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Xerox/PARC initial implementation
* ******************************************************************/
@@ -18,34 +18,34 @@ public final class Conversions {
// Can't make instances of me
private Conversions() {}
- // we might want to keep a cache of small integers around
+ // we might want to keep a cache of small integers around
public static Object intObject(int i) {
- return new Integer(i);
- }
+ return new Integer(i);
+ }
public static Object shortObject(short i) {
- return new Short(i);
- }
+ return new Short(i);
+ }
public static Object byteObject(byte i) {
- return new Byte(i);
- }
+ return new Byte(i);
+ }
public static Object charObject(char i) {
- return new Character(i);
- }
+ return new Character(i);
+ }
public static Object longObject(long i) {
- return new Long(i);
- }
+ return new Long(i);
+ }
public static Object floatObject(float i) {
- return new Float(i);
- }
+ return new Float(i);
+ }
public static Object doubleObject(double i) {
- return new Double(i);
- }
+ return new Double(i);
+ }
public static Object booleanObject(boolean i) {
- return new Boolean(i);
- }
+ return i;
+ }
public static Object voidObject() {
- return null;
- }
+ return null;
+ }
public static int intValue(Object o) {
@@ -55,7 +55,7 @@ public final class Conversions {
return ((Number)o).intValue();
} else {
throw new ClassCastException(o.getClass().getName() +
- " can not be converted to int");
+ " can not be converted to int");
}
}
public static long longValue(Object o) {
@@ -65,7 +65,7 @@ public final class Conversions {
return ((Number)o).longValue();
} else {
throw new ClassCastException(o.getClass().getName() +
- " can not be converted to long");
+ " can not be converted to long");
}
}
public static float floatValue(Object o) {
@@ -75,7 +75,7 @@ public final class Conversions {
return ((Number)o).floatValue();
} else {
throw new ClassCastException(o.getClass().getName() +
- " can not be converted to float");
+ " can not be converted to float");
}
}
public static double doubleValue(Object o) {
@@ -85,7 +85,7 @@ public final class Conversions {
return ((Number)o).doubleValue();
} else {
throw new ClassCastException(o.getClass().getName() +
- " can not be converted to double");
+ " can not be converted to double");
}
}
public static byte byteValue(Object o) {
@@ -95,7 +95,7 @@ public final class Conversions {
return ((Number)o).byteValue();
} else {
throw new ClassCastException(o.getClass().getName() +
- " can not be converted to byte");
+ " can not be converted to byte");
}
}
public static short shortValue(Object o) {
@@ -105,7 +105,7 @@ public final class Conversions {
return ((Number)o).shortValue();
} else {
throw new ClassCastException(o.getClass().getName() +
- " can not be converted to short");
+ " can not be converted to short");
}
}
public static char charValue(Object o) {
@@ -115,7 +115,7 @@ public final class Conversions {
return ((Character)o).charValue();
} else {
throw new ClassCastException(o.getClass().getName() +
- " can not be converted to char");
+ " can not be converted to char");
}
}
public static boolean booleanValue(Object o) {
@@ -125,10 +125,10 @@ public final class Conversions {
return ((Boolean)o).booleanValue();
} else {
throw new ClassCastException(o.getClass().getName() +
- " can not be converted to boolean");
+ " can not be converted to boolean");
}
}
-
+
// identity function for now. This is not typed to "void" because we happen
// to know that in Java, any void context (i.e., {@link ExprStmt})
// can also handle a return value.