Skip to content

Commit b38c709

Browse files
author
zhourenjian
committed
ClassLoader.loadClass with null optionalLoaded should not add an empty optionalLoaded wrapped function
1 parent 4676a92 commit b38c709

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

sources/net.sf.j2s.ajax/ajaxcore/net/sf/j2s/ajax/AClass.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,15 @@ protected AClass() {
4545
* loaded class automatically.
4646
*
4747
* @j2sNativeSrc
48-
* ClazzLoader.loadClass (clazzName, function () {
48+
* ClazzLoader.loadClass (clazzName, afterLoaded == null ? null : function () {
4949
* if (afterLoaded != null && Clazz.instanceOf (afterLoaded, net.sf.j2s.ajax.ARunnable)) {
5050
* var clz = Clazz.evalType (clazzName);
5151
* afterLoaded.setClazz (clz);
5252
* }
5353
* if (afterLoaded != null) afterLoaded.run ();
5454
* }, false, true);
5555
* @j2sNative
56-
* ClazzLoader.loadClass (a, function () {
56+
* ClazzLoader.loadClass (a, b == null ? null : function () {
5757
* if (b != null && Clazz.instanceOf (b, net.sf.j2s.ajax.ARunnable)) {
5858
* var clz = Clazz.evalType (a);
5959
* b.setClazz (clz);

sources/net.sf.j2s.ajax/ajaxswt/net/sf/j2s/ajax/ASWTClass.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,15 +83,15 @@ public static void swtLoad(String clazzName, Runnable afterLoaded) {
8383
* loaded class automatically.
8484
*
8585
* @j2sNativeSrc
86-
* ClazzLoader.loadClass (clazzName, function () {
86+
* ClazzLoader.loadClass (clazzName, afterLoaded == null ? null : function () {
8787
* if (afterLoaded != null && Clazz.instanceOf (afterLoaded, net.sf.j2s.ajax.ARunnable)) {
8888
* var clz = Clazz.evalType (clazzName);
8989
* afterLoaded.setClazz (clz);
9090
* }
9191
* if (afterLoaded != null) afterLoaded.run ();
9292
* }, false, true);
9393
* @j2sNative
94-
* ClazzLoader.loadClass (b, function () {
94+
* ClazzLoader.loadClass (b, c == null ? null : function () {
9595
* if (c != null && Clazz.instanceOf (c, net.sf.j2s.ajax.ARunnable)) {
9696
* var clz = Clazz.evalType (b);
9797
* c.setClazz (clz);

0 commit comments

Comments
 (0)