Simplify guessJsonFromFileName() 33/83933/1
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 23 Aug 2019 13:25:21 +0000 (15:25 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 23 Aug 2019 13:28:57 +0000 (15:28 +0200)
commitdb09b929088fd4ff1c71563e8a21f3308362a65c
treee9e979a172fa960b02bddc1580864b67fff649e2
parent4e554ed82052b72a72b9653cc469435d7618b51e
Simplify guessJsonFromFileName()

46 here means '.', so the logic is:
- if there is no '.', return false
- if there is, return true IFF the string after the last '.' equals
  to ".json" in whatever case combination

Change-Id: Idbd7716a7c37ba8e428a2ecaf60031d32a3adbab
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
netconf/sal-netconf-connector/src/main/java/org/opendaylight/netconf/sal/connect/netconf/LibraryModulesSchemas.java