@@ -97,7 +97,19 @@ class Java2ScriptCompiler {
9797 private static final String J2S_COMPILER_READ_ANNOTATIONS = "j2s.compiler.read.annotations" ;
9898 private static final String J2S_COMPILER_READ_ANNOTATIONS_DEFAULT = "true" ;
9999 private static final String J2S_COMPILER_IGNORED_ANNOTATIONS = "j2s.compiler.ignored.annotations" ;
100- private static final String J2S_COMPILER_IGNORED_ANNOTATIONS_DEFAULT = "CallerSensitive;ConstructorProperties;Deprecated;Override;SaveVarargs;SuppressWarnings;" ;
100+ private static final String J2S_COMPILER_IGNORED_ANNOTATIONS_DEFAULT =
101+ "CallerSensitive;"
102+ + "ConstructorProperties;"
103+ + "Deprecated;"
104+ + "Override;"
105+ + "SafeVarargs;"
106+ + "SuppressWarnings;"
107+ + "FunctionalInterface;"
108+ + "Documented;"
109+ + "Inherited;"
110+ + "Native;"
111+ + "Repeatable;"
112+ + "Retention;" ;
101113
102114 private static final String J2S_COMPILER_NONQUALIFIED_PACKAGES = "j2s.compiler.nonqualified.packages" ;
103115 private static final String J2S_COMPILER_NONQUALIFIED_PACKAGES_DEFAULT = "<none>" ;
@@ -549,6 +561,7 @@ private String getDefaultJ2SFile() {
549561 return "#j2s default configuration file created by net.sf.java2script_"
550562 + CorePlugin .VERSION + " " + new Date () + "\n \n " +
551563 "#enable the Java2Script transpiler -- comment out to disable\n " +
564+ "# default is \" enabled\" .\n " +
552565 "j2s.compiler.status=enable\n " +
553566 "\n " +
554567 "\n " +
@@ -557,9 +570,15 @@ private String getDefaultJ2SFile() {
557570 "\n " +
558571 "# uncomment j2s.* lines to process:\n " +
559572 "\n " +
560- "# a semicolon-separated list of package-level file paths to be excluded\n " +
573+ "# a semicolon-separated list of package-level file paths to be excluded (default \" <none> \" ) \n " +
561574 "#j2s.excluded.paths=test;testng\n " +
562575 "\n " +
576+ "# whether to read annotations\n " +
577+ "#j2s.compiler.read.annotations=" + J2S_COMPILER_READ_ANNOTATIONS_DEFAULT +"\n " +
578+ "\n " +
579+ "# a semicolon-separated list of annotations to ignore, if reading annotations\n " +
580+ "#j2s.compiler.ignored.annotations=" + J2S_COMPILER_IGNORED_ANNOTATIONS_DEFAULT +"\n " +
581+ "\n " +
563582 "# output file name for logging methods declared - delete the file to regenerate a listing \n " +
564583 "#j2s.log.methods.declared=methodsDeclared.csv\n " +
565584 "\n " +
@@ -577,6 +596,7 @@ private String getDefaultJ2SFile() {
577596 "# methods such as calling window or jQuery functions or the methods in Clazz or J2S. \n " +
578597 "# The classes must not have any methods that are overloaded - with the\n " +
579598 "# same name but different paramater type, as JavaScript will only see the last one.\n " +
599+ "# default is \" <none>\" .\n " +
580600 "#j2s.compiler.nonqualified.packages=org.jmol.api.js;jspecview.api.js\n " +
581601 "\n " +
582602 "# uncomment to add debugging output. Start eclipse with the -consoleLog option to see output.\n " +
@@ -588,6 +608,7 @@ private String getDefaultJ2SFile() {
588608 "# have exactly the same parameter signature. We use it in Jalview to provide a minimal\n " +
589609 "# JavaScript implementation of a large third-party library while still using that library's\n " +
590610 "# jar file in Java.\n " +
611+ "# default is \" <none>\" .\n " +
591612 "#j2s.class.replacements=org.apache.log4j.->jalview.javascript.log4j.\n " +
592613 "\n " +
593614 "# uncomment and change if you do not want to use the template.html file created for you\n " +
0 commit comments