question: private static boolean isFrostWireOld ( String messageVersion ) { if ( messageVersion == null ) return false ; String currentVersion = FrostWireUtils . getFrostWireVersion ( ) ; if ( currentVersion . equals ( messageVersion ) ) { return false ; } try { String [ ] fwVersionParts = currentVersion . split ( "\\." ) ; int fw_major = Integer . parseInt ( fwVersionParts [ 0 ] ) ; int fw_release = Integer . parseInt ( fwVersionParts [ 1 ] ) ; int fw_service = Integer . parseInt ( fwVersionParts [ 2 ] ) ; String [ ] msgVersionParts = messageVersion . split ( "\\." ) ; int msg_major = Integer . parseInt ( msgVersionParts [ 0 ] ) ; int msg_release = Integer . parseInt ( msgVersionParts [ 1 ] ) ; int msg_service = Integer . parseInt ( msgVersionParts [ 2 ] ) ; if ( fw_major < msg_major ) { return true ; } if ( fw_major == msg_major && fw_release < msg_release ) { return true ; } if ( fw_major == msg_major && fw_release == msg_release && fw_service < msg_service ) { return true ; } } catch ( Exception e ) { return false ; } return false ; }
target:  Given a version string, it compares against the current frostwire version. If frostwire is old, it will return true. <p> A valid version string looks like this: "MAJOR.RELEASE.SERVICE" <p> 4.13.1 4.13.2 ... 4.13.134 <p> It will compare each number of the current version to the version published by the update message.