You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tika.apache.org by ta...@apache.org on 2021/03/24 14:07:30 UTC

[tika] branch branch_1x updated: fix rat and imports for 1.26 release

This is an automated email from the ASF dual-hosted git repository.

tallison pushed a commit to branch branch_1x
in repository https://gitbox.apache.org/repos/asf/tika.git


The following commit(s) were added to refs/heads/branch_1x by this push:
     new 1842758  fix rat and imports for 1.26 release
1842758 is described below

commit 1842758b1930f7a682473792dcdc813b9d9920ab
Author: tallison <ta...@apache.org>
AuthorDate: Wed Mar 24 10:06:24 2021 -0400

    fix rat and imports for 1.26 release
---
 .../main/java/org/apache/tika/server/TikaServerCli.java  | 14 ++++++++++++--
 .../apache/tika/server/mbean/ServerStatusExporter.java   | 16 ++++++++++++++++
 .../tika/server/mbean/ServerStatusExporterMBean.java     | 16 ++++++++++++++++
 3 files changed, 44 insertions(+), 2 deletions(-)

diff --git a/tika-server/src/main/java/org/apache/tika/server/TikaServerCli.java b/tika-server/src/main/java/org/apache/tika/server/TikaServerCli.java
index 2430800..5b88a66 100644
--- a/tika-server/src/main/java/org/apache/tika/server/TikaServerCli.java
+++ b/tika-server/src/main/java/org/apache/tika/server/TikaServerCli.java
@@ -21,7 +21,18 @@ import java.io.ByteArrayInputStream;
 import java.io.InputStream;
 import java.lang.management.ManagementFactory;
 import java.nio.file.Paths;
-import java.util.*;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Locale;
+import java.util.Set;
+import java.util.UUID;
+
+
+import javax.management.MBeanServer;
+import javax.management.ObjectName;
 
 import org.apache.commons.cli.CommandLine;
 import org.apache.commons.cli.CommandLineParser;
@@ -66,7 +77,6 @@ import org.apache.tika.server.writer.ZipWriter;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-import javax.management.*;
 
 public class TikaServerCli {
 
diff --git a/tika-server/src/main/java/org/apache/tika/server/mbean/ServerStatusExporter.java b/tika-server/src/main/java/org/apache/tika/server/mbean/ServerStatusExporter.java
index cdebb34..00fd33b 100644
--- a/tika-server/src/main/java/org/apache/tika/server/mbean/ServerStatusExporter.java
+++ b/tika-server/src/main/java/org/apache/tika/server/mbean/ServerStatusExporter.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.tika.server.mbean;
 
 import org.apache.tika.server.ServerStatus;
diff --git a/tika-server/src/main/java/org/apache/tika/server/mbean/ServerStatusExporterMBean.java b/tika-server/src/main/java/org/apache/tika/server/mbean/ServerStatusExporterMBean.java
index ca78f91..5473b42 100644
--- a/tika-server/src/main/java/org/apache/tika/server/mbean/ServerStatusExporterMBean.java
+++ b/tika-server/src/main/java/org/apache/tika/server/mbean/ServerStatusExporterMBean.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.tika.server.mbean;
 
 /**