-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #239 from satsen/remove-libs
Removed 2 libraries with vulnerabilities
- Loading branch information
Showing
10 changed files
with
46 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package org.ergoplatform.appkit | ||
|
||
import java.io.File | ||
import java.nio.charset.Charset | ||
import java.nio.file.Files | ||
|
||
object FileUtil { | ||
def read(file: File): String = new String(Files.readAllBytes(file.toPath), Charset.defaultCharset()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 0 additions & 10 deletions
10
common/src/main/java/org/ergoplatform/appkit/FileUtil.scala
This file was deleted.
Oops, something went wrong.
24 changes: 24 additions & 0 deletions
24
common/src/main/java/org/ergoplatform/appkit/InternalUtil.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package org.ergoplatform.appkit; | ||
|
||
import javax.annotation.Nullable; | ||
|
||
public class InternalUtil { | ||
|
||
public static void checkArgument(boolean expression, @Nullable Object errorMessage) { | ||
if (!expression) { | ||
throw new IllegalArgumentException(String.valueOf(errorMessage)); | ||
} | ||
} | ||
|
||
public static void checkArgument(boolean expression, String errorMessageFormat, Object... errorMessageArgs) { | ||
if (!expression) { | ||
throw new IllegalArgumentException(String.format(errorMessageFormat, errorMessageArgs)); | ||
} | ||
} | ||
|
||
public static void checkState(boolean expression, @Nullable Object errorMessage) { | ||
if (!expression) { | ||
throw new IllegalStateException(String.valueOf(errorMessage)); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
lib-impl/src/main/java/org/ergoplatform/appkit/impl/NodeAndExplorerDataSourceImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters