forked from apache/incubator-kie-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LEGAL-691: replace CDDL code by Apache code from tomcat (apache#2799)
- Loading branch information
Showing
3 changed files
with
23 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
94 changes: 23 additions & 71 deletions
94
...on/src/main/java/org/jboss/errai/common/compat/javax/annotation/processing/Generated.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,98 +1,50 @@ | ||
/* | ||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. | ||
* Licensed to the Apache Software Foundation (ASF) under one or more | ||
* contributor license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright ownership. | ||
* The ASF licenses this file to You under the Apache License, Version 2.0 | ||
* (the "License"); you may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at | ||
* | ||
* Copyright (c) 2005-2013 Oracle and/or its affiliates. All rights reserved. | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* The contents of this file are subject to the terms of either the GNU | ||
* General Public License Version 2 only ("GPL") or the Common Development | ||
* and Distribution License("CDDL") (collectively, the "License"). You | ||
* may not use this file except in compliance with the License. You can | ||
* obtain a copy of the License at | ||
* https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html | ||
* or packager/legal/LICENSE.txt. See the License for the specific | ||
* language governing permissions and limitations under the License. | ||
* | ||
* When distributing the software, include this License Header Notice in each | ||
* file and include the License file at packager/legal/LICENSE.txt. | ||
* | ||
* GPL Classpath Exception: | ||
* Oracle designates this particular file as subject to the "Classpath" | ||
* exception as provided by Oracle in the GPL Version 2 section of the License | ||
* file that accompanied this code. | ||
* | ||
* Modifications: | ||
* If applicable, add the following below the License Header, with the fields | ||
* enclosed by brackets [] replaced by your own identifying information: | ||
* "Portions Copyright [year] [name of copyright owner]" | ||
* | ||
* Contributor(s): | ||
* If you wish your version of this file to be governed by only the CDDL or | ||
* only the GPL Version 2, indicate your decision by adding "[Contributor] | ||
* elects to include this software in this distribution under the [CDDL or GPL | ||
* Version 2] license." If you don't indicate a single choice of license, a | ||
* recipient has the option to distribute your version of this file under | ||
* either the CDDL, the GPL Version 2 or to extend the choice of license to | ||
* its licensees as provided above. However, if you add GPL Version 2 code | ||
* and therefore, elected the GPL Version 2 license, then the option applies | ||
* only if the new code is made subject to such option by the copyright | ||
* holder. | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package javax.annotation.processing; | ||
|
||
import java.lang.annotation.Documented; | ||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
import static java.lang.annotation.ElementType.ANNOTATION_TYPE; | ||
import static java.lang.annotation.ElementType.CONSTRUCTOR; | ||
import static java.lang.annotation.ElementType.FIELD; | ||
import static java.lang.annotation.ElementType.LOCAL_VARIABLE; | ||
import static java.lang.annotation.ElementType.METHOD; | ||
import static java.lang.annotation.ElementType.PACKAGE; | ||
import static java.lang.annotation.ElementType.PARAMETER; | ||
import static java.lang.annotation.ElementType.TYPE; | ||
import static java.lang.annotation.RetentionPolicy.SOURCE; | ||
|
||
/** | ||
* The Generated annotation is used to mark source code that has been generated. | ||
* It can also be used to differentiate user written code from generated code | ||
* in a single file. When used, the value element must have the name of the | ||
* code generator. The recommended convention is to use the fully qualified | ||
* name of the code generator in the value field . | ||
* <p>For example: com.company.package.classname. | ||
* The date element is used to indicate the date the source was generated. | ||
* The date element must follow the ISO 8601 standard. For example the date | ||
* element would have the following value 2001-07-04T12:08:56.235-0700 | ||
* which represents 2001-07-04 12:08:56 local time in the U.S. Pacific | ||
* Time time zone.</p> | ||
* <p>The comment element is a place holder for any comments that the code | ||
* generator may want to include in the generated code.</p> | ||
* Used to identify generated code. | ||
* | ||
* @since Common Annotations 1.0 | ||
*/ | ||
|
||
@Documented | ||
@Retention(SOURCE) | ||
@Target({PACKAGE, TYPE, ANNOTATION_TYPE, METHOD, CONSTRUCTOR, FIELD, | ||
LOCAL_VARIABLE, PARAMETER}) | ||
@Target({ ElementType.ANNOTATION_TYPE, ElementType.CONSTRUCTOR, ElementType.FIELD, ElementType.LOCAL_VARIABLE, | ||
ElementType.METHOD, ElementType.PACKAGE, ElementType.PARAMETER, ElementType.TYPE }) | ||
@Retention(RetentionPolicy.SOURCE) | ||
public @interface Generated { | ||
/** | ||
* The value element MUST have the name of the code generator. | ||
* The recommended convention is to use the fully qualified name of the | ||
* code generator. For example: com.acme.generator.CodeGen. | ||
* @return The name of the code generator. It is recommended that the fully qualified name of the code generator is | ||
* used. | ||
*/ | ||
String[] value(); | ||
|
||
/** | ||
* Date when the source was generated. | ||
* @return The date the code was generated | ||
*/ | ||
String date() default ""; | ||
|
||
/** | ||
* A place holder for any comments that the code generator may want to | ||
* include in the generated code. | ||
* @return Additional comments (if any) related to the code generation | ||
*/ | ||
String comments() default ""; | ||
} | ||
|
||
} |