public static void main(String[] args) throws Exception { new FtpEngine().start(); /** } * 判断是否要启动MOM采集器任务. * * @return */ private static boolean isStartUpMomThreadAcq() { boolean isStartUp = false; //Connection con = DbHelper.getDirectDsConnection(); Connection con =...
getChangeType()) { case ADD: commitWatchers.notify(newRevision, entry.getNewPath()); break; case MODIFY: case DELETE: commitWatchers.notify(newRevision, entry.getOldPath()); break; default: throw new Error(); } } } Example 7Source File: BlobChange.java From onedev with MIT License 5 ...
/** * An ANTLRv3 capable Java 1.5 grammar for building ASTs. * * Note that there's also the tr
2 src/main/java/me/nettee/markdown/model/MarkdownDocument.java @@ -58,7 +58,7 @@ public String toDebugString() throws UnsupportedEncodingException { for (int i = 0; i < body.size(); i++) { Paragraph paragraph = body.get(i); out.printl...
The monitors provided by Ice haveMesasemantics, so called because they were first implemented by the Mesa programming language[1]. Mesa monitors are provided by a number of languages, including Java and Ada. With Mesa semantics, the signalling thread continues to run and anothe...
java.util.Date end = dfs.parse("2004-03-26 13:31:40"); long between=(end.getTime()-begin.getTime())/1000;//除以1000是为了转换成秒 long day1=between/(24*3600); long hour1=between%(24*3600)/3600; long minute1=between%3600/60; ...
代码示例来源:origin: com.googlecode.java-diff-utils/diffutils throw new IllegalArgumentException("revised sequence is null"); Patch<T> patch = new Patch<T>(); if (path.isSnake()) path = path.prev; patch.addDelta(delta); if (path.isSnake()) path = path.prev; 代码示例来源:origin: ...