File tree Expand file tree Collapse file tree 6 files changed +12
-0
lines changed
sources/net.sf.j2s.java.core/src/java/lang Expand file tree Collapse file tree 6 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ Byte.prototype.valueOf = function () { return 0; };
7
7
Byte . toString = Byte . prototype . toString = function ( ) {
8
8
if ( arguments . length != 0 ) {
9
9
return "" + arguments [ 0 ] ;
10
+ } else if ( this == Byte ) {
11
+ return "[Byte]" ; // Byte.toString
10
12
}
11
13
return "" + this . valueOf ( ) ;
12
14
} ;
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ Double.prototype.valueOf = function () { return 0; };
7
7
Double . toString = Double . prototype . toString = function ( ) {
8
8
if ( arguments . length != 0 ) {
9
9
return "" + arguments [ 0 ] ;
10
+ } else if ( this == Double ) {
11
+ return "[Double]" ; // Double.toString
10
12
}
11
13
return "" + this . valueOf ( ) ;
12
14
} ;
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ Float.prototype.valueOf = function () { return 0; };
7
7
Float . toString = Float . prototype . toString = function ( ) {
8
8
if ( arguments . length != 0 ) {
9
9
return "" + arguments [ 0 ] ;
10
+ } else if ( this == Float ) {
11
+ return "[Float]" ; // Float.toString
10
12
}
11
13
return "" + this . valueOf ( ) ;
12
14
} ;
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ Integer.prototype.valueOf = function () { return 0; };
7
7
Integer . toString = Integer . prototype . toString = function ( ) {
8
8
if ( arguments . length != 0 ) {
9
9
return "" + arguments [ 0 ] ;
10
+ } else if ( this == Integer ) {
11
+ return "[Integer]" ; // Integer.toString
10
12
}
11
13
return "" + this . valueOf ( ) ;
12
14
} ;
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ Long.prototype.valueOf = function () { return 0; };
7
7
Long . toString = Long . prototype . toString = function ( ) {
8
8
if ( arguments . length != 0 ) {
9
9
return "" + arguments [ 0 ] ;
10
+ } else if ( this == Long ) {
11
+ return "[Long]" ; // Long.toString
10
12
}
11
13
return "" + this . valueOf ( ) ;
12
14
} ;
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ Short.prototype.valueOf = function () { return 0; };
7
7
Short . toString = Short . prototype . toString = function ( ) {
8
8
if ( arguments . length != 0 ) {
9
9
return "" + arguments [ 0 ] ;
10
+ } else if ( this == Short ) {
11
+ return "[Short]" ; // Short.toString
10
12
}
11
13
return "" + this . valueOf ( ) ;
12
14
} ;
You can’t perform that action at this time.
0 commit comments