Changed Object to Element. (sonarcloud)

This commit is contained in:
Erik C. Thauvin 2020-03-18 18:24:03 -07:00
parent b4345015c3
commit fa2eb27a1a

View file

@ -154,8 +154,8 @@ public final class CurrencyConverter extends ThreadedModule {
final List<Element> cubes = cubeTime.getChildren();
Element cube;
for (final Object rawCube : cubes) {
cube = (Element) rawCube;
for (final Element rawCube : cubes) {
cube = rawCube;
EXCHANGE_RATES.put(
cube.getAttribute("currency").getValue(),
cube.getAttribute("rate").getValue());