From: Markus Koschany <apo@debian.org>
Date: Fri, 4 May 2018 21:25:19 +0200
Subject: java10

com.sun.tools.doclets is gone.
---
 util/src/main/DocTaglet.java           | 82 ----------------------------------
 util/src/main/DochubTaglet.java        | 42 -----------------
 util/src/main/ManualTaglet.java        | 42 -----------------
 util/src/main/ServerReleaseTaglet.java | 42 -----------------
 4 files changed, 208 deletions(-)
 delete mode 100644 util/src/main/DocTaglet.java
 delete mode 100644 util/src/main/DochubTaglet.java
 delete mode 100644 util/src/main/ManualTaglet.java
 delete mode 100644 util/src/main/ServerReleaseTaglet.java

diff --git a/util/src/main/DocTaglet.java b/util/src/main/DocTaglet.java
deleted file mode 100644
index a2ec739..0000000
--- a/util/src/main/DocTaglet.java
+++ /dev/null
@@ -1,82 +0,0 @@
-/*
- * Copyright (c) 2008-2014 MongoDB, Inc.
- *
- * Licensed 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.
- */
-
-import com.sun.javadoc.Tag;
-import com.sun.tools.doclets.Taglet;
-
-public abstract class DocTaglet implements Taglet {
-
-    public boolean inConstructor() {
-        return true;
-    }
-
-    public boolean inField() {
-        return true;
-    }
-
-    public boolean inMethod() {
-        return true;
-    }
-
-    public boolean inOverview() {
-        return true;
-    }
-
-    public boolean inPackage() {
-        return true;
-    }
-
-    public boolean inType() {
-        return true;
-    }
-
-    public boolean isInlineTag() {
-        return false;
-    }
-
-    public String toString(final Tag[] tags) {
-        if (tags.length == 0) {
-            return null;
-        }
-
-        StringBuilder buf = new StringBuilder(String.format("\n<dl><dt><span class=\"strong\">%s</span></dt>\n", getHeader()));
-        for (Tag t : tags) {
-            buf.append("   <dd>").append(genLink(t.text())).append("</dd>\n");
-        }
-        return buf.toString();
-    }
-
-    protected abstract String getHeader();
-
-    public String toString(final Tag tag) {
-        return toString(new Tag[]{tag});
-    }
-
-    protected String genLink(final String text) {
-        String relativePath = text;
-        String display = text;
-
-        int firstSpace = text.indexOf(' ');
-        if (firstSpace != -1) {
-            relativePath = text.substring(0, firstSpace);
-            display = text.substring(firstSpace, text.length()).trim();
-        }
-
-        return String.format("<a href='%s%s'>%s</a>", getBaseDocURI(), relativePath, display);
-    }
-
-    protected abstract String getBaseDocURI();
-}
diff --git a/util/src/main/DochubTaglet.java b/util/src/main/DochubTaglet.java
deleted file mode 100644
index 06979d7..0000000
--- a/util/src/main/DochubTaglet.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright 2017 MongoDB, Inc.
- *
- * Licensed 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.
- */
-
-import com.sun.tools.doclets.Taglet;
-
-import java.util.Map;
-
-public class DochubTaglet extends DocTaglet {
-
-    public static void register(final Map<String, Taglet> tagletMap) {
-        DochubTaglet t = new DochubTaglet();
-        tagletMap.put(t.getName(), t);
-    }
-
-    public String getName() {
-        return "mongodb.driver.dochub";
-    }
-
-    @Override
-    protected String getHeader() {
-        return "MongoDB documentation";
-    }
-
-    @Override
-    protected String getBaseDocURI() {
-        return "http://dochub.mongodb.org/";
-    }
-
-}
diff --git a/util/src/main/ManualTaglet.java b/util/src/main/ManualTaglet.java
deleted file mode 100644
index 228f0d5..0000000
--- a/util/src/main/ManualTaglet.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright (c) 2008-2014 MongoDB, Inc.
- *
- * Licensed 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.
- */
-
-import com.sun.tools.doclets.Taglet;
-
-import java.util.Map;
-
-public class ManualTaglet extends DocTaglet {
-
-    public static void register(final Map<String, Taglet> tagletMap) {
-        ManualTaglet t = new ManualTaglet();
-        tagletMap.put(t.getName(), t);
-    }
-
-    public String getName() {
-        return "mongodb.driver.manual";
-    }
-
-    @Override
-    protected String getHeader() {
-        return "MongoDB documentation";
-    }
-
-    @Override
-    protected String getBaseDocURI() {
-        return "http://docs.mongodb.org/manual/";
-    }
-
-}
diff --git a/util/src/main/ServerReleaseTaglet.java b/util/src/main/ServerReleaseTaglet.java
deleted file mode 100644
index b6e2bfa..0000000
--- a/util/src/main/ServerReleaseTaglet.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright (c) 2008-2014 MongoDB, Inc.
- *
- * Licensed 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.
- */
-
-import com.sun.tools.doclets.Taglet;
-
-import java.util.Map;
-
-public class ServerReleaseTaglet extends DocTaglet {
-
-    public static void register(final Map<String, Taglet> tagletMap) {
-        Taglet t = new ServerReleaseTaglet();
-        tagletMap.put(t.getName(), t);
-    }
-
-    @Override
-    public String getName() {
-        return "mongodb.server.release";
-    }
-
-    @Override
-    protected String getBaseDocURI() {
-        return "http://docs.mongodb.org/manual/release-notes/";
-    }
-
-    @Override
-    protected String getHeader() {
-        return "Since server release";
-    }
-}
