Skip to content

Commit 9a7d012

Browse files
committed
[-] Remove opencsv
1 parent bbf34b3 commit 9a7d012

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

build.gradle

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,6 @@ dependencies {
8383
// https://mvnrepository.com/artifact/org.apache.commons/commons-lang3
8484
implementation 'org.apache.commons:commons-lang3:3.12.0'
8585

86-
// CSV Parser
87-
// https://mvnrepository.com/artifact/com.opencsv/opencsv/5.7.1
88-
implementation 'com.opencsv:opencsv:5.7.1'
89-
9086
// ZSTD Compression
9187
// https://mvnrepository.com/artifact/com.github.luben/zstd-jni
9288
implementation 'com.github.luben:zstd-jni:1.5.2-5'

src/main/java/org/hydev/mcpm/client/display/presenters/KVInfoPresenter.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package org.hydev.mcpm.client.display.presenters;
22

33
import org.apache.commons.lang3.StringUtils;
4-
import org.apache.commons.text.WordUtils;
4+
import org.apache.commons.lang3.text.WordUtils;
55
import org.hydev.mcpm.client.commands.presenters.InfoPresenter;
66
import org.hydev.mcpm.client.models.PluginYml;
77
import org.hydev.mcpm.utils.ColorLogger;
@@ -25,11 +25,15 @@ public class KVInfoPresenter implements InfoPresenter
2525

2626
/**
2727
* 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).
2831
*
2932
* @param key Key
3033
* @param rawValue Value
3134
* @return Formatted pair
3235
*/
36+
@SuppressWarnings("deprecation")
3337
private static String formatPair(String key, @Nullable Object rawValue)
3438
{
3539
if (rawValue == null) return "";

src/main/resources/plugin.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,5 @@ libraries:
2020
- org.jetbrains:annotations:23.0.0
2121
- org.fusesource.jansi:jansi:2.4.0
2222
- org.apache.commons:commons-lang3:3.12.0
23-
- com.opencsv:opencsv:5.7.1
2423
- com.github.luben:zstd-jni:1.5.2-5
2524
- io.airlift:aircompressor:0.21

0 commit comments

Comments
 (0)