Changes to Modbus4J for Java 1.4 compliance.txt 905 B

12345678910111213141516171819202122232425262728293031323334353637
  1. NOTE: March 4 2014 the Serotonin classes need to be updated to reflect new changes.
  2. Contributed by Richard Jayawant
  3. Changes to Modbus4J source to make it compilable under Java 1.4
  4. ---------------------------------------------------------------
  5. Original sousrce code taken from modbus4j.cvs.sourceforge.net
  6. Annotations
  7. -----------
  8. Removed all annotations outside of JavaDoc comments, mainly @Override and @SuppressWarnings
  9. Generics
  10. --------
  11. Removed use of generics from all classes. Replaced generic return type <T> with java.lang.Object type.
  12. Autoboxing
  13. ----------
  14. Added cast expressions and new ObjType() wrapper expressions where neccesary to replace autoboxing behaviour not found in Java 1.4
  15. Enhanced for-statement
  16. ----------------------
  17. Removed all instances of the enhanced for statement and replaced it with a conventional for statement and the use of an iterator object.