Skip to content

Commit

Permalink
Core doesn't need a compile dep on guava (corda#1283)
Browse files Browse the repository at this point in the history
  • Loading branch information
andr3ej authored Aug 29, 2017
1 parent e2f112c commit cd0ab40
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions client/jackson/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ dependencies {
compile "com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:$jackson_version"
// This adds support for java.time types.
compile "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jackson_version"
compile "com.google.guava:guava:$guava_version"

testCompile project(path: ':core', configuration: 'testArtifacts')
testCompile "junit:junit:$junit_version"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ class RPCClientProxyHandler(

private fun createRpcObservableMap(): RpcObservableMap {
val onObservableRemove = RemovalListener<RPCApi.ObservableId, UnicastSubject<Notification<*>>> {
val rpcCallSite = callSiteMap?.remove(it.key.toLong)
val observableId = it.key!!
val rpcCallSite = callSiteMap?.remove(observableId.toLong)
if (it.cause == RemovalCause.COLLECTED) {
log.warn(listOf(
"A hot observable returned from an RPC was never subscribed to.",
Expand All @@ -126,7 +127,7 @@ class RPCClientProxyHandler(
"will appear less frequently in future versions of the platform and you can ignore it",
"if you want to.").joinToString(" "), rpcCallSite)
}
observablesToReap.locked { observables.add(it.key) }
observablesToReap.locked { observables.add(observableId) }
}
return CacheBuilder.newBuilder().
weakValues().
Expand Down
2 changes: 1 addition & 1 deletion core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ dependencies {
testCompile "org.assertj:assertj-core:${assertj_version}"

// Guava: Google utilities library.
compile "com.google.guava:guava:$guava_version"
testCompile "com.google.guava:guava:$guava_version"

// RxJava: observable streams of events.
compile "io.reactivex:rxjava:$rxjava_version"
Expand Down
4 changes: 3 additions & 1 deletion finance/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ dependencies {
// and CorDapps using :finance features should use 'cordapp' not 'compile' linkage.
cordaCompile project(':core')

compile "com.google.guava:guava:$guava_version"

testCompile project(':test-utils')
testCompile project(path: ':core', configuration: 'testArtifacts')
testCompile "junit:junit:$junit_version"
Expand All @@ -39,4 +41,4 @@ jar {

publish {
name jar.baseName
}
}

0 comments on commit cd0ab40

Please sign in to comment.