]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Java/Source/Cpptasks/net/sf/antcontrib/cpptasks/types/FlexLong.java
Retiring the ANT/JAVA build and removing the older EDK II packages that required...
[mirror_edk2.git] / Tools / Java / Source / Cpptasks / net / sf / antcontrib / cpptasks / types / FlexLong.java
diff --git a/Tools/Java/Source/Cpptasks/net/sf/antcontrib/cpptasks/types/FlexLong.java b/Tools/Java/Source/Cpptasks/net/sf/antcontrib/cpptasks/types/FlexLong.java
deleted file mode 100644 (file)
index d95959f..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-/*\r
- * \r
- * Copyright 2002-2004 The Ant-Contrib project\r
- *\r
- *  Licensed under the Apache License, Version 2.0 (the "License");\r
- *  you may not use this file except in compliance with the License.\r
- *  You may obtain a copy of the License at\r
- *\r
- *      http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- *  Unless required by applicable law or agreed to in writing, software\r
- *  distributed under the License is distributed on an "AS IS" BASIS,\r
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- *  See the License for the specific language governing permissions and\r
- *  limitations under the License.\r
- */\r
-package net.sf.antcontrib.cpptasks.types;\r
-import java.lang.reflect.Method;\r
-\r
-/**\r
- * Helper class which can be used for Ant task attribute setter methods to\r
- * allow the build file to specify a long in either decimal, octal, or\r
- * hexadecimal format.\r
- *  // FlexInteger author\r
- * @author Erik Hatcher\r
- * @see org.apache.tools.ant.types.FlexInteger\r
- */\r
-public class FlexLong {\r
-    private Long value;\r
-    /**\r
-     * Constructor used by Ant's introspection mechanism for attribute\r
-     * population\r
-     */\r
-    public FlexLong(String value) {\r
-        // Java 1.1 did not support Long.decode().. so we call it by\r
-        // reflection.\r
-        try {\r
-            Method m = Long.class\r
-                    .getMethod("decode", new Class[]{String.class});\r
-            Object rc = m.invoke(null, new Object[]{value});\r
-            this.value = (Long) rc;\r
-        } catch (Exception e) {\r
-            // Try it the old fashioned way, we must be on a 1.1 jre\r
-            this.value = new Long(value);\r
-        }\r
-    }\r
-    /**\r
-     * Returns the decimal integer value\r
-     */\r
-    public long longValue() {\r
-        return value.longValue();\r
-    }\r
-    /**\r
-     * Overridden method to return the decimal value for display\r
-     */\r
-    public String toString() {\r
-        return value.toString();\r
-    }\r
-}\r