{"action":"created","issue":{"url":"https://api.github.com/repos/aaronjwood/PortAuthority/issues/90","repository_url":"https://api.github.com/repos/aaronjwood/PortAuthority","labels_url":"https://api.github.com/repos/aaronjwood/PortAuthority/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/aaronjwood/PortAuthority/issues/90/comments","events_url":"https://api.github.com/repos/aaronjwood/PortAuthority/issues/90/events","html_url":"https://github.com/aaronjwood/PortAuthority/issues/90","id":280089201,"number":90,"title":"Unnecessary code?","user":{"login":"goodandrewsoft","id":2471892,"avatar_url":"https://avatars0.githubusercontent.com/u/2471892?v=4","gravatar_id":"","url":"https://api.github.com/users/goodandrewsoft","html_url":"https://github.com/goodandrewsoft","followers_url":"https://api.github.com/users/goodandrewsoft/followers","following_url":"https://api.github.com/users/goodandrewsoft/following{/other_user}","gists_url":"https://api.github.com/users/goodandrewsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/goodandrewsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goodandrewsoft/subscriptions","organizations_url":"https://api.github.com/users/goodandrewsoft/orgs","repos_url":"https://api.github.com/users/goodandrewsoft/repos","events_url":"https://api.github.com/users/goodandrewsoft/events{/privacy}","received_events_url":"https://api.github.com/users/goodandrewsoft/received_events","type":"User","site_admin":false},"labels":[{"id":156734397,"url":"https://api.github.com/repos/aaronjwood/PortAuthority/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":{"login":"aaronjwood","id":446283,"avatar_url":"https://avatars2.githubusercontent.com/u/446283?v=4","gravatar_id":"","url":"https://api.github.com/users/aaronjwood","html_url":"https://github.com/aaronjwood","followers_url":"https://api.github.com/users/aaronjwood/followers","following_url":"https://api.github.com/users/aaronjwood/following{/other_user}","gists_url":"https://api.github.com/users/aaronjwood/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronjwood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronjwood/subscriptions","organizations_url":"https://api.github.com/users/aaronjwood/orgs","repos_url":"https://api.github.com/users/aaronjwood/repos","events_url":"https://api.github.com/users/aaronjwood/events{/privacy}","received_events_url":"https://api.github.com/users/aaronjwood/received_events","type":"User","site_admin":false},"assignees":[{"login":"aaronjwood","id":446283,"avatar_url":"https://avatars2.githubusercontent.com/u/446283?v=4","gravatar_id":"","url":"https://api.github.com/users/aaronjwood","html_url":"https://github.com/aaronjwood","followers_url":"https://api.github.com/users/aaronjwood/followers","following_url":"https://api.github.com/users/aaronjwood/following{/other_user}","gists_url":"https://api.github.com/users/aaronjwood/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronjwood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronjwood/subscriptions","organizations_url":"https://api.github.com/users/aaronjwood/orgs","repos_url":"https://api.github.com/users/aaronjwood/repos","events_url":"https://api.github.com/users/aaronjwood/events{/privacy}","received_events_url":"https://api.github.com/users/aaronjwood/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2017-12-07T11:07:51Z","updated_at":"2017-12-07T16:33:53Z","closed_at":null,"author_association":"NONE","body":"This question does not try to compromise you, but is only educational for personal purposes.\r\n\r\nI've modified your [method](https://github.com/aaronjwood/PortAuthority/blob/bca2f030199795cd9549f86b9848de183497bc5d/app/src/main/java/com/aaronjwood/portauthority/network/Wireless.java#L120) a little: \r\n\r\nMy debugger:\r\n![image](https://user-images.githubusercontent.com/2471892/33711998-91587182-db4e-11e7-8c98-8c8889c2d26e.png)\r\n\r\nIs it this code\r\n```java\r\n...\r\nbyte[] ipByteArray = BigInteger.valueOf(ip).toByteArray();\r\nfinal int value = new BigInteger(InetAddress.getByAddress(ipByteArray).getAddress()).intValue();\r\n...\r\n```\r\n\r\nis necessery? If **yes**, why?\r\n"},"comment":{"url":"https://api.github.com/repos/aaronjwood/PortAuthority/issues/comments/350021974","html_url":"https://github.com/aaronjwood/PortAuthority/issues/90#issuecomment-350021974","issue_url":"https://api.github.com/repos/aaronjwood/PortAuthority/issues/90","id":350021974,"user":{"login":"aaronjwood","id":446283,"avatar_url":"https://avatars2.githubusercontent.com/u/446283?v=4","gravatar_id":"","url":"https://api.github.com/users/aaronjwood","html_url":"https://github.com/aaronjwood","followers_url":"https://api.github.com/users/aaronjwood/followers","following_url":"https://api.github.com/users/aaronjwood/following{/other_user}","gists_url":"https://api.github.com/users/aaronjwood/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronjwood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronjwood/subscriptions","organizations_url":"https://api.github.com/users/aaronjwood/orgs","repos_url":"https://api.github.com/users/aaronjwood/repos","events_url":"https://api.github.com/users/aaronjwood/events{/privacy}","received_events_url":"https://api.github.com/users/aaronjwood/received_events","type":"User","site_admin":false},"created_at":"2017-12-07T16:33:53Z","updated_at":"2017-12-07T16:33:53Z","author_association":"OWNER","body":"I see, I misunderstood your question. You're right that I can get rid of the `BigInteger` usage inside of the `else` block."}}
{"actor":{"display_login":"aaronjwood"}}