GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — chore: googleapis updates by gcf-owl-bot[bot] · Pull Request #1290 · googleapis/java-bigtable
This repository was archived by the owner on Aug 30, 2026. It is now read-only.
Conversation
|
| int nonStaticFields = 0; | ||
| List<String> nonStaticFields = new ArrayList<>(); | ||
| for (Field field : BigtableTableAdminStubSettings.class.getDeclaredFields()) { | ||
| if (!Modifier.isStatic(field.getModifiers())) { | ||
| nonStaticFields++; | ||
| nonStaticFields.add(field.getName()); | ||
| } | ||
| } | ||
| // failure will signal about adding a new settings property | ||
| assertThat(SETTINGS_LIST.length).isEqualTo(nonStaticFields); | ||
| List<String> sortedSettingsList = Arrays.stream(SETTINGS_LIST).sorted().collect(Collectors.toList()); | ||
| List<String> sortedNonStaticFields = nonStaticFields.stream().sorted().collect(Collectors.toList()); | ||
| assertThat(sortedSettingsList).isEqualTo(sortedNonStaticFields); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I think this would be cleaner
List<String> declaredFieldNames = Arrays.stream(BigtableTableAdminStubSettings.class.getDeclaredFields()) .filter(f -> Modifier.isStatic(f.getModifiers())) .map(Field::toString) .collect(Collectors.toList()); assertThat(declaredFieldNames).containsExactlyElementsIn(SETTINGS_LIST);
Sorry, something went wrong.
There was an error while loading. Please reload this page.
BEGIN_COMMIT_OVERRIDE feat(generated): Cloud Bigtable Undelete Table service and message proto files feat(generated): Add storage_utilization_gib_per_node to Autoscaling target END_COMMIT_OVERRIDE - [ ] Regenerate this pull request now. PiperOrigin-RevId: 458022604 Source-Link: googleapis/googleapis@e5507fc Source-Link: googleapis/googleapis-gen@2c26a74 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMmMyNmE3NDQwODdhZDA2MzY3YWRiNDQ2NDljOTNiNzcyZjk3Y2MyNCJ9
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.