Skip to content

Commit a1fe906

Browse files
author
Devendra
committed
fix for preverifier errors in j2me,bb
1 parent fd2713e commit a1fe906

29 files changed

Lines changed: 71 additions & 38 deletions

‎android/Pubnub-Android-3.5.0.jar‎

138 Bytes
Binary file not shown.
138 Bytes
Binary file not shown.
138 Bytes
Binary file not shown.
254 Bytes
Binary file not shown.

‎j2me/Pubnub-MicroEdition-3.5.0.jar‎

254 Bytes
Binary file not shown.

‎j2me/src1/com/pubnub/api/PubnubUtil.java‎

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,23 @@
66
import java.io.UnsupportedEncodingException;
77

88
public class PubnubUtil extends PubnubUtilCore {
9+
10+
11+
private static String replace( String str, String pattern, String replace )
12+
{
13+
int s = 0;
14+
int e = 0;
15+
StringBuffer result = new StringBuffer();
16+
17+
while ( (e = str.indexOf( pattern, s ) ) >= 0 )
18+
{
19+
result.append(str.substring( s, e ) );
20+
result.append( replace );
21+
s = e+pattern.length();
22+
}
23+
result.append( str.substring( s ) );
24+
return result.toString();
25+
}
926

1027
/**
1128
* Returns encoded String
@@ -16,7 +33,7 @@ public class PubnubUtil extends PubnubUtilCore {
1633
*/
1734
public static String urlEncode(String sUrl) {
1835
try {
19-
return encode(sUrl, "UTF-8").replace("+", "%20");
36+
return replace(encode(sUrl, "UTF-8"),"+", "%20");
2037
} catch (UnsupportedEncodingException e) {
2138
return null;
2239
}
138 Bytes
Binary file not shown.

‎java/doc/allclasses-frame.html‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
<!--NewPage-->
33
<HTML>
44
<HEAD>
5-
<!-- Generated by javadoc (build 1.6.0_38) on Mon Jun 03 12:24:55 PDT 2013 -->
5+
<!-- Generated by javadoc (build 1.6.0_43) on Fri Jun 07 17:37:17 IST 2013 -->
66
<TITLE>
77
All Classes
88
</TITLE>
99

10-
<META NAME="date" CONTENT="2013-06-03">
10+
<META NAME="date" CONTENT="2013-06-07">
1111

1212
<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
1313

‎java/doc/allclasses-noframe.html‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
<!--NewPage-->
33
<HTML>
44
<HEAD>
5-
<!-- Generated by javadoc (build 1.6.0_38) on Mon Jun 03 12:24:55 PDT 2013 -->
5+
<!-- Generated by javadoc (build 1.6.0_43) on Fri Jun 07 17:37:17 IST 2013 -->
66
<TITLE>
77
All Classes
88
</TITLE>
99

10-
<META NAME="date" CONTENT="2013-06-03">
10+
<META NAME="date" CONTENT="2013-06-07">
1111

1212
<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
1313

‎java/doc/com/pubnub/api/Callback.html‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
<!--NewPage-->
33
<HTML>
44
<HEAD>
5-
<!-- Generated by javadoc (build 1.6.0_38) on Mon Jun 03 12:24:55 PDT 2013 -->
5+
<!-- Generated by javadoc (build 1.6.0_43) on Fri Jun 07 17:37:16 IST 2013 -->
66
<TITLE>
77
Callback
88
</TITLE>
99

10-
<META NAME="date" CONTENT="2013-06-03">
10+
<META NAME="date" CONTENT="2013-06-07">
1111

1212
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
1313

0 commit comments

Comments
 (0)