Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.0: remove deprecated methods (models) #256

Merged
merged 3 commits into from
Aug 20, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

import org.eclipse.microprofile.openapi.models.parameters.Parameter;
import org.eclipse.microprofile.openapi.models.servers.Server;
Expand Down Expand Up @@ -294,28 +293,6 @@ default PathItem TRACE(Operation trace) {
return this;
}

/**
* Returns a list of all the operations for this path item.
*
* @deprecated since 1.1, use @link {@link Map#values()} on {@link #getOperations()} instead
* @return a list of all the operations for this path item
**/
@Deprecated
default List<Operation> readOperations() {
return getOperations().values().stream().collect(Collectors.toList());
}

/**
* Returns a map with all the operations for this path where the keys are HttpMethods.
*
* @deprecated since 1.1, use {@link #getOperations()} instead
* @return a map with all the operations for this path where the keys are HttpMethods
**/
@Deprecated
default Map<PathItem.HttpMethod, Operation> readOperationsMap() {
return getOperations();
}

/**
* Returns a map with all the operations for this path where the keys are {@link PathItem.HttpMethod} items
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ public Map<String, Object> getExtensions() {
return null;
}
@Override
public void addExtension(String name, Object value) {}
public License addExtension(String name, Object value) {
return null;
}
@Override
public void setExtensions(Map<String, Object> extensions) {}
@Override
Expand Down