コード例 #1
0
 public void processConstantSearchResult(
     CmdlineRemoteProto.Message.ControllerMessage.ConstantSearchResult result) {
   final ConstantSearchFuture future =
       mySearchTasks.remove(Pair.create(result.getOwnerClassName(), result.getFieldName()));
   if (future != null) {
     if (result.getIsSuccess()) {
       final List<String> paths = result.getPathList();
       final List<File> files = new ArrayList<File>(paths.size());
       for (String path : paths) {
         files.add(new File(path));
       }
       future.setResult(files);
       LOG.debug("Constant search result: " + files.size() + " affected files found");
     } else {
       future.setDone();
       LOG.debug("Constant search failed");
     }
   }
 }