8000 Remove deprecated methods and corresponding tests by shinfan · Pull Request #1678 · googleapis/google-cloud-java · GitHub 8000
[go: up one dir, main page]

Skip to content

Conversation

@shinfan
Copy link
Contributor
@shinfan shinfan commented Mar 1, 2017

Update:

Fixed all malformed javadocs including:

  • Deprecated method references
  • Unqualified class names
  • Typos

Note: I intend to merge this PR soon since it may cause lots of conflicts.

Remove deprecated methods and tests in one pass by a self-made script, with a few exceptions:

  • There are still plenty of manual work involved to update usages of deprecated methods and fields
  • Manual corrections due to misspell of the word "deprecated"
  • google-cloud-pubsub: Pubsub has a few deprecated packages and it affects its integrated tests as well. Removing deprecated packages is not in the scope of this PR.
  • google-cloud-compute: Compute engine has a few "Deprecated" related service which causes lots of noise of the automated script.
  • google-cloud-datastore
    • In ValueBuilder getExcludeFromIndexes was marked as deprecated which is inconsistent with other getter/setter methods
    • Preserved the fields meaning in ValueBuilder since it is still wide used in the code. May require a separate PR to deprecate.

Fixes #1569

Test: All unit tests passed locally.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Mar 1, 2017
@garrettjonesgoogle
Copy link
Member

It looks like there are javadoc failures in the jdk8 test. I think those should be fixed. Those kind of errors will block the release process.

@shinfan
Copy link
Contributor Author
shinfan commented Mar 3, 2017

Seems like we have several javadocs which refer to the deprecated methods. I will go through the repo and fix them.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 1bf2b50 on shinfan:dev into ** on GoogleCloudPlatform:master**.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 81.437% when pulling 686270d on shinfan:dev into bf8df09 on GoogleCloudPlatform:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 81.429% when pulling 5b98eca on shinfan:dev into bf8df09 on GoogleCloudPlatform:master.

Copy link
Member
@garrettjonesgoogle garrettjonesgoogle left a comment

Choose a reason for hiding this comment

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

I just have a couple nits - you can choose to take care of them in a following PR if you would like.

LGTM after conflicts are resolved - please merge ASAP since this is so large.

builder.set(valuePb);
return builder;
}
}

This comment was marked as spam.

This comment was marked as spam.

: valueType.getMarshaller().fromProto(proto).build();
}
}
}

This comment was marked as spam.

This comment was marked as spam.


P build();
}
}

This comment was marked as spam.

This comment was marked as spam.

package com.google.cloud.pubsub.spi.v1;

import com.google.pubsub.v1.PubsubMessage;
import java.util.concurrent.BlockingQueue;

This comment was marked as spam.

@shinfan shinfan merged commit 5cbbbae into googleapis:master Mar 7, 2017
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 7441280 on shinfan:dev into ** on GoogleCloudPlatform:master**.

rybosome pushed a commit to rybosome/google-cloud-java that referenced this pull request Mar 9, 2017
Remove deprecated methods and its references in one pass by a self-made script, with a few exceptions:
- There are still plenty of manual work involved to update usages of deprecated methods and fields
- Manual corrections due to misspell of the word "deprecated"
- google-cloud-pubsub: Pubsub has a few deprecated packages and it affects its integrated tests as well. Removing deprecated packages is not in the scope of this PR.
- google-cloud-compute: Compute engine has a few "Deprecated" related service which causes lots of noise of the automated script. 
- google-cloud-datastore
  - In `ValueBuilder` `getExcludeFromIndexes` was marked as deprecated which is inconsistent with other getter/setter methods
  - Preserved the fields `meaning` in `ValueBuilder` since it is still wide used in the code. May require a separate PR to deprecate.
meltsufin pushed a commit that referenced this pull request Dec 22, 2025
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

0