FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Removing deprecated stuff (that won't break api-client-staging) by garrettjonesgoogle · Pull Request #45 · googleapis/api-common-java · GitHub

This repository was archived by the owner on Sep 27, 2023. It is now read-only.
/ api-common-java Public archive
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .java  (4) All 1 file type selected
Deleted files Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,4 @@

/** An interface that generated resource name types must implement. */
@BetaApi
public interface ResourceName {

/**
* The ResourceNameType of the resource name object.
*
* @deprecated With Oneof types being converted to use inheritance, this is no longer necessary.
*/
@Deprecated
public ResourceNameType getType();
}
public interface ResourceName {}
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
import com.google.api.core.BetaApi;

/**
* An interface that resource name types must implement. A ResourceNameType class is required for
* any class that implements {@link ResourceName}.
* An interface that resource name types used to have to implement. A ResourceNameType class was
* required for any class that implements {@link ResourceName}.
*
* @deprecated With Oneof types being converted to use inheritance, this is no longer necessary.
*/
Expand Down
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,6 @@ private UntypedResourceName(String rawValue) {
this.rawValue = Preconditions.checkNotNull(rawValue);
}

/**
* @deprecated use {@link #of(ResourceName)} instead.
*/
@Deprecated
public static UntypedResourceName from(ResourceName resourceName) {
return new UntypedResourceName(resourceName.toString());
}

public static UntypedResourceName of(ResourceName resourceName) {
return new UntypedResourceName(resourceName.toString());
}
Expand All @@ -68,16 +60,6 @@ public static boolean isParsableFrom(String formattedString) {
return true;
}

/*
* @deprecated With Oneof types being converted to use inheritance, this is
* no longer necessary.
*/
@Override
@Deprecated
public ResourceNameType getType() {
return UntypedResourceNameType.instance();
}

@Override
public String toString() {
return rawValue;
Expand Down

This file was deleted.


Back | FazBrowse Home | New Git URL