ctf: Simplify StreamInputPacketReader
authorAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Wed, 15 Aug 2012 15:49:20 +0000 (11:49 -0400)
committerAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Thu, 23 Aug 2012 17:25:29 +0000 (13:25 -0400)
commit6bdc9facd4a5e4b642772ef32f5f68d376375abf
tree4d4348d9ed129a97ed83d69596bc30046b99cbe6
parenteeb388b178bed922963f869ce4e51e459cd82b16
ctf: Simplify StreamInputPacketReader

- Make all internal structures final, initialize them in
  the constructor.
- Remove all the public getters and setters for those, they
  are only used internally.
- Replace a couple more null checks by "instanceof" checks.
  (previously, if a field name was present but not of the
  right type, it would throw a ClassCastException)

Change-Id: If4376a6310b48737a45892399dbb935e647ef0d8
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/7241
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
IP-Clean: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/trace/StreamInputPacketReader.java
This page took 0.040381 seconds and 5 git commands to generate.