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