Skip to content

Commit

Permalink
Removed unnecessary constructor.
Browse files Browse the repository at this point in the history
Increased visibility of utility method in RestResource.
  • Loading branch information
smduarte committed Apr 8, 2019
1 parent 3c33204 commit bbb2357
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import java.net.URI;

import discovery.Discovery;
import microgram.api.Post;
import microgram.api.java.Posts;
import microgram.api.java.Result;
Expand All @@ -12,11 +11,6 @@
public abstract class _TODO_SoapPostsClient extends SoapClient implements Posts {

SoapPosts impl;

public _TODO_SoapPostsClient() {
this( Discovery.findUrisOf("???", 1)[0]); //TODO
}


public _TODO_SoapPostsClient(URI serverUri) {
super(serverUri);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ protected <T> T resultOrThrow( Result<T> result ) {
/**
* Translates a Result<T> to a HTTP Status code
*/
static private Status statusCode( Result<?> result ) {
static protected Status statusCode( Result<?> result ) {
switch( result.error() ) {
case NOT_FOUND:
return Status.NOT_FOUND;
Expand Down

0 comments on commit bbb2357

Please sign in to comment.