From 9186616e5e42df155474a9dd0bec1cc6ae556bea Mon Sep 17 00:00:00 2001 From: XSpielinbox <55600187+XSpielinbox@users.noreply.github.com> Date: Sat, 27 Apr 2024 11:44:18 +0200 Subject: [PATCH] Fix warnings part 1 (#30) * Remove unused, deprecated isSupportsSelection() Signed-off-by: XSpielinbox <55600187+xspielinbox@users.noreply.github.com> * Remove broken config to disable doclint Signed-off-by: XSpielinbox <55600187+xspielinbox@users.noreply.github.com> * Switch to HTTPS in license URl Signed-off-by: XSpielinbox <55600187+xspielinbox@users.noreply.github.com> --------- Signed-off-by: XSpielinbox <55600187+xspielinbox@users.noreply.github.com> --- LICENSE | 2 +- LICENSE-LGPL-3.txt | 4 ++-- README.md | 2 +- obsolete-archive/doc/guide/users-guide-r7.xil | 2 +- obsolete-archive/doc/guide/users-guide-r8.xil | 2 +- obsolete-archive/www/demos.html | 2 +- obsolete-archive/www/faq.html | 2 +- obsolete-archive/www/feature-list.html | 2 +- obsolete-archive/www/header.xilinc | 2 +- obsolete-archive/www/index.html | 2 +- obsolete-archive/www/news.html | 2 +- obsolete-archive/www/references.html | 2 +- obsolete-archive/www/screenshots.html | 2 +- obsolete-archive/www/thanks.html | 2 +- .../java/com/openhtmltopdf/extend/OutputDevice.java | 3 --- .../com/openhtmltopdf/java2d/Java2DOutputDevice.java | 6 ------ .../pdfboxout/PdfBoxFastOutputDevice.java | 5 ----- .../openhtmltopdf/pdfboxout/PdfBoxOutputDevice.java | 3 --- pom.xml | 12 +----------- 19 files changed, 16 insertions(+), 43 deletions(-) diff --git a/LICENSE b/LICENSE index 4f4c6ce11..9ea960ec2 100644 --- a/LICENSE +++ b/LICENSE @@ -8,7 +8,7 @@ of the GNU Lesser General Public License as published by the Free Software Foundation, either version 2.1 of the License, or (at your option) any later version. A copy of the LGPL can be found on the website of the Free Software Foundation, at -http://www.gnu.org/copyleft/lesser.html, and in our distributions under +https://www.gnu.org/copyleft/lesser.html, and in our distributions under LICENSE-LGPL-2.1.txt or LICENSE-LGPL-3.txt. OPEN HTML TO PDF relies on several other free or open source projects in diff --git a/LICENSE-LGPL-3.txt b/LICENSE-LGPL-3.txt index 02bbb60bc..0a041280b 100644 --- a/LICENSE-LGPL-3.txt +++ b/LICENSE-LGPL-3.txt @@ -1,7 +1,7 @@ GNU LESSER GENERAL PUBLIC LICENSE Version 3, 29 June 2007 - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. @@ -162,4 +162,4 @@ General Public License ever published by the Free Software Foundation. whether future versions of the GNU Lesser General Public License shall apply, that proxy's public statement of acceptance of any version is permanent authorization for you to choose that version for the -Library. \ No newline at end of file +Library. diff --git a/README.md b/README.md index cc4c6f9cf..7a8e9c0be 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ to get good results. Avoid floats near page breaks and use table layouts. ## LICENSE Open HTML to PDF is distributed under the LGPL. Open HTML to PDF itself is licensed under the GNU Lesser General Public License, version 2.1 or later, available at -http://www.gnu.org/copyleft/lesser.html. You can use Open HTML to PDF in any +https://www.gnu.org/copyleft/lesser.html. You can use Open HTML to PDF in any way and for any purpose you want as long as you respect the terms of the license. A copy of the LGPL license is included as license-lgpl-2.1.txt or license-lgpl-3.txt in our distributions and in our source tree. diff --git a/obsolete-archive/doc/guide/users-guide-r7.xil b/obsolete-archive/doc/guide/users-guide-r7.xil index 68c827534..9e908f324 100644 --- a/obsolete-archive/doc/guide/users-guide-r7.xil +++ b/obsolete-archive/doc/guide/users-guide-r7.xil @@ -117,7 +117,7 @@ h3(fs_heading). License and Dependencies -Flying Saucer itself is licensed under the "GNU Lesser General Public License":http://www.gnu.org/copyleft/lesser.html. You can use Flying Saucer in any way you want as long as you respect the terms of the license. A copy of the LGPL is provided under LGPL.txt in our distribution. +Flying Saucer itself is licensed under the "GNU Lesser General Public License":https://www.gnu.org/copyleft/lesser.html. You can use Flying Saucer in any way you want as long as you respect the terms of the license. A copy of the LGPL is provided under LGPL.txt in our distribution. Flying Saucer uses a couple of FOSS packages to get the job done. A list of these, along with the license they each have, is listed in the LICENSE file in our distribution. diff --git a/obsolete-archive/doc/guide/users-guide-r8.xil b/obsolete-archive/doc/guide/users-guide-r8.xil index 82a69215f..8039e4965 100644 --- a/obsolete-archive/doc/guide/users-guide-r8.xil +++ b/obsolete-archive/doc/guide/users-guide-r8.xil @@ -118,7 +118,7 @@ h3(fs_heading). License and Dependencies -${fs} itself is licensed under the "GNU Lesser General Public License":http://www.gnu.org/copyleft/lesser.html. You can use ${fs} in any way you want as long as you respect the terms of the license. A copy of the LGPL is provided under LGPL.txt in our distribution. +${fs} itself is licensed under the "GNU Lesser General Public License":https://www.gnu.org/copyleft/lesser.html. You can use ${fs} in any way you want as long as you respect the terms of the license. A copy of the LGPL is provided under LGPL.txt in our distribution. ${fs} uses a couple of FOSS packages to get the job done. A list of these, along with the license they each have, is listed in the LICENSE file in our distribution. diff --git a/obsolete-archive/www/demos.html b/obsolete-archive/www/demos.html index f7c431877..dac2cf088 100755 --- a/obsolete-archive/www/demos.html +++ b/obsolete-archive/www/demos.html @@ -31,7 +31,7 @@
  • Javadoc – Basic
  • Javadoc – Full
  • References
  • -
  • License
  • +
  • License
  • Contribute diff --git a/obsolete-archive/www/faq.html b/obsolete-archive/www/faq.html index 3491a2c8c..1211605f2 100755 --- a/obsolete-archive/www/faq.html +++ b/obsolete-archive/www/faq.html @@ -31,7 +31,7 @@
  • Javadoc – Basic
  • Javadoc – Full
  • References
  • -
  • License
  • +
  • License
  • Contribute diff --git a/obsolete-archive/www/feature-list.html b/obsolete-archive/www/feature-list.html index aae84d4a5..4dfa8c17f 100644 --- a/obsolete-archive/www/feature-list.html +++ b/obsolete-archive/www/feature-list.html @@ -31,7 +31,7 @@
  • Javadoc – Basic
  • Javadoc – Full
  • References
  • -
  • License
  • +
  • License
  • Contribute diff --git a/obsolete-archive/www/header.xilinc b/obsolete-archive/www/header.xilinc index 1d693eb26..53fabb6ee 100644 --- a/obsolete-archive/www/header.xilinc +++ b/obsolete-archive/www/header.xilinc @@ -52,7 +52,7 @@ divStart(#menu). ** "Javadoc - Basic":http://pigeonholdings.com/projects/flyingsaucer/R8/javadoc/user/index.html ** "Javadoc - Full":http://pigeonholdings.com/projects/flyingsaucer/R8/javadoc/full/index.html ** "References":/references.html -** "License (LGPL)":http://www.gnu.org/copyleft/lesser.html +** "License (LGPL)":https://www.gnu.org/copyleft/lesser.html * Contribute ** "Mail: User's List":https://xhtmlrenderer.dev.java.net/servlets/ProjectMailingListList ** "Mail: Dev List":https://xhtmlrenderer.dev.java.net/servlets/ProjectMailingListList diff --git a/obsolete-archive/www/index.html b/obsolete-archive/www/index.html index f1004d3e5..db4e590ed 100644 --- a/obsolete-archive/www/index.html +++ b/obsolete-archive/www/index.html @@ -31,7 +31,7 @@
  • Javadoc – Basic
  • Javadoc – Full
  • References
  • -
  • License
  • +
  • License
  • Contribute diff --git a/obsolete-archive/www/news.html b/obsolete-archive/www/news.html index ff5846445..afc5c0f81 100644 --- a/obsolete-archive/www/news.html +++ b/obsolete-archive/www/news.html @@ -31,7 +31,7 @@
  • Javadoc – Basic
  • Javadoc – Full
  • References
  • -
  • License
  • +
  • License
  • Contribute diff --git a/obsolete-archive/www/references.html b/obsolete-archive/www/references.html index 9fe9086c0..25bed3ce7 100755 --- a/obsolete-archive/www/references.html +++ b/obsolete-archive/www/references.html @@ -31,7 +31,7 @@
  • Javadoc – Basic
  • Javadoc – Full
  • References
  • -
  • License
  • +
  • License
  • Contribute diff --git a/obsolete-archive/www/screenshots.html b/obsolete-archive/www/screenshots.html index c4d66b9dd..9f1d6599f 100755 --- a/obsolete-archive/www/screenshots.html +++ b/obsolete-archive/www/screenshots.html @@ -31,7 +31,7 @@
  • Javadoc – Basic
  • Javadoc – Full
  • References
  • -
  • License
  • +
  • License
  • Contribute diff --git a/obsolete-archive/www/thanks.html b/obsolete-archive/www/thanks.html index e7ca2b615..01c0ee89f 100644 --- a/obsolete-archive/www/thanks.html +++ b/obsolete-archive/www/thanks.html @@ -32,7 +32,7 @@
  • Javadoc – Basic
  • Javadoc – Full
  • References
  • -
  • License
  • +
  • License
  • Contribute diff --git a/openhtmltopdf-core/src/main/java/com/openhtmltopdf/extend/OutputDevice.java b/openhtmltopdf-core/src/main/java/com/openhtmltopdf/extend/OutputDevice.java index cf439666a..1f88de569 100644 --- a/openhtmltopdf-core/src/main/java/com/openhtmltopdf/extend/OutputDevice.java +++ b/openhtmltopdf-core/src/main/java/com/openhtmltopdf/extend/OutputDevice.java @@ -87,9 +87,6 @@ default public void drawLinearGradient(FSLinearGradient backgroundLinearGradient public Object getRenderingHint(Key key); public void setRenderingHint(Key key, Object value); - @Deprecated - public boolean isSupportsSelection(); - public boolean isSupportsCMYKColors(); /** diff --git a/openhtmltopdf-java2d/src/main/java/com/openhtmltopdf/java2d/Java2DOutputDevice.java b/openhtmltopdf-java2d/src/main/java/com/openhtmltopdf/java2d/Java2DOutputDevice.java index d75ca5734..19633441a 100644 --- a/openhtmltopdf-java2d/src/main/java/com/openhtmltopdf/java2d/Java2DOutputDevice.java +++ b/openhtmltopdf-java2d/src/main/java/com/openhtmltopdf/java2d/Java2DOutputDevice.java @@ -177,12 +177,6 @@ public void drawImage(FSImage image, int x, int y, boolean interpolate) { _graphics.setRenderingHint(RenderingHints.KEY_INTERPOLATION, oldInterpolation); } - @Deprecated - @Override - public boolean isSupportsSelection() { - return false; - } - @Override public boolean isSupportsCMYKColors() { return false; diff --git a/openhtmltopdf-pdfbox/src/main/java/com/openhtmltopdf/pdfboxout/PdfBoxFastOutputDevice.java b/openhtmltopdf-pdfbox/src/main/java/com/openhtmltopdf/pdfboxout/PdfBoxFastOutputDevice.java index 61f144704..5b94cc87d 100644 --- a/openhtmltopdf-pdfbox/src/main/java/com/openhtmltopdf/pdfboxout/PdfBoxFastOutputDevice.java +++ b/openhtmltopdf-pdfbox/src/main/java/com/openhtmltopdf/pdfboxout/PdfBoxFastOutputDevice.java @@ -1053,11 +1053,6 @@ public void drawSelection(RenderingContext c, InlineText inlineText) { throw new UnsupportedOperationException(); } - @Override - public boolean isSupportsSelection() { - return false; - } - @Override public boolean isSupportsCMYKColors() { return true; diff --git a/openhtmltopdf-pdfbox/src/main/java/com/openhtmltopdf/pdfboxout/PdfBoxOutputDevice.java b/openhtmltopdf-pdfbox/src/main/java/com/openhtmltopdf/pdfboxout/PdfBoxOutputDevice.java index f6e8e5352..34cd2e98d 100644 --- a/openhtmltopdf-pdfbox/src/main/java/com/openhtmltopdf/pdfboxout/PdfBoxOutputDevice.java +++ b/openhtmltopdf-pdfbox/src/main/java/com/openhtmltopdf/pdfboxout/PdfBoxOutputDevice.java @@ -180,9 +180,6 @@ void drawStringFast(String s, float x, float y, JustificationInfo info, @Override void drawSelection(RenderingContext c, InlineText inlineText); - @Override - boolean isSupportsSelection(); - @Override boolean isSupportsCMYKColors(); diff --git a/pom.xml b/pom.xml index d64d2e3f4..5d367f72f 100644 --- a/pom.xml +++ b/pom.xml @@ -17,7 +17,7 @@ GNU Lesser General Public License (LGPL), version 2.1 or later - http://www.gnu.org/licenses/lgpl.html + https://www.gnu.org/licenses/lgpl.html @@ -110,15 +110,6 @@ - - doclint-java8-disable - - [1.8,) - - - -Xdoclint:none - - release @@ -255,7 +246,6 @@ 8 none - ${javadoc.opts}