Add missing license headers
Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/d69d83e5 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/d69d83e5 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/d69d83e5 Branch: refs/heads/LOG4J2-1431 Commit: d69d83e569b28718faa856f303dfdea5f3d0f20f Parents: 0b37ee7 Author: Ralph Goers <[email protected]> Authored: Thu Aug 24 23:18:15 2017 -0700 Committer: Ralph Goers <[email protected]> Committed: Thu Aug 24 23:18:15 2017 -0700 ---------------------------------------------------------------------- .travis-toolchains.xml | 16 ++++++++++++++++ .../logging/log4j/util/ClassNamePredicate.class | Bin 1153 -> 0 bytes .../logging/log4j/util/ClassPredicate.class | Bin 1230 -> 0 bytes .../logging/log4j/util/StackLocator.class | Bin 809 -> 0 bytes .../logging/log4j/util/StackLocatorUtil.class | Bin 1941 -> 0 bytes .../log4j/util/StackWalkerStackLocator.class | Bin 5503 -> 0 bytes .../logging/log4j/util/ProcessIdUtilTest.java | 16 ++++++++++++++++ .../logging/log4j/util/ProcessIdUtil.java | 19 +++++++++++++++++++ .../log4j/ThreadContextUtilityClass.java | 16 ++++++++++++++++ .../logging/log4j/util/ProcessIdUtilTest.java | 16 ++++++++++++++++ .../mom/activemq/JmsClientTestConfig.java | 16 ++++++++++++++++ .../mom/activemq/JmsClientTestConfigRule.java | 16 ++++++++++++++++ .../config/plugins/convert/Base64Converter.java | 18 +++++++++++++++++- .../config/plugins/convert/HexConverter.java | 18 ++++++++++++++++++ .../log4j/core/appender/HttpAppenderTest.java | 16 ++++++++++++++++ .../log4j/core/util/CyclicBufferTest.java | 16 ++++++++++++++++ 16 files changed, 182 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/d69d83e5/.travis-toolchains.xml ---------------------------------------------------------------------- diff --git a/.travis-toolchains.xml b/.travis-toolchains.xml index 3f72e01..f170223 100644 --- a/.travis-toolchains.xml +++ b/.travis-toolchains.xml @@ -1,4 +1,20 @@ <?xml version="1.0" encoding="UTF8"?> +<!-- + ~ 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. + --> <toolchains xmlns="http://maven.apache.org/TOOLCHAINS/1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/TOOLCHAINS/1.1.0 http://maven.apache.org/xsd/toolchains-1.1.0.xsd"> <toolchain> http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/d69d83e5/log4j-api-java9/META-INF/versions/9/org/apache/logging/log4j/util/ClassNamePredicate.class ---------------------------------------------------------------------- diff --git a/log4j-api-java9/META-INF/versions/9/org/apache/logging/log4j/util/ClassNamePredicate.class b/log4j-api-java9/META-INF/versions/9/org/apache/logging/log4j/util/ClassNamePredicate.class deleted file mode 100644 index 44d47fb..0000000 Binary files a/log4j-api-java9/META-INF/versions/9/org/apache/logging/log4j/util/ClassNamePredicate.class and /dev/null differ http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/d69d83e5/log4j-api-java9/META-INF/versions/9/org/apache/logging/log4j/util/ClassPredicate.class ---------------------------------------------------------------------- diff --git a/log4j-api-java9/META-INF/versions/9/org/apache/logging/log4j/util/ClassPredicate.class b/log4j-api-java9/META-INF/versions/9/org/apache/logging/log4j/util/ClassPredicate.class deleted file mode 100644 index c59981d..0000000 Binary files a/log4j-api-java9/META-INF/versions/9/org/apache/logging/log4j/util/ClassPredicate.class and /dev/null differ http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/d69d83e5/log4j-api-java9/META-INF/versions/9/org/apache/logging/log4j/util/StackLocator.class ---------------------------------------------------------------------- diff --git a/log4j-api-java9/META-INF/versions/9/org/apache/logging/log4j/util/StackLocator.class b/log4j-api-java9/META-INF/versions/9/org/apache/logging/log4j/util/StackLocator.class deleted file mode 100644 index a6d9761..0000000 Binary files a/log4j-api-java9/META-INF/versions/9/org/apache/logging/log4j/util/StackLocator.class and /dev/null differ http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/d69d83e5/log4j-api-java9/META-INF/versions/9/org/apache/logging/log4j/util/StackLocatorUtil.class ---------------------------------------------------------------------- diff --git a/log4j-api-java9/META-INF/versions/9/org/apache/logging/log4j/util/StackLocatorUtil.class b/log4j-api-java9/META-INF/versions/9/org/apache/logging/log4j/util/StackLocatorUtil.class deleted file mode 100644 index 3058059..0000000 Binary files a/log4j-api-java9/META-INF/versions/9/org/apache/logging/log4j/util/StackLocatorUtil.class and /dev/null differ http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/d69d83e5/log4j-api-java9/META-INF/versions/9/org/apache/logging/log4j/util/StackWalkerStackLocator.class ---------------------------------------------------------------------- diff --git a/log4j-api-java9/META-INF/versions/9/org/apache/logging/log4j/util/StackWalkerStackLocator.class b/log4j-api-java9/META-INF/versions/9/org/apache/logging/log4j/util/StackWalkerStackLocator.class deleted file mode 100644 index 5cf29d1..0000000 Binary files a/log4j-api-java9/META-INF/versions/9/org/apache/logging/log4j/util/StackWalkerStackLocator.class and /dev/null differ http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/d69d83e5/log4j-api-java9/src/test/java/org/apache/logging/log4j/util/ProcessIdUtilTest.java ---------------------------------------------------------------------- diff --git a/log4j-api-java9/src/test/java/org/apache/logging/log4j/util/ProcessIdUtilTest.java b/log4j-api-java9/src/test/java/org/apache/logging/log4j/util/ProcessIdUtilTest.java index 8a381d9..6b5368f 100644 --- a/log4j-api-java9/src/test/java/org/apache/logging/log4j/util/ProcessIdUtilTest.java +++ b/log4j-api-java9/src/test/java/org/apache/logging/log4j/util/ProcessIdUtilTest.java @@ -1,3 +1,19 @@ +/* + * 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. + */ package org.apache.logging.log4j.util; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/d69d83e5/log4j-api/src/main/java/org/apache/logging/log4j/util/ProcessIdUtil.java ---------------------------------------------------------------------- diff --git a/log4j-api/src/main/java/org/apache/logging/log4j/util/ProcessIdUtil.java b/log4j-api/src/main/java/org/apache/logging/log4j/util/ProcessIdUtil.java index f9bf342..bce9415 100644 --- a/log4j-api/src/main/java/org/apache/logging/log4j/util/ProcessIdUtil.java +++ b/log4j-api/src/main/java/org/apache/logging/log4j/util/ProcessIdUtil.java @@ -1,9 +1,28 @@ +/* + * 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. + */ package org.apache.logging.log4j.util; import java.io.File; import java.io.IOException; import java.lang.management.ManagementFactory; +/** + * @Since 2.9 + */ public class ProcessIdUtil { public static final String DEFAULT_PROCESSID = "-"; http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/d69d83e5/log4j-api/src/test/java/org/apache/logging/log4j/ThreadContextUtilityClass.java ---------------------------------------------------------------------- diff --git a/log4j-api/src/test/java/org/apache/logging/log4j/ThreadContextUtilityClass.java b/log4j-api/src/test/java/org/apache/logging/log4j/ThreadContextUtilityClass.java index 69c87b9..c6e1826 100644 --- a/log4j-api/src/test/java/org/apache/logging/log4j/ThreadContextUtilityClass.java +++ b/log4j-api/src/test/java/org/apache/logging/log4j/ThreadContextUtilityClass.java @@ -1,3 +1,19 @@ +/* + * 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. + */ package org.apache.logging.log4j; import java.util.Map; http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/d69d83e5/log4j-api/src/test/java/org/apache/logging/log4j/util/ProcessIdUtilTest.java ---------------------------------------------------------------------- diff --git a/log4j-api/src/test/java/org/apache/logging/log4j/util/ProcessIdUtilTest.java b/log4j-api/src/test/java/org/apache/logging/log4j/util/ProcessIdUtilTest.java index 5ce161d..13aaf9c 100644 --- a/log4j-api/src/test/java/org/apache/logging/log4j/util/ProcessIdUtilTest.java +++ b/log4j-api/src/test/java/org/apache/logging/log4j/util/ProcessIdUtilTest.java @@ -1,3 +1,19 @@ +/* + * 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. + */ package org.apache.logging.log4j.util; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/d69d83e5/log4j-core-its/src/test/java/org/apache/logging/log4j/core/appender/mom/activemq/JmsClientTestConfig.java ---------------------------------------------------------------------- diff --git a/log4j-core-its/src/test/java/org/apache/logging/log4j/core/appender/mom/activemq/JmsClientTestConfig.java b/log4j-core-its/src/test/java/org/apache/logging/log4j/core/appender/mom/activemq/JmsClientTestConfig.java index 160d65e..26c57ed 100644 --- a/log4j-core-its/src/test/java/org/apache/logging/log4j/core/appender/mom/activemq/JmsClientTestConfig.java +++ b/log4j-core-its/src/test/java/org/apache/logging/log4j/core/appender/mom/activemq/JmsClientTestConfig.java @@ -1,3 +1,19 @@ +/* + * 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. + */ package org.apache.logging.log4j.core.appender.mom.activemq; import java.util.Properties; http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/d69d83e5/log4j-core-its/src/test/java/org/apache/logging/log4j/core/appender/mom/activemq/JmsClientTestConfigRule.java ---------------------------------------------------------------------- diff --git a/log4j-core-its/src/test/java/org/apache/logging/log4j/core/appender/mom/activemq/JmsClientTestConfigRule.java b/log4j-core-its/src/test/java/org/apache/logging/log4j/core/appender/mom/activemq/JmsClientTestConfigRule.java index 90fd5e2..b68403b 100644 --- a/log4j-core-its/src/test/java/org/apache/logging/log4j/core/appender/mom/activemq/JmsClientTestConfigRule.java +++ b/log4j-core-its/src/test/java/org/apache/logging/log4j/core/appender/mom/activemq/JmsClientTestConfigRule.java @@ -1,3 +1,19 @@ +/* + * 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. + */ package org.apache.logging.log4j.core.appender.mom.activemq; import org.apache.logging.log4j.server.mom.activemq.ActiveMqBrokerServiceRule; http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/d69d83e5/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/convert/Base64Converter.java ---------------------------------------------------------------------- diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/convert/Base64Converter.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/convert/Base64Converter.java index c77797c..b4387b6 100644 --- a/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/convert/Base64Converter.java +++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/convert/Base64Converter.java @@ -1,3 +1,19 @@ +/* + * 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. + */ package org.apache.logging.log4j.core.config.plugins.convert; import java.lang.reflect.InvocationTargetException; @@ -8,7 +24,7 @@ import org.apache.logging.log4j.status.StatusLogger; import org.apache.logging.log4j.util.LoaderUtil; /** - * + * @Since 2.9 */ public class Base64Converter { http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/d69d83e5/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/convert/HexConverter.java ---------------------------------------------------------------------- diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/convert/HexConverter.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/convert/HexConverter.java index 63dc294..e629657 100644 --- a/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/convert/HexConverter.java +++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/convert/HexConverter.java @@ -1,8 +1,26 @@ +/* + * 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. + */ package org.apache.logging.log4j.core.config.plugins.convert; /** * Converts Strings to hex. This is used in place of java.xml.bind.DataTypeConverter which is not available by * default in Java 9. + * + * @Since 2.9 */ public class HexConverter { http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/d69d83e5/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/HttpAppenderTest.java ---------------------------------------------------------------------- diff --git a/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/HttpAppenderTest.java b/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/HttpAppenderTest.java index 1e18f6c..f51172e 100644 --- a/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/HttpAppenderTest.java +++ b/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/HttpAppenderTest.java @@ -1,3 +1,19 @@ +/* + * 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. + */ package org.apache.logging.log4j.core.appender; import static com.github.tomakehurst.wiremock.client.WireMock.aResponse; http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/d69d83e5/log4j-core/src/test/java/org/apache/logging/log4j/core/util/CyclicBufferTest.java ---------------------------------------------------------------------- diff --git a/log4j-core/src/test/java/org/apache/logging/log4j/core/util/CyclicBufferTest.java b/log4j-core/src/test/java/org/apache/logging/log4j/core/util/CyclicBufferTest.java index e4e1972..91f183a 100644 --- a/log4j-core/src/test/java/org/apache/logging/log4j/core/util/CyclicBufferTest.java +++ b/log4j-core/src/test/java/org/apache/logging/log4j/core/util/CyclicBufferTest.java @@ -1,3 +1,19 @@ +/* + * 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. + */ package org.apache.logging.log4j.core.util; import static org.junit.Assert.assertArrayEquals;
