Skip to content
Snippets Groups Projects
Unverified Commit 17b9260b authored by User expired's avatar User expired
Browse files

fixed some findbugs warnings

parent adbbe4ff
No related branches found
No related tags found
No related merge requests found
Upcoming version: Upcoming version:
----------------- -----------------
- fixed some findbugs warnings (Nikolaus Krismer)
- implemented various different types for node queue (Nikolaus Krismer) - implemented various different types for node queue (Nikolaus Krismer)
- externalizing dependency versions (Nikolaus Krismer) - externalizing dependency versions (Nikolaus Krismer)
- added configuration for vienna (Nikolaus Krismer) - added configuration for vienna (Nikolaus Krismer)
......
...@@ -15,7 +15,7 @@ class NodeQueueBinaryHeap<T extends INode> implements INodeQueue<T> { ...@@ -15,7 +15,7 @@ class NodeQueueBinaryHeap<T extends INode> implements INodeQueue<T> {
// Constructor // Constructor
public NodeQueueBinaryHeap() { NodeQueueBinaryHeap() {
this.nodeQueue = BinaryHeapFactory.getInstance().create((n1, n2) -> n1.compareTo(n2)); this.nodeQueue = BinaryHeapFactory.getInstance().create((n1, n2) -> n1.compareTo(n2));
this.nodeQueueEntries = new HashMap<>(); this.nodeQueueEntries = new HashMap<>();
} }
......
...@@ -6,7 +6,7 @@ public final class NodeQueueFactory { ...@@ -6,7 +6,7 @@ public final class NodeQueueFactory {
private NodeQueueFactory() { } private NodeQueueFactory() { }
public final static <T extends INode> INodeQueue<T> getInstance(final QueueType type) { public static <T extends INode> INodeQueue<T> getInstance(final QueueType type) {
if (type == QueueType.BINARY_HEAP) { if (type == QueueType.BINARY_HEAP) {
return new NodeQueueBinaryHeap<>(); return new NodeQueueBinaryHeap<>();
} }
......
...@@ -11,7 +11,7 @@ class NodeQueueFibonacciHeap<T extends INode> implements INodeQueue<T> { ...@@ -11,7 +11,7 @@ class NodeQueueFibonacciHeap<T extends INode> implements INodeQueue<T> {
// Constructor // Constructor
public NodeQueueFibonacciHeap() { NodeQueueFibonacciHeap() {
// FibonacciHeap serves as a PriorityQueue (without the need to remove entries before adding them) // FibonacciHeap serves as a PriorityQueue (without the need to remove entries before adding them)
// To find HeapEntries we use a HashMap... // To find HeapEntries we use a HashMap...
// ...although we need two structures this is still way faster than using a PriorityQueue alone // ...although we need two structures this is still way faster than using a PriorityQueue alone
......
...@@ -9,7 +9,7 @@ class NodeQueuePriorityQueue<T extends INode> implements INodeQueue<T> { ...@@ -9,7 +9,7 @@ class NodeQueuePriorityQueue<T extends INode> implements INodeQueue<T> {
// Constructor // Constructor
public NodeQueuePriorityQueue() { NodeQueuePriorityQueue() {
this.nodeQueue = new PriorityQueue<>(); this.nodeQueue = new PriorityQueue<>();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment