-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
devices: remove casts to XBeeDevice class
- New extensions or layers of the XBee Java library (such as the XBee Library for Android) can add new devices extending the AbstractXBeeDevice class. This means that we cannot expect to always have an XBeeDevice object in internal constructors or methods of the library. Thus, all casts to XBeeDevice had to disappear. - In order to remove casts to XBeeDevice, most methods and constructors that where using an XBeeDevice as parameter had to change to AbstractXBeeDevice. XBeeDevice inherits from AbstractXBeeDevice, so there shouldn't be any problem with examples or code already written by clients. - Moved the class DataReader to the root path of the library so that it can access the protected method 'getNetwork()' of XBee devices. DataReader is an internal class used by the AbstractXBeeDevice one. So again, there shouldn't be any problem with code already written. - Added IllegalArgumentException to some methods and constructors that are now using the AbstractXBeeDevice as parameter when the AbstractXBeeDevice is a remote device. - Updated references in test cases. Signed-off-by: Diego Escalona <[email protected]>
- Loading branch information
Showing
31 changed files
with
219 additions
and
216 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.