{"action":"created","issue":{"url":"https://api.github.com/repos/teamed/qulice/issues/801","repository_url":"https://api.github.com/repos/teamed/qulice","labels_url":"https://api.github.com/repos/teamed/qulice/issues/801/labels{/name}","comments_url":"https://api.github.com/repos/teamed/qulice/issues/801/comments","events_url":"https://api.github.com/repos/teamed/qulice/issues/801/events","html_url":"https://github.com/teamed/qulice/issues/801","id":172721335,"number":801,"title":"Create UseStringIsEmpty check","user":{"login":"krzyk","id":105730,"avatar_url":"https://avatars.githubusercontent.com/u/105730?v=3","gravatar_id":"","url":"https://api.github.com/users/krzyk","html_url":"https://github.com/krzyk","followers_url":"https://api.github.com/users/krzyk/followers","following_url":"https://api.github.com/users/krzyk/following{/other_user}","gists_url":"https://api.github.com/users/krzyk/gists{/gist_id}","starred_url":"https://api.github.com/users/krzyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krzyk/subscriptions","organizations_url":"https://api.github.com/users/krzyk/orgs","repos_url":"https://api.github.com/users/krzyk/repos","events_url":"https://api.github.com/users/krzyk/events{/privacy}","received_events_url":"https://api.github.com/users/krzyk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/teamed/qulice/labels/30%20mins","name":"30 mins","color":"eb6421"},{"url":"https://api.github.com/repos/teamed/qulice/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/teamed/qulice/labels/DEV","name":"DEV","color":"bfd4f3"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-08-23T14:54:29Z","updated_at":"2016-09-02T07:42:58Z","closed_at":null,"body":"String has a method `isEmpty()` that should be used instead of `size()`:\r\n\r\n1. `data.size() > 0` (should be `!data.isEmpty()`)\r\n2. `data.size() == 0` (should be `data.isEmpty()`)\r\n3. `data.size() < 1` (should be `data.isEmpty()`)\r\n4. `data.size() >= 1` (should be `!data.isEmpty()`)\r\n\r\nThis is a very similar case to [UseCollectionsIsEmpty](https://pmd.github.io/pmd-5.5.1/pmd-java/rules/java/design.html#UseCollectionIsEmpty).\r\n\r\nPlease add such check, preferably using PMD checks.\r\n"},"comment":{"url":"https://api.github.com/repos/teamed/qulice/issues/comments/244305877","html_url":"https://github.com/teamed/qulice/issues/801#issuecomment-244305877","issue_url":"https://api.github.com/repos/teamed/qulice/issues/801","id":244305877,"user":{"login":"davvd","id":6305016,"avatar_url":"https://avatars.githubusercontent.com/u/6305016?v=3","gravatar_id":"","url":"https://api.github.com/users/davvd","html_url":"https://github.com/davvd","followers_url":"https://api.github.com/users/davvd/followers","following_url":"https://api.github.com/users/davvd/following{/other_user}","gists_url":"https://api.github.com/users/davvd/gists{/gist_id}","starred_url":"https://api.github.com/users/davvd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davvd/subscriptions","organizations_url":"https://api.github.com/users/davvd/orgs","repos_url":"https://api.github.com/users/davvd/repos","events_url":"https://api.github.com/users/davvd/events{/privacy}","received_events_url":"https://api.github.com/users/davvd/received_events","type":"User","site_admin":false},"created_at":"2016-09-02T07:42:58Z","updated_at":"2016-09-02T07:42:58Z","body":"> @davvd assign @amihaiemil\n\n@krzyk OK @amihaiemil please proceed, this task is yours"}}
{"actor":{"display_login":"davvd"}}