GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Added transform and transformAsync overrides that accept an Executor by hiranya911 · Pull Request #38 · googleapis/api-common-java

This repository was archived by the owner on Sep 27, 2023. It is now read-only.

Conversation

@hiranya911

@hiranya911 hiranya911 commented Dec 8, 2017

Copy link
Copy Markdown
Contributor

These methods are useful when working with immediate futures and other completed futures.

I also wanted to add some tests, but cannot get past the lint errors. Every time I make the slightest change to ApiFuturesTest.java, I get:

The following files are not formatted properly:

/Users/hkj/Projects/firebase-admin-java/api-common-java/src/test/java/com/google/api/core/ApiFuturesTest.java
:verifyGoogleJavaFormat FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':verifyGoogleJavaFormat'.
> Problems: formatting style violations

Not helpful :(

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@hiranya911
Added transform and transformAsync overrides that accept an Executor
81a78b9
@codecov-io

codecov-io commented Dec 8, 2017 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codecov Report

Merging #38 into master will increase coverage by 0.6%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff             @@
##             master      #38     +/-   ##
===========================================
+ Coverage     59.23%   59.83%   +0.6%     
- Complexity      138      140      +2     
===========================================
  Files            15       15             
  Lines           601      610      +9     
  Branches         91       91             
===========================================
+ Hits            356      365      +9     
  Misses          223      223             
  Partials         22       22
Impacted Files Coverage Δ Complexity Δ
src/main/java/com/google/api/core/ApiFutures.java 93.87% <100%> (+1.37%) 13 <2> (+2) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1a1abec...31d9283. Read the comment docs.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@hiranya911
Managed to jump through the linter hoops and add the flipping tests
31d9283
@garrettjonesgoogle

garrettjonesgoogle commented Jan 17, 2018

Copy link
Copy Markdown
Contributor

@hiranya911 add the googleJavaFormat task whenever you build to automatically fix formatting every time, for example:

./gradlew googleJavaFormat build

I look forward to having tests added.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@garrettjonesgoogle

garrettjonesgoogle commented Jan 17, 2018

Copy link
Copy Markdown
Contributor

Oh wait, you already got the tests added.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@garrettjonesgoogle
garrettjonesgoogle merged commit 6e35cbf into googleapis:master Jan 17, 2018
miraleung pushed a commit that referenced this pull request Jun 4, 2020
@hiranya911 @garrettjonesgoogle
Added transform and transformAsync overrides that accept an Executor (#…
491811f
…38)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@hiranya911 @codecov-io @garrettjonesgoogle
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.