You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2017/05/09 19:58:10 UTC

[18/50] [abbrv] httpcomponents-core git commit: Added annotation of internal APIs

Added annotation of internal APIs

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk@1792527 13f79535-47bb-0310-9956-ffa450edef68


Project: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/commit/4d7fb34f
Tree: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/tree/4d7fb34f
Diff: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/diff/4d7fb34f

Branch: refs/heads/trunk
Commit: 4d7fb34fb3cfe4c952b51a047112ce85a1ca18de
Parents: af44438
Author: Oleg Kalnichevski <ol...@apache.org>
Authored: Mon Apr 24 18:11:03 2017 +0000
Committer: Oleg Kalnichevski <ol...@apache.org>
Committed: Mon Apr 24 18:11:03 2017 +0000

----------------------------------------------------------------------
 .../apache/hc/core5/annotation/Internal.java    | 43 ++++++++++++++++++++
 1 file changed, 43 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/4d7fb34f/httpcore5/src/main/java/org/apache/hc/core5/annotation/Internal.java
----------------------------------------------------------------------
diff --git a/httpcore5/src/main/java/org/apache/hc/core5/annotation/Internal.java b/httpcore5/src/main/java/org/apache/hc/core5/annotation/Internal.java
new file mode 100644
index 0000000..d212748
--- /dev/null
+++ b/httpcore5/src/main/java/org/apache/hc/core5/annotation/Internal.java
@@ -0,0 +1,43 @@
+/*
+ * ====================================================================
+ * 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
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * 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.
+ * ====================================================================
+ *
+ * This software consists of voluntary contributions made by many
+ * individuals on behalf of the Apache Software Foundation.  For more
+ * information on the Apache Software Foundation, please see
+ * <http://www.apache.org/>.
+ *
+ */
+package org.apache.hc.core5.annotation;
+
+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;
+
+/**
+ * The package, class or method to which this annotation is applied is marked as internal
+ * and its use ought to be avoided.
+ */
+@Documented
+@Target({ElementType.TYPE, ElementType.METHOD, ElementType.CONSTRUCTOR, ElementType.PACKAGE})
+@Retention(RetentionPolicy.CLASS)
+public @interface Internal {
+}