mirror of
https://github.com/jlengrand/github-api.git
synced 2026-03-23 00:11:24 +00:00
This change adds or update a swath of tests to push method code coverage numbers up. Yes, method coverage is not super meaningful, but it is one metric that we can use to ensure at least minimal coverage of this library. Almost no product changes in here.
28 lines
691 B
Java
28 lines
691 B
Java
package org.kohsuke.github;
|
|
|
|
import com.fasterxml.jackson.annotation.JacksonInject;
|
|
|
|
/**
|
|
* Defines a base class that all classes in this library that interact with GitHub inherit from.
|
|
*
|
|
* Ensures that all data references to GitHub connection are transient.
|
|
*
|
|
* Classes that do not need to interact with GitHub after they are instantiated do not need to inherit from this class.
|
|
*/
|
|
abstract class GitHubInteractiveObject {
|
|
@JacksonInject
|
|
/* package almost final */ transient GitHub root;
|
|
|
|
GitHubInteractiveObject() {
|
|
root = null;
|
|
}
|
|
|
|
GitHubInteractiveObject(GitHub root) {
|
|
this.root = root;
|
|
}
|
|
|
|
GitHub getRoot() {
|
|
return root;
|
|
}
|
|
}
|