jmultimethod

multimethods for Java using annotations
git clone https://logand.com/git/jmultimethod.git/
Log | Files | Refs | LICENSE

commit 8bba03806d8ac1d30151bdb0d2cf31677c3e7122
parent f1507b1ff6bb1b5655ded6a42253ff5981ec7b5f
Author: Tomas Hlavaty <tom@logand.com>
Date:   Sat, 26 Dec 2015 23:04:26 +0100

update comment, same as on webpage

Diffstat:
Msrc/jmultimethod/DispatchTest.java | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/jmultimethod/DispatchTest.java b/src/jmultimethod/DispatchTest.java @@ -48,8 +48,8 @@ public class DispatchTest { } static void run2() { System.out.println("Static: superclass typed"); - // here is a flaw: the variable type should not be - // specified, it should be infered by the compiler instead + // here is the problem: the declared variable type is used + // but it should be infered by the compiler instead Object a1 = new Asteroid("A1"); Object a2 = new Asteroid("A2"); Object s1 = new Spaceship("S1"); @@ -93,8 +93,8 @@ public class DispatchTest { } void run2() { System.out.println("Dynamic: superclass typed"); - // here is the flaw again: dispatch is on variable type - // instead of value type + // here is the problem: dispatch is on the declared + // variable type instead of the run-time value type Object a1 = new Asteroid("A1"); Object a2 = new Asteroid("A2"); Object s1 = new Spaceship("S1");