Skip to content
This repository was archived by the owner on Sep 26, 2023. It is now read-only.

delete deprecated fields of BundlingSettings - #170

Merged
pongad merged 3 commits into
googleapis:masterfrom
pongad:bundling-settings
Jan 11, 2017
Merged

pongad merged 3 commits into
googleapis:masterfrom
pongad:bundling-settings

Conversation

@pongad

@pongad pongad commented Jan 10, 2017

Copy link
Copy Markdown
Contributor

Fixes #168.

This commit also performed branch elimination and constant propagation.
In particular:

  • All thresholds are required and therefore never null.
  • All limits are gone and therefore "always null".
  • BundlingThreshold::canAccept always return true,
    and therefore deleted.

@codecov-io

codecov-io commented Jan 10, 2017 •

Copy link
Copy Markdown

Current coverage is 71.12% (diff: 78.26%)

Merging #170 into master will increase coverage by 0.28%

@@             master       #170   diff @@
==========================================
  Files            61         61          
  Lines          2472       2455    -17   
  Methods           0          0          
  Messages          0          0          
  Branches        332        333     +1   
==========================================
- Hits           1751       1746     -5   
+ Misses          629        611    -18   
- Partials         92         98     +6   

Powered by Codecov. Last update fd00034...a614fbb

* and the simple API call will be used. Default to true.
*/
public abstract Builder setIsEnabled(Boolean enabled);

This comment was marked as spam.

This comment was marked as spam.

settings.getBlockingCallCountThreshold() > 0,
"blockingCallCountThreshold must be positive");
return settings;
}

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@pongad pongad changed the title delete deprecated fields of BundlingSettings; make the rest required delete deprecated fields of BundlingSettings Jan 11, 2017
@pongad

pongad commented Jan 11, 2017

Copy link
Copy Markdown
Contributor Author

@garrettjonesgoogle PTAL

Fixes #168.

This commit also performed branch elimination and constant propagation.
In particular:

All limits are gone and therefore "always null".
BundlingThreshold::canAccept always return true,
and therefore deleted.
BundlingSettings.newBuilder()
.setDelayThreshold(Duration.standardSeconds(1))
.setElementCountThreshold(2L)
.setBlockingCallCountThreshold(0L)

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@pongad

pongad commented Jan 11, 2017

Copy link
Copy Markdown
Contributor Author

@garrettjonesgoogle PTAL

@pongad

pongad commented Jan 11, 2017

Copy link
Copy Markdown
Contributor Author

I'm stupid. PTAL

@garrettjonesgoogle

Copy link
Copy Markdown
Contributor

LGTM

@pongad
pongad merged commit 66d16f9 into googleapis:master Jan 11, 2017
@pongad
pongad deleted the bundling-settings branch January 11, 2017 23:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants