Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cf85adbd authored by Jerome Pilliet's avatar Jerome Pilliet Committed by Steve Kondik
Browse files

Some changes added to compile and run with Java 6 and Java 7.

  - correction of errors with Javac 6:
    - fields accessibility of generic class.

Change-Id: Ice8a707450cd07f1c562c826af644153a30e8cfe
parent 3afe270b
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -56,13 +56,12 @@ public class LinkedNode {
        }

        public T nextOf(T node) {
            return (T) (node.mNext == mHead ? null : node.mNext);
            return (T) (((LinkedNode)node).mNext == mHead ? null : ((LinkedNode)node).mNext);
        }

        public T previousOf(T node) {
            return (T) (node.mPrev == mHead ? null : node.mPrev);
            return (T) (((LinkedNode)node).mPrev == mHead ? null : ((LinkedNode)node).mPrev);
        }

    }

    public static <T extends LinkedNode> List<T> newList() {