Skip to content
This repository was archived by the owner on Apr 8, 2026. It is now read-only.

Commit b5fde8e

Browse files
committed
formatting
1 parent 03c7224 commit b5fde8e

File tree

15 files changed

+15
-24
lines changed

15 files changed

+15
-24
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning].
99

1010
### Added
1111

12-
- Added Java bindings.
12+
- Added Java bindings.
1313
[#455](https://github.com/ethereum/evmc/pull/455)
1414
- Added `MockedHost` C++ class (in form of header-only `evmc::mocked_host` library)
1515
which can be used to emulate Host behavior when testing VM implementations.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Please visit the [documentation].
2525
| **C++** | C++11, C++14, C++17 | GCC 6+, clang 3.8+, MSVC 2015+
2626
| **Go** _(bindings)_ | 1.9 - 1.12 |
2727
| **Rust** _(bindings)_[¹](#n1) | 2018 edition | 1.37.0 and newer
28+
| **Java** _(bindings)_ | 11 |
2829

2930
<b id="n1">1</b>. Rust support is limited and not complete yet, but it is mostly functional already. Breaking changes are possible at this stage.
3031

bindings/java/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ gradle/
2020
gradlew
2121
gradlew.bat
2222
c/evmc-vm.h
23-
*.class
23+
*.class

bindings/java/Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
OS:=$(shell uname -s | tr '[:upper:]' '[:lower:]')
32
ifeq ($(OS), linux)
43
EXT:=so
@@ -31,7 +30,6 @@ build: gradlew
3130
mkdir -p ./java/build
3231
./gradlew --no-daemon clean spotlessApply build
3332

34-
3533
debug: DEBUG_FLAG = -D DEBUG
3634

3735
debug: build
@@ -47,4 +45,4 @@ clean:
4745
rm -rf ./java/build/
4846
rm -rf ./c/build/
4947
rm -f ./c/build/*.o
50-
rm -f ./c/build/*.dylib
48+
rm -f ./c/build/*.dylib

bindings/java/build.gradle

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ allprojects {
2828
}
2929

3030
subprojects {
31-
tasks.withType(Test) {
32-
testLogging.showStandardStreams = true
33-
// If GRADLE_MAX_TEST_FORKS is not set, use half the available processors
34-
maxParallelForks = (System.getenv('GRADLE_MAX_TEST_FORKS') ?: (Runtime.runtime.availableProcessors().intdiv(2) ?: 1)).toInteger()
35-
useJUnitPlatform()
36-
reports {
37-
junitXml.enabled = true
31+
tasks.withType(Test) {
32+
testLogging.showStandardStreams = true
33+
// If GRADLE_MAX_TEST_FORKS is not set, use half the available processors
34+
maxParallelForks = (System.getenv('GRADLE_MAX_TEST_FORKS') ?: (Runtime.runtime.availableProcessors().intdiv(2) ?: 1)).toInteger()
35+
useJUnitPlatform()
36+
reports {
37+
junitXml.enabled = true
38+
}
3839
}
39-
}
4040
}

bindings/java/java/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Java Bindings
22

3-
This bindings have been tested with `openjdk64-11.0.1` on OSX and debian:latest.
3+
This bindings have been tested with `openjdk64-11.0.1` on OSX and debian:latest.
44
For examples of how to use these bindings take a look at the JUnit tests.
55

66
### Prerequisites
@@ -24,4 +24,3 @@ from project root:
2424
```bash
2525
cd bindings/java && make clean debug test
2626
```
27-

bindings/java/java/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@ dependencies {
55

66
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.3.2'
77
}
8-

bindings/java/java/src/main/java/org/ethereum/evmc/EvmcVm.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
* <p>Defines the Java methods capable of accessing the evm implementation.
1313
*/
1414
public final class EvmcVm implements AutoCloseable {
15-
1615
private static EvmcVm evmcVm;
1716
private static boolean isEvmcLibraryLoaded = false;
1817
private ByteBuffer nativeVm;

bindings/java/java/src/main/java/org/ethereum/evmc/Host.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
* <p>The set of all callback functions expected by VM instances.
1414
*/
1515
final class Host {
16-
1716
/** Check account existence callback function. */
1817
static int account_exists(int context_index, byte[] address) {
1918
HostContext context =

bindings/java/java/src/main/java/org/ethereum/evmc/HostContext.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
* the EVM.
88
*/
99
public interface HostContext {
10-
1110
/**
1211
* Check account existence function.
1312
*

0 commit comments

Comments
 (0)