File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed
java/org/hydev/mcpm/client/display/presenters Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -83,10 +83,6 @@ dependencies {
83
83
// https://mvnrepository.com/artifact/org.apache.commons/commons-lang3
84
84
implementation ' org.apache.commons:commons-lang3:3.12.0'
85
85
86
- // CSV Parser
87
- // https://mvnrepository.com/artifact/com.opencsv/opencsv/5.7.1
88
- implementation ' com.opencsv:opencsv:5.7.1'
89
-
90
86
// ZSTD Compression
91
87
// https://mvnrepository.com/artifact/com.github.luben/zstd-jni
92
88
implementation ' com.github.luben:zstd-jni:1.5.2-5'
Original file line number Diff line number Diff line change 1
1
package org .hydev .mcpm .client .display .presenters ;
2
2
3
3
import org .apache .commons .lang3 .StringUtils ;
4
- import org .apache .commons .text .WordUtils ;
4
+ import org .apache .commons .lang3 . text .WordUtils ;
5
5
import org .hydev .mcpm .client .commands .presenters .InfoPresenter ;
6
6
import org .hydev .mcpm .client .models .PluginYml ;
7
7
import org .hydev .mcpm .utils .ColorLogger ;
@@ -25,11 +25,15 @@ public class KVInfoPresenter implements InfoPresenter
25
25
26
26
/**
27
27
* Format a kv pair if value isn't null, return empty string if value is null
28
+ * <p>
29
+ * Deprecation warnings are suppressed because we don't want to import Apache Commons Text just for wrapping words
30
+ * when Apache Commons Lang3 already provides the WorldUtils (through deprecated).
28
31
*
29
32
* @param key Key
30
33
* @param rawValue Value
31
34
* @return Formatted pair
32
35
*/
36
+ @ SuppressWarnings ("deprecation" )
33
37
private static String formatPair (String key , @ Nullable Object rawValue )
34
38
{
35
39
if (rawValue == null ) return "" ;
Original file line number Diff line number Diff line change @@ -20,6 +20,5 @@ libraries:
20
20
- org.jetbrains:annotations:23.0.0
21
21
- org.fusesource.jansi:jansi:2.4.0
22
22
- org.apache.commons:commons-lang3:3.12.0
23
- - com.opencsv:opencsv:5.7.1
24
23
- com.github.luben:zstd-jni:1.5.2-5
25
24
- io.airlift:aircompressor:0.21
You can’t perform that action at this time.
0 commit comments