mirror of
https://github.com/Xevion/leetcode.git
synced 2025-12-06 15:15:29 -06:00
Properly paramterize raw type Map.Entry
This commit is contained in:
@@ -21,7 +21,7 @@ class Solution {
|
||||
// Building the final st
|
||||
StringBuilder sb = new StringBuilder();
|
||||
while (!pq.isEmpty()) {
|
||||
Map.Entry entry = pq.poll();
|
||||
Map.Entry<Character, Integer> entry = pq.poll();
|
||||
char v = (char) entry.getKey();
|
||||
int n = (int) entry.getValue();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user