diff --git a/android-jdk6-redkale/lib/asm-5.0.4.jar b/android-jdk6-redkale/lib/asm-5.0.4.jar deleted file mode 100644 index cdb283dd7..000000000 Binary files a/android-jdk6-redkale/lib/asm-5.0.4.jar and /dev/null differ diff --git a/android-jdk6-redkale/src/java/beans/ConstructorProperties.java b/android-jdk6-redkale/src/java/beans/ConstructorProperties.java deleted file mode 100644 index 5ee947c1f..000000000 --- a/android-jdk6-redkale/src/java/beans/ConstructorProperties.java +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Copyright (c) 2006, 2013, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * This code is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License version 2 only, as - * published by the Free Software Foundation. Oracle designates this - * particular file as subject to the "Classpath" exception as provided - * by Oracle in the LICENSE file that accompanied this code. - * - * This code is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - * version 2 for more details (a copy is included in the LICENSE file that - * accompanied this code). - * - * You should have received a copy of the GNU General Public License version - * 2 along with this work; if not, write to the Free Software Foundation, - * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. - * - * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA - * or visit www.oracle.com if you need additional information or have any - * questions. - */ - -package java.beans; - -import java.lang.annotation.*; -import static java.lang.annotation.ElementType.*; -import static java.lang.annotation.RetentionPolicy.*; - -/** -
An annotation on a constructor that shows how the parameters of - that constructor correspond to the constructed object's getter - methods. For example: - -
-
- public class Point {
- @ConstructorProperties({"x", "y"})
- public Point(int x, int y) {
- this.x = x;
- this.y = y;
- }
-
- public int getX() {
- return x;
- }
-
- public int getY() {
- return y;
- }
-
- private final int x, y;
- }
-
-
-
- The annotation shows that the first parameter of the constructor
- can be retrieved with the {@code getX()} method and the second with
- the {@code getY()} method. Since parameter names are not in
- general available at runtime, without the annotation there would be
- no way to know whether the parameters correspond to {@code getX()}
- and {@code getY()} or the other way around.
-
- @since 1.6
-*/
-@Documented @Target(CONSTRUCTOR) @Retention(RUNTIME)
-public @interface ConstructorProperties {
- /**
- The getter names.
- @return the getter names corresponding to the parameters in the - annotated constructor. - */ - String[] value(); -} diff --git a/android-jdk6-redkale/src/java/lang/FunctionalInterface.java b/android-jdk6-redkale/src/java/lang/FunctionalInterface.java deleted file mode 100644 index a93ed51f9..000000000 --- a/android-jdk6-redkale/src/java/lang/FunctionalInterface.java +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * This code is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License version 2 only, as - * published by the Free Software Foundation. Oracle designates this - * particular file as subject to the "Classpath" exception as provided - * by Oracle in the LICENSE file that accompanied this code. - * - * This code is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - * version 2 for more details (a copy is included in the LICENSE file that - * accompanied this code). - * - * You should have received a copy of the GNU General Public License version - * 2 along with this work; if not, write to the Free Software Foundation, - * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. - * - * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA - * or visit www.oracle.com if you need additional information or have any - * questions. - */ - -package java.lang; - -import java.lang.annotation.*; - -/** - * An informative annotation type used to indicate that an interface - * type declaration is intended to be a functional interface as - * defined by the Java Language Specification. - * - * Conceptually, a functional interface has exactly one abstract - * method. Since {@linkplain java.lang.reflect.Method#isDefault() - * default methods} have an implementation, they are not abstract. If - * an interface declares an abstract method overriding one of the - * public methods of {@code java.lang.Object}, that also does - * not count toward the interface's abstract method count - * since any implementation of the interface will have an - * implementation from {@code java.lang.Object} or elsewhere. - * - *Note that instances of functional interfaces can be created with - * lambda expressions, method references, or constructor references. - * - *
If a type is annotated with this annotation type, compilers are - * required to generate an error message unless: - * - *
However, the compiler will treat any interface meeting the - * definition of a functional interface as a functional interface - * regardless of whether or not a {@code FunctionalInterface} - * annotation is present on the interface declaration. - * - * @jls 4.3.2. The Class Object - * @jls 9.8 Functional Interfaces - * @jls 9.4.3 Interface Method Body - * @since 1.8 - */ -@Documented -@Retention(RetentionPolicy.RUNTIME) -@Target(ElementType.TYPE) -public @interface FunctionalInterface {} diff --git a/android-jdk6-redkale/src/java/lang/annotation/Repeatable.java b/android-jdk6-redkale/src/java/lang/annotation/Repeatable.java deleted file mode 100644 index 7a2daa822..000000000 --- a/android-jdk6-redkale/src/java/lang/annotation/Repeatable.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * This code is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License version 2 only, as - * published by the Free Software Foundation. Oracle designates this - * particular file as subject to the "Classpath" exception as provided - * by Oracle in the LICENSE file that accompanied this code. - * - * This code is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - * version 2 for more details (a copy is included in the LICENSE file that - * accompanied this code). - * - * You should have received a copy of the GNU General Public License version - * 2 along with this work; if not, write to the Free Software Foundation, - * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. - * - * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA - * or visit www.oracle.com if you need additional information or have any - * questions. - */ - -package java.lang.annotation; - -/** - * The annotation type {@code java.lang.annotation.Repeatable} is - * used to indicate that the annotation type whose declaration it - * (meta-)annotates is repeatable. The value of - * {@code @Repeatable} indicates the containing annotation - * type for the repeatable annotation type. - * - * @since 1.8 - * @jls 9.6 Annotation Types - * @jls 9.7 Annotations - */ -@Documented -@Retention(RetentionPolicy.RUNTIME) -@Target(ElementType.ANNOTATION_TYPE) -public @interface Repeatable { - /** - * Indicates the containing annotation type for the - * repeatable annotation type. - * @return the containing annotation type - */ - Class extends Annotation> value(); -} diff --git a/android-jdk6-redkale/src/java/nio/channels/CompletionHandler.java b/android-jdk6-redkale/src/java/nio/channels/CompletionHandler.java deleted file mode 100644 index 2574dbfbf..000000000 --- a/android-jdk6-redkale/src/java/nio/channels/CompletionHandler.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (c) 2007, 2009, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * This code is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License version 2 only, as - * published by the Free Software Foundation. Oracle designates this - * particular file as subject to the "Classpath" exception as provided - * by Oracle in the LICENSE file that accompanied this code. - * - * This code is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - * version 2 for more details (a copy is included in the LICENSE file that - * accompanied this code). - * - * You should have received a copy of the GNU General Public License version - * 2 along with this work; if not, write to the Free Software Foundation, - * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. - * - * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA - * or visit www.oracle.com if you need additional information or have any - * questions. - */ - -package java.nio.channels; - -/** - * A handler for consuming the result of an asynchronous I/O operation. - * - *
The asynchronous channels defined in this package allow a completion
- * handler to be specified to consume the result of an asynchronous operation.
- * The {@link #completed completed} method is invoked when the I/O operation
- * completes successfully. The {@link #failed failed} method is invoked if the
- * I/O operations fails. The implementations of these methods should complete
- * in a timely manner so as to avoid keeping the invoking thread from dispatching
- * to other completion handlers.
- *
- * @param This is a functional interface
- * whose functional method is {@link #test(Object, Object)}.
- *
- * @param This is a functional interface
- * whose functional method is {@link #accept(Object)}.
- *
- * @param This is a functional interface
- * whose functional method is {@link #test(Object)}.
- *
- * @param There is no requirement that a new or distinct result be returned each
- * time the supplier is invoked.
- *
- * This is a functional interface
- * whose functional method is {@link #get()}.
- *
- * @param
- *
- * Even though this annotation is not marked Inherited, deployment
- * tools are required to examine all superclasses of any component
- * class to discover all uses of this annotation in all superclasses.
- * All such annotation instances specify resources that are needed
- * by the application component. Note that this annotation may
- * appear on private fields and methods of superclasses; the container
- * is required to perform injection in these cases as well.
- *
- * @since Common Annotations 1.0
- */
-@Target({TYPE, FIELD, METHOD})
-@Retention(RUNTIME)
-public @interface Resource {
- /**
- * The JNDI name of the resource. For field annotations,
- * the default is the field name. For method annotations,
- * the default is the JavaBeans property name corresponding
- * to the method. For class annotations, there is no default
- * and this must be specified.
- */
- String name() default "";
-
- /**
- * The name of the resource that the reference points to. It can
- * link to any compatible resource using the global JNDI names.
- *
- * @since Common Annotations 1.1
- */
-
- String lookup() default "";
-
- /**
- * The Java type of the resource. For field annotations,
- * the default is the type of the field. For method annotations,
- * the default is the type of the JavaBeans property.
- * For class annotations, there is no default and this must be
- * specified.
- */
- Class> type() default java.lang.Object.class;
-
- /**
- * The two possible authentication types for a resource.
- */
- enum AuthenticationType {
- CONTAINER,
- APPLICATION
- }
-
- /**
- * The authentication type to use for this resource.
- * This may be specified for resources representing a
- * connection factory of any supported type, and must
- * not be specified for resources of other types.
- */
- AuthenticationType authenticationType() default AuthenticationType.CONTAINER;
-
- /**
- * Indicates whether this resource can be shared between
- * this component and other components.
- * This may be specified for resources representing a
- * connection factory of any supported type, and must
- * not be specified for resources of other types.
- */
- boolean shareable() default true;
-
- /**
- * A product specific name that this resource should be mapped to.
- * The name of this resource, as defined by the
- *
- * Application servers are not required to support any particular
- * form or type of mapped name, nor the ability to use mapped names.
- * The mapped name is product-dependent and often installation-dependent.
- * No use of a mapped name is portable.
- */
- String mappedName() default "";
-
- /**
- * Description of this resource. The description is expected
- * to be in the default language of the system on which the
- * application is deployed. The description can be presented
- * to the Deployer to help in choosing the correct resource.
- */
- String description() default "";
-}
diff --git a/android-jdk6-redkale/src/org/redkale/convert/AnyEncoder.java b/android-jdk6-redkale/src/org/redkale/convert/AnyEncoder.java
deleted file mode 100644
index c99d155c2..000000000
--- a/android-jdk6-redkale/src/org/redkale/convert/AnyEncoder.java
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
-package org.redkale.convert;
-
-import java.lang.reflect.Type;
-
-/**
- * 对不明类型的对象进行序列化; BSON序列化时将对象的类名写入Writer,JSON则不写入。
- *
- * @see http://www.redkale.org
- * @author zhangjx
- * @param
- * @param skipIgnore
- */
- public final void registerSkipAllIgnore(final boolean skipIgnore) {
- this.skipAllIgnore = skipIgnore;
- }
-
- /**
- * 使该类所有被声明为ConvertColumn.ignore = true 的字段或方法变为ConvertColumn.ignore = false
- *
- * @param type
- */
- public final void registerSkipIgnore(final Class type) {
- skipIgnores.add(type);
- }
-
- public final void register(final Class type, boolean ignore, String... columns) {
- for (String column : columns) {
- register(type, column, new ConvertColumnEntry(column, ignore));
- }
- }
-
- public final boolean register(final Class type, String column, ConvertColumnEntry entry) {
- if (type == null || column == null || entry == null) return false;
- try {
- final Field field = type.getDeclaredField(column);
- String get = "get";
- if (field.getType() == boolean.class || field.getType() == Boolean.class) get = "is";
- char[] cols = column.toCharArray();
- cols[0] = Character.toUpperCase(cols[0]);
- String col2 = new String(cols);
- try {
- register(type.getMethod(get + col2), entry);
- } catch (Exception ex) {
- }
- try {
- register(type.getMethod("set" + col2, field.getType()), entry);
- } catch (Exception ex) {
- }
- return register(field, entry);
- } catch (Exception e) {
- return false;
- }
- }
-
- public final name
- * element or defaulted, is a name that is local to the application
- * component using the resource. (It's a name in the JNDI
- * java:comp/env namespace.) Many application servers
- * provide a way to map these local names to names of resources
- * known to the application server. This mapped name is often a
- * global JNDI name, but may be a name of any form.