Skip to content

Commit f86918f

Browse files
committed
new transpiler, still 3.2.4.09
1 parent ba4e0d3 commit f86918f

File tree

5 files changed

+16
-25
lines changed

5 files changed

+16
-25
lines changed
75 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20191030144707
1+
20191031001912
75 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20191030144707
1+
20191031001912

sources/net.sf.j2s.java.core/srcjs/swingjs2.js

Lines changed: 14 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -13780,6 +13780,7 @@ if (ev.keyCode == 9 && ev.target["data-focuscomponent"]) {
1378013780

1378113781
// TODO: still a lot of references to window[...]
1378213782

13783+
// BH 2019.10.30 Foo.parseFoo not Foo.parseFooRadix
1378313784
// BH 2019.10.26 subclass def should exclude __PARAMCODE
1378413785
// BH 2019.09.24 missing isArray$() in Integer.class
1378513786
// BH 2019.09.26 superfast byte[] -> String using TextDecoder
@@ -17240,7 +17241,7 @@ Integer.toString=Integer.toString$I=Integer.toString$I$I=Integer.prototype.toStr
1724017241
m$(Integer, ["c$", "c$$S", "c$$I"], function(v){
1724117242
v == null && (v = 0);
1724217243
if (typeof v != "number")
17243-
v = Integer.parseIntRadix$S$I(v, 10);
17244+
v = Integer.parseInt$S$I(v, 10);
1724417245
v = v.intValue();
1724517246
this.valueOf=function(){return v;};
1724617247
}, 1);
@@ -17323,7 +17324,7 @@ m$(Integer,"numberOfTrailingZeros$I",
1732317324

1732417325
var radixChar = "0123456789abcdefghijklmnopqrstuvwxyz";
1732517326

17326-
m$(Integer,"parseIntRadix$S$I",
17327+
m$(Integer,"parseInt$S$I",
1732717328
function(s,radix){
1732817329
var v = parseInt(s, radix);
1732917330
if (isNaN(v)){
@@ -17332,9 +17333,9 @@ function(s,radix){
1733217333
return v;
1733317334
}, 1);
1733417335

17335-
m$(Integer,["parseInt$S","parseInt$S$I"],
17336+
m$(Integer,["parseInt$S"],
1733617337
function(s,radix){
17337-
return Integer.parseIntRadix$S$I(s, radix || 10);
17338+
return Integer.parseInt$S$I(s, radix || 10);
1733817339
}, 1);
1733917340

1734017341
m$(Integer,["valueOf$S","valueOf$I"],
@@ -17344,7 +17345,7 @@ function(s, radix){
1734417345

1734517346
m$(Integer,["valueOf$S$I"],
1734617347
function(s, radix){
17347-
return Integer.parseIntRadix$S$I(s, radix || 10);
17348+
return Integer.parseInt$S$I(s, radix || 10);
1734817349
}, 1);
1734917350

1735017351
m$(Integer,"equals$O",
@@ -17409,7 +17410,7 @@ Long.toString=Long.toString$J=Long.toString$J$I = Long.prototype.toString=functi
1740917410

1741017411
m$(Long, ["c$", "c$$S", "c$$J"], function(v){
1741117412
v == null && (v = 0);
17412-
v = (typeof v == "number" ? Math.round(v) : Integer.parseIntRadix$S$I(v, 10));
17413+
v = (typeof v == "number" ? Math.round(v) : Integer.parseInt$S$I(v, 10));
1741317414
this.valueOf=function(){return v;};
1741417415
}, 1);
1741517416

@@ -17419,7 +17420,7 @@ m$(Long, ["c$", "c$$S", "c$$J"], function(v){
1741917420

1742017421
m$(Long,["parseLong$S", "parseLong$S$I"],
1742117422
function(s,radix){
17422-
return Integer.parseIntRadix$S$I(s, radix || 10);
17423+
return Integer.parseInt$S$I(s, radix || 10);
1742317424
}, 1);
1742417425

1742517426
m$(Long,["valueOf$S","valueOf$J","valueOf$S$I"],
@@ -17463,7 +17464,7 @@ m$(Short, ["c$", "c$$S", "c$$H"],
1746317464
function (v,radix) {
1746417465
v == null && (v = 0);
1746517466
if (typeof v != "number")
17466-
v = Integer.parseIntRadix$S$I(v, radix||10);
17467+
v = Integer.parseInt$S$I(v, radix||10);
1746717468
v = v.shortValue();
1746817469
this.valueOf = function () {return v;};
1746917470
}, 1);
@@ -17483,13 +17484,8 @@ Short.MIN_VALUE = Short.prototype.MIN_VALUE = -32768;
1748317484
Short.MAX_VALUE = Short.prototype.MAX_VALUE = 32767;
1748417485
//Short.TYPE = Short.prototype.TYPE = Short;
1748517486

17486-
m$(Short, "parseShortRadix$S$I",function (s, radix) {
17487-
return Integer.parseIntRadix$S$I(s, radix).shortValue();
17488-
}, 1);
17489-
17490-
17491-
m$(Short, "parseShort$S",function (s) {
17492-
return Short.parseShortRadix$S$I(s, 10);
17487+
m$(Short, ["parseShort$S", "parseShort$S$I"],function (s, radix) {
17488+
return Integer.parseInt$S$I(s, radix || 10).shortValue();
1749317489
}, 1);
1749417490

1749517491
m$(Short, ["valueOf$S","valueOf$H","valueOf$S$I"],
@@ -17526,7 +17522,7 @@ decorateAsNumber(Byte,"Byte", "byte", "B");
1752617522

1752717523
m$(Byte, ["c$", "c$$S", "c$$B"], function(v,radix){
1752817524
if (typeof v != "number")
17529-
v = Integer.parseIntRadix$S$I(v, radix||10);
17525+
v = Integer.parseInt$S$I(v, radix||10);
1753017526
v = v.byteValue();
1753117527
this.valueOf=function(){return v;};
1753217528
this.byteValue = function(){return v};
@@ -17549,14 +17545,9 @@ Byte.MAX_VALUE=Byte.prototype.MAX_VALUE=127;
1754917545
Byte.SIZE=Byte.prototype.SIZE=8;
1755017546
//Byte.TYPE=Byte.prototype.TYPE=Byte;
1755117547

17552-
m$(Byte,"parseByteRadix$S$I",
17548+
m$(Byte,["parseByte$S", "parseByte$S$I"],
1755317549
function(s,radix){
17554-
return Integer.parseIntRadix$S$I(s, radix).byteValue$();
17555-
}, 1);
17556-
17557-
m$(Byte,"parseByte$S",
17558-
function(s){
17559-
return Byte.parseByteRadix$S$I(s,10);
17550+
return Integer.parseInt$S$I(s, radix || 10).byteValue$();
1756017551
}, 1);
1756117552

1756217553
m$(Byte, ["valueOf$S","valueOf$B","valueOf$S$I"],

0 commit comments

Comments
 (0)