-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Refactor BigQuery samples. #297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
83ae0ee
to
3ad7c70
Compare
public static void main(final String[] args) | ||
throws IOException, InterruptedException { | ||
public static void main(final String[] args) throws IOException, InterruptedException { | ||
Scanner scanner = new Scanner(System.in); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some reason these aren't command line args, with defaults?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That was the way it was in the existing sample, and it didn't bother me as much as some of the other things I fixed. I can look at changing this, too.
LGTM - all comments are optional. |
Fixes the following issues: - Subclassing a static utility class unncecessarily. - Parsing constants from a JSON file for every test instead of defining actual constants. - Rename Bigquery to BigQuery. - Formatted using google-java-format https://github.com/google/google-java-format
3ad7c70
to
a9451b5
Compare
@dpebot merge when green |
Okay! I'll merge when all statuses are green. |
Current coverage is 45.73% (diff: 78.37%)@@ master #297 diff @@
==========================================
Files 73 73
Lines 2167 2178 +11
Methods 0 0
Messages 0 0
Branches 146 146
==========================================
+ Hits 984 996 +12
+ Misses 1156 1155 -1
Partials 27 27
|
@tswast Your choice - DPEbot doesn't think this is green. |
Interesting. The Travis logs look fine to me. Maybe @jonparrott can help track down why it didn't automerge. |
It seems github's search indexing isn't quick enough for me to effectively filter the PRs. I'm gonna see if I can't get a fix in this afternoon. It should work, but every now and then github will be slow about indexing so it'll fail to find the PR. |
…297) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `14.4.1` -> `15.0.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks).
Fixes the following issues:
actual constants.
https://github.com/google/google-java-format
@lesv PTAL