Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ce12102

Browse files
committed
Fixed bug that SimpleRPCRequest#ajaxRequest is removed by not referenced
by other methods
1 parent d8ce4f5 commit ce12102

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sources/net.sf.j2s.ajax/ajaxrpc/net/sf/j2s/ajax/SimpleRPCRequest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import java.net.URLEncoder;
1616

1717
import net.sf.j2s.annotation.J2SIgnore;
18+
import net.sf.j2s.annotation.J2SKeep;
1819
import net.sf.j2s.annotation.J2SNative;
1920

2021
/**
@@ -155,6 +156,7 @@ public static HttpRequest getRequest() {
155156
return new HttpRequest();
156157
}
157158

159+
@J2SKeep
158160
private static void ajaxRequest(final SimpleRPCRunnable runnable, boolean async) {
159161
String url = runnable.getHttpURL();
160162
if (url == null) {

0 commit comments

Comments
 (0)