Skip to content

Conversation

@marvin-we
Copy link
Contributor

@marvin-we marvin-we commented Sep 10, 2020

Based on #26 - Review and merge that one first

Fixes #25

This solves #26 by moving the default endpoint and the client creation to the constructor of the 'ConnectionManager' to avoid that HiveJConfig has to be called/initialized.

Still a bit unsure if this is a propper design or if we should just skip the idea of a default endpoint and let the enduser add those.

@marvin-we marvin-we requested a review from Jodo1985 September 10, 2020 10:06
@marvin-we
Copy link
Contributor Author

Changes since last commit: Rebase after merge of #15

@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.

Bug B 2 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell B 3 Code Smells

66.7% 66.7% Coverage
0.0% 0.0% Duplication

warning The version of Java (1.8.0_265) you have used to run this analysis is deprecated and we will stop accepting it from October 2020. Please update to at least Java 11.
Read more here

public class ConnectionManager {
private static final Logger LOGGER = LoggerFactory.getLogger(ConnectionManager.class);
/** The default endpoint URI */
private static final String DEFAULT_HIVE_API_URI = "https://api.hive.blog/";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we also do not destinguish between static and member variables in terms of naming conventions? (e.g. prefix 's' for static variables?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move the default client from HiveJConfig to ConnectionManager

4 participants