• R/O
  • HTTP
  • SSH
  • HTTPS

jcfa: Commit

JavaClassFileAnalyzer (jcfa) のメインリポジトリです。


Commit MetaInfo

Revision16b304db6068c7eaf63cad0a6eeacdf44cbbc3f8 (tree)
Time2014-04-03 06:27:21
Authoriga <tosiki.iga@nift...>
Commiteriga

Log Message

save

Change Summary

Incremental Difference

--- a/jcfa/src.generated/jp/igapyon/jcfa/JcfaVersionConstants.java
+++ b/jcfa/src.generated/jp/igapyon/jcfa/JcfaVersionConstants.java
@@ -1,7 +1,9 @@
11 package jp.igapyon.jcfa;
22
3+/* This source file is generated by JavaClassFileAnalyzer. */
4+/* Do not modify this source file. */
35 public class JcfaVersionConstants {
4- public static final String VERSION = "I201404030619";
6+ public static final String VERSION = "I201404030627";
57
68 public static final String getVersion() {
79 return VERSION;
--- a/jcfa/src/jp/igapyon/jcfa/JcfaConstants.java
+++ b/jcfa/src/jp/igapyon/jcfa/JcfaConstants.java
@@ -14,11 +14,21 @@ public class JcfaConstants {
1414
1515 public static final String VERSION_FORMAT = "yyyyMMddHHmm";
1616
17+ /**
18+ * Version constants updater.
19+ *
20+ * @param args
21+ * @throws IOException
22+ */
1723 public static final void main(final String[] args) throws IOException {
18- System.err.println("Update version source.");
24+ System.err.println("JavaClassFileAnalyzer version constants updater.");
25+ System.err
26+ .println(" this program overwrite JcfaVersionConstants.java source file.");
1927
2028 final StringBuffer source = new StringBuffer();
21- source.append("package jp.igapyon.jcfa;");
29+ source.append("package jp.igapyon.jcfa;\n");
30+ source.append("/* This source file is generated by JavaClassFileAnalyzer. */\n");
31+ source.append("/* Do not modify this source file. */\n");
2232 source.append("public class JcfaVersionConstants {");
2333 source.append("public static final String VERSION = \""
2434 + VERSION_PREFIX
--- a/jcfa/src/jp/igapyon/jcfa/util/JcfaEclipseUtil.java
+++ b/jcfa/src/jp/igapyon/jcfa/util/JcfaEclipseUtil.java
@@ -43,6 +43,9 @@ public class JcfaEclipseUtil {
4343 final TextEdit te = cf.format(CodeFormatter.K_COMPILATION_UNIT
4444 | CodeFormatter.F_INCLUDE_COMMENTS, source, 0, source.length(),
4545 0, null);
46+ if (te == null) {
47+ return source;
48+ }
4649 IDocument doc = new Document(source);
4750 try {
4851 te.apply(doc);
Show on old repository browser