{"action":"closed","issue":{"url":"https://api.github.com/repos/phax/ph-schematron/issues/7","labels_url":"https://api.github.com/repos/phax/ph-schematron/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/phax/ph-schematron/issues/7/comments","events_url":"https://api.github.com/repos/phax/ph-schematron/issues/7/events","html_url":"https://github.com/phax/ph-schematron/issues/7","id":64230388,"number":7,"title":"ResourceErrorGroup.containsOnlySuccess issue","user":{"login":"czajek","id":2733519,"avatar_url":"https://avatars.githubusercontent.com/u/2733519?v=3","gravatar_id":"","url":"https://api.github.com/users/czajek","html_url":"https://github.com/czajek","followers_url":"https://api.github.com/users/czajek/followers","following_url":"https://api.github.com/users/czajek/following{/other_user}","gists_url":"https://api.github.com/users/czajek/gists{/gist_id}","starred_url":"https://api.github.com/users/czajek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/czajek/subscriptions","organizations_url":"https://api.github.com/users/czajek/orgs","repos_url":"https://api.github.com/users/czajek/repos","events_url":"https://api.github.com/users/czajek/events{/privacy}","received_events_url":"https://api.github.com/users/czajek/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-25T09:49:11Z","updated_at":"2015-03-25T10:29:24Z","closed_at":"2015-03-25T10:29:24Z","body":"ResourceErrorGroup.containsOnlySuccess method returns false instead of true in first condition.  If m_aErrors is empty, this method should return true. \r\n\r\npublic boolean containsOnlySuccess ()\r\n  {\r\n    if (m_aErrors.isEmpty ())\r\n      return false;\r\n    for (final IResourceError aError : m_aErrors)\r\n      if (aError.isFailure ())\r\n        return false;\r\n    return true;\r\n  }"}}