royale-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From carlosrov...@apache.org
Subject [royale-asjs] branch develop updated: fix unreachable code (return null; ) in mx ArrayList
Date Sat, 27 Oct 2018 14:05:36 GMT
This is an automated email from the ASF dual-hosted git repository.

carlosrovira pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new 717d72d  fix unreachable code (return null;) in mx ArrayList
717d72d is described below

commit 717d72df5f2b67bb36ae0955532cb150b86587bf
Author: Carlos Rovira <carlosrovira@apache.org>
AuthorDate: Sat Oct 27 16:05:29 2018 +0200

    fix unreachable code (return null;) in mx ArrayList
---
 .../projects/MXRoyale/src/main/royale/mx/collections/ArrayList.as | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/collections/ArrayList.as b/frameworks/projects/MXRoyale/src/main/royale/mx/collections/ArrayList.as
index 0375f72..1c0a614 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/collections/ArrayList.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/collections/ArrayList.as
@@ -307,7 +307,7 @@ public class ArrayList extends EventDispatcher
             var message:String = resourceManager.getString(
                 "collections", "outOfBounds", [ index ]);
             throw new RangeError(message);
-			return null;
+			// return null;
         }
             
         return source[index];
@@ -335,7 +335,7 @@ public class ArrayList extends EventDispatcher
             var message:String = resourceManager.getString(
                 "collections", "outOfBounds", [ index ]);
             throw new RangeError(message);
-			return null;
+			// return null;
         }
         
         var oldItem:Object = source[index];
@@ -429,7 +429,7 @@ public class ArrayList extends EventDispatcher
             var message:String = resourceManager.getString(
                 "collections", "outOfBounds", [ index ]);
             throw new RangeError(message);
-			return;
+			// return;
         }
 
         startTrackUpdates(item);
@@ -559,7 +559,7 @@ public class ArrayList extends EventDispatcher
             var message:String = resourceManager.getString(
                 "collections", "outOfBounds", [ index ]);
             throw new RangeError(message);
-			return null;
+			// return null;
         }
 
         stopTrackUpdates(removed);


Mime
View raw message