From f4658cc668d33631e853f16dce0eb583d2a17c8d Mon Sep 17 00:00:00 2001 From: NotMyFault Date: Tue, 4 Jan 2022 21:15:45 +0100 Subject: [PATCH] docs: Document a few undocumented annotations --- ...OTATIONS-EXPLAINED.adoc => Annotation-Explanation.adoc | 8 ++++++++ .../regions/plotsquared/FaweDelegateSchematicHandler.java | 4 +--- 2 files changed, 9 insertions(+), 3 deletions(-) rename FAWE-ANNOTATIONS-EXPLAINED.adoc => Annotation-Explanation.adoc (81%) diff --git a/FAWE-ANNOTATIONS-EXPLAINED.adoc b/Annotation-Explanation.adoc similarity index 81% rename from FAWE-ANNOTATIONS-EXPLAINED.adoc rename to Annotation-Explanation.adoc index d398a80a6..100541872 100644 --- a/FAWE-ANNOTATIONS-EXPLAINED.adoc +++ b/Annotation-Explanation.adoc @@ -44,3 +44,11 @@ If that is done, you can find a `package-info.java` file within the package affe */ package com.sk89q.worldedit.world.block; ----------------- + +== Undocumented annotations +Specific changes are not annotated: + +* `com.fastasyncworldedit.core.configuration.Caption` in `com.sk89q.worldedit` packages have been changed from +`com.sk89q.worldedit.util.formatting.text.Text` to allow the usage of color codes for messages. + +* Certain Log4J loggers have been adjusted to use the proper format of placeholders. diff --git a/worldedit-bukkit/src/main/java/com/fastasyncworldedit/bukkit/regions/plotsquared/FaweDelegateSchematicHandler.java b/worldedit-bukkit/src/main/java/com/fastasyncworldedit/bukkit/regions/plotsquared/FaweDelegateSchematicHandler.java index 7ed54786e..2195980c8 100644 --- a/worldedit-bukkit/src/main/java/com/fastasyncworldedit/bukkit/regions/plotsquared/FaweDelegateSchematicHandler.java +++ b/worldedit-bukkit/src/main/java/com/fastasyncworldedit/bukkit/regions/plotsquared/FaweDelegateSchematicHandler.java @@ -235,10 +235,8 @@ public class FaweDelegateSchematicHandler { Clipboard clip = schematicReader.read(); return new Schematic(clip); } catch (IOException e3) { + LOGGER.warn("{} | {} : {}", is, is.getClass().getCanonicalName(), e.getMessage()); e.printStackTrace(); - LOGGER.warn( - is + " | " + is.getClass().getCanonicalName() + " is not in GZIP format : " + e - .getMessage()); } } }