Skip to content

Instantly share code, notes, and snippets.

@stevenheidel
Created November 27, 2017 06:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevenheidel/c4c99c499cf8e03f5268031316d4e81a to your computer and use it in GitHub Desktop.
Save stevenheidel/c4c99c499cf8e03f5268031316d4e81a to your computer and use it in GitHub Desktop.
List<String> getSearchResults(...) {
try {
List<String> results = // make REST call to search service
return results;
} catch (RemoteInvocationException e) {
return Collections.emptyList();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment