Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
binwiederhier committed Sep 8, 2014
1 parent 99fe9bb commit 53e61aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
import java.util.logging.Level;

import org.syncany.config.Config;
import org.syncany.operations.daemon.messages.api.FolderRequest;
import org.syncany.operations.daemon.messages.api.FolderRequestHandler;
import org.syncany.operations.daemon.messages.api.Request;
import org.syncany.operations.daemon.messages.api.Response;
import org.syncany.operations.status.StatusOperation;
import org.syncany.operations.status.StatusOperationResult;
Expand All @@ -32,7 +32,7 @@ public StatusFolderRequestHandler(Config config) {
}

@Override
public Response handleRequest(Request request) {
public Response handleRequest(FolderRequest request) {
StatusFolderRequest concreteRequest = (StatusFolderRequest) request;

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ public FolderRequestHandler(Config config) {
this.config = config;
}

public abstract Response handleRequest(Request request);
public abstract Response handleRequest(FolderRequest request);

public static FolderRequestHandler createFolderRequestHandler(Request request, Config config) throws Exception {
String fqClassName = request.getClass().getName() + "Handler";
String fqClassName = request.getClass().getName() + "Handler"; // TODO [medium] Ugly hardcoded string
Class<?> clazz = Class.forName(fqClassName);

return (FolderRequestHandler) clazz.getConstructor(Config.class).newInstance(config);
Expand Down

0 comments on commit 53e61aa

Please sign in to comment.