Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the "shared" module with checkstyle checks.
Remove extra callback class that composed two existing callbacks.
- Loading branch information
Showing
31 changed files
with
180 additions
and
233 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
22 changes: 0 additions & 22 deletions
22
data-migration/src/main/java/com/quorum/tessera/data/migration/UriCallback.java
This file was deleted.
Oops, something went wrong.
45 changes: 0 additions & 45 deletions
45
data-migration/src/test/java/com/quorum/tessera/data/migration/UriCallbackTest.java
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
|
@@ -28,6 +28,6 @@ public void write(int b) throws IOException { | |
}); | ||
} | ||
|
||
}; | ||
} | ||
|
||
} |
6 changes: 3 additions & 3 deletions
6
shared/src/main/java/com/quorum/tessera/io/SystemAdapter.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
11 changes: 4 additions & 7 deletions
11
shared/src/main/java/com/quorum/tessera/jaxb/JaxbCallback.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 |
---|---|---|
@@ -1,22 +1,19 @@ | ||
|
||
package com.quorum.tessera.jaxb; | ||
|
||
import javax.xml.bind.DataBindingException; | ||
import javax.xml.bind.JAXBException; | ||
|
||
@FunctionalInterface | ||
public interface JaxbCallback<T> { | ||
|
||
|
||
T doExecute() throws JAXBException,DataBindingException; | ||
|
||
|
||
|
||
T doExecute() throws JAXBException, DataBindingException; | ||
|
||
static <T> T execute(JaxbCallback<T> callback) { | ||
try { | ||
return callback.doExecute(); | ||
} catch (JAXBException ex) { | ||
throw new DataBindingException(ex); | ||
} | ||
} | ||
|
||
} |
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
shared/src/main/java/com/quorum/tessera/reflect/ReflectException.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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,7 @@ | |
public interface Service { | ||
|
||
enum Status { | ||
STARTED, | ||
STOPPED | ||
STARTED, STOPPED | ||
} | ||
|
||
void start(); | ||
|
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 was deleted.
Oops, something went wrong.
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,8 @@ | ||
package com.acme; | ||
|
||
/** | ||
* An implementation of {@link TestService} that can be loaded by the Java | ||
* Service Loader | ||
*/ | ||
public class DefaultTestService implements TestService { | ||
} |
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,8 @@ | ||
package com.acme; | ||
|
||
/** | ||
* An interface for testing the Service loader. See | ||
* {@link com.quorum.tessera.ServiceLoaderUtilTest}. | ||
*/ | ||
public interface TestService { | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.