Changeset 8465fe7 for router


Ignore:
Timestamp:
Jan 28, 2019 3:22:17 PM (16 months ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
a51a6d57
Parents:
0801d20
Message:

fix build warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/com/maxmind/db/Metadata.java

    r0801d20 r8465fe7  
    1515    private final String databaseType;
    1616
    17     private final Map description;
     17    private final Map<String, String> description;
    1818
    1919    private final int ipVersion;
    2020
    21     private final List languages;
     21    private final List<String> languages;
    2222
    2323    private final int nodeByteSize;
     
    2929    private final int searchTreeSize;
    3030
     31    @SuppressWarnings("unchecked")
    3132    Metadata(Map metadata) {
    3233        this.binaryFormatMajorVersion = getInt(metadata,
     
    3637        this.buildEpoch = getLong(metadata, "build_epoch");
    3738        this.databaseType = getString(metadata, "database_type");
    38         this.languages = (List) metadata.get("languages");
    39         this.description = (Map) metadata.get("description");
     39        this.languages = (List<String>) metadata.get("languages");
     40        this.description = (Map<String, String>) metadata.get("description");
    4041        this.ipVersion = getInt(metadata, "ip_version");
    4142        this.nodeCount = getInt(metadata, "node_count");
Note: See TracChangeset for help on using the changeset viewer.