Skip to content

Commit

Permalink
fix: remove guava from native-library-common
Browse files Browse the repository at this point in the history
  • Loading branch information
equanz committed Dec 30, 2024
1 parent 9eececc commit af44b07
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
7 changes: 0 additions & 7 deletions native-library-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,6 @@
<name>Apache BookKeeper :: Common for Native Libraries</name>
<description>Common for Native Libraries</description>

<dependencies>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
*/
package org.apache.bookkeeper.common.util.nativelib;

import static com.google.common.base.Preconditions.checkArgument;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
Expand All @@ -30,6 +28,7 @@
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.Locale;
import lombok.NonNull;
import lombok.experimental.UtilityClass;

/**
Expand Down Expand Up @@ -115,4 +114,10 @@ public static String libType() {
}
throw new TypeNotPresentException(OS_NAME + " not supported", null);
}

public static void checkArgument(boolean expression, @NonNull Object errorMessage) {
if (!expression) {
throw new IllegalArgumentException(String.valueOf(errorMessage));
}
}
}

0 comments on commit af44b07

Please sign in to comment.