File tree Expand file tree Collapse file tree
sources/net.sf.j2s.java.core/src/java/lang Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ return Boolean.toBoolean (s);
3030} , "~S" ) ;
3131Clazz . defineMethod ( Boolean , "booleanValue" ,
3232function ( ) {
33- return this . value ;
33+ return this . valueOf ( ) ;
3434} ) ;
3535Boolean . $valueOf = Clazz . defineMethod ( Boolean , "$valueOf" ,
3636function ( b ) {
@@ -55,7 +55,7 @@ return this.valueOf () ? 1231 : 1237;
5555Clazz . overrideMethod ( Boolean , "equals" ,
5656function ( obj ) {
5757if ( Clazz . instanceOf ( obj , Boolean ) ) {
58- return this . value == ( obj ) . booleanValue ( ) ;
58+ return this . valueOf ( ) == ( obj ) . booleanValue ( ) ;
5959} return false ;
6060} , "~O" ) ;
6161Boolean . getBoolean = Clazz . defineMethod ( Boolean , "getBoolean" ,
@@ -74,7 +74,7 @@ return result;
7474} , "~S" ) ;
7575Clazz . overrideMethod ( Boolean , "compareTo" ,
7676function ( b ) {
77- return ( b . value == this . value ? 0 : ( this . value ? 1 : - 1 ) ) ;
77+ return ( b . value == this . valueOf ( ) ? 0 : ( this . valueOf ( ) ? 1 : - 1 ) ) ;
7878} , "Boolean" ) ;
7979Boolean . toBoolean = Clazz . defineMethod ( Boolean , "toBoolean" ,
8080( $fz = function ( name ) {
You can’t perform that action at this time.
0 commit comments