Formatting and improved bridge method tests

This commit is contained in:
Liam Newman
2020-04-21 17:34:15 -07:00
parent d536a9f874
commit 87f37e9f1c
5 changed files with 75 additions and 40 deletions

View File

@@ -114,6 +114,17 @@ public abstract class GHObject {
return GitHubClient.parseDate(updated_at);
}
/**
* Get Global node_id from Github object.
*
* @see <a href="https://developer.github.com/v4/guides/using-global-node-ids/">Using Global Node IDs</a>
*
* @return Global Node ID.
*/
public String getNodeId() {
return node_id;
}
/**
* Gets id.
*
@@ -124,17 +135,6 @@ public abstract class GHObject {
return id;
}
/**
* Get Global node_id from Github object.
*
* @see <a href="https://developer.github.com/v4/guides/using-global-node-ids/">Using Global Node IDs</a>
*
* @return Global Node ID.
*/
public String getNodeId() {
return node_id;
}
@SuppressFBWarnings(value = "UPM_UNCALLED_PRIVATE_METHOD", justification = "Bridge method of getId")
private Object longToStringOrInt(long id, Class type) {
if (type == String.class)