Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix or suppress deprecation warnings in most code #1404

Merged
merged 1 commit into from Jul 1, 2020

Conversation

octylFractal
Copy link
Member

Didn't touch commands or some of Sponge

@octylFractal octylFractal added status:accepted Will be fixed / added to WorldEdit, eventually type:tech-debt Task for cleaning up tech debt that has accumulated in the code base labels Jun 30, 2020
Didn't touch commands or some of Sponge
@octylFractal octylFractal force-pushed the cleanup/remove-many-deprecation-warnings branch from f4aecee to f64a020 Compare June 30, 2020 01:21
@codecov
Copy link

codecov bot commented Jun 30, 2020

Codecov Report

Merging #1404 into master will increase coverage by 0.00%.
The diff coverage is 9.37%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #1404   +/-   ##
=========================================
  Coverage     14.99%   14.99%           
  Complexity     1270     1270           
=========================================
  Files           778      778           
  Lines         33123    33136   +13     
  Branches       3939     3940    +1     
=========================================
+ Hits           4967     4969    +2     
- Misses        27750    27761   +11     
  Partials        406      406           
Impacted Files Coverage Δ Complexity Δ
...java/com/sk89q/worldedit/bukkit/BukkitAdapter.java 0.00% <ø> (ø) 0.00 <0.00> (ø)
.../worldedit/bukkit/BukkitBlockCategoryRegistry.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...89q/worldedit/bukkit/BukkitBlockCommandSender.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...om/sk89q/worldedit/bukkit/BukkitBlockRegistry.java 0.00% <ø> (ø) 0.00 <0.00> (ø)
...om/sk89q/worldedit/bukkit/BukkitCommandSender.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...q/worldedit/bukkit/BukkitItemCategoryRegistry.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
.../java/com/sk89q/worldedit/bukkit/BukkitPlayer.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
.../sk89q/worldedit/bukkit/BukkitServerInterface.java 0.00% <ø> (ø) 0.00 <0.00> (ø)
...va/com/sk89q/worldedit/bukkit/WorldEditPlugin.java 0.00% <ø> (ø) 0.00 <0.00> (ø)
...ava/com/sk89q/worldedit/command/ChunkCommands.java 5.88% <0.00%> (-0.18%) 1.00 <0.00> (ø)
... and 29 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 732c11c...f64a020. Read the comment docs.

@@ -162,11 +162,15 @@ public void deleteChunks(Actor actor, World world, LocalSession session,
throw new StopExecutionException(TextComponent.of("Failed to write chunk list: " + e.getMessage()));
}

actor.print(String.format("%d chunk(s) have been marked for deletion the next time the server starts.",
newBatch.getChunkCount()));
actor.print(TextComponent.of(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was using the deprecation marker for these to indicate it's not translatable yet. Maybe worth making these translatable rather than fixing deprecation by using TextComponent directly

@octylFractal octylFractal added this to the WorldEdit 7.2.0 milestone Jul 1, 2020
@octylFractal octylFractal merged commit 8aa034c into master Jul 1, 2020
@octylFractal octylFractal deleted the cleanup/remove-many-deprecation-warnings branch July 1, 2020 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:accepted Will be fixed / added to WorldEdit, eventually type:tech-debt Task for cleaning up tech debt that has accumulated in the code base
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants