{"action":"opened","issue":{"url":"https://api.github.com/repos/maribel1995/Source-Code-Inspection/issues/8","repository_url":"https://api.github.com/repos/maribel1995/Source-Code-Inspection","labels_url":"https://api.github.com/repos/maribel1995/Source-Code-Inspection/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/maribel1995/Source-Code-Inspection/issues/8/comments","events_url":"https://api.github.com/repos/maribel1995/Source-Code-Inspection/issues/8/events","html_url":"https://github.com/maribel1995/Source-Code-Inspection/issues/8","id":179130526,"number":8,"title":"P8) Código - TicketMachine","user":{"login":"palomaaraujo","id":22193987,"avatar_url":"https://avatars.githubusercontent.com/u/22193987?v=3","gravatar_id":"","url":"https://api.github.com/users/palomaaraujo","html_url":"https://github.com/palomaaraujo","followers_url":"https://api.github.com/users/palomaaraujo/followers","following_url":"https://api.github.com/users/palomaaraujo/following{/other_user}","gists_url":"https://api.github.com/users/palomaaraujo/gists{/gist_id}","starred_url":"https://api.github.com/users/palomaaraujo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/palomaaraujo/subscriptions","organizations_url":"https://api.github.com/users/palomaaraujo/orgs","repos_url":"https://api.github.com/users/palomaaraujo/repos","events_url":"https://api.github.com/users/palomaaraujo/events{/privacy}","received_events_url":"https://api.github.com/users/palomaaraujo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-26T03:10:01Z","updated_at":"2016-09-26T03:10:01Z","closed_at":null,"body":"Classe: TicketMachine\r\nDefeito: Método não devia ter a verificação do saldo, a mesma devia ser delegada.\r\nTipo: Computação\r\n\r\n```\r\npublic String imprimir() throws SaldoInsuficienteException {\r\n        if (saldo < valor) {\r\n            throw new SaldoInsuficienteException();\r\n        }\r\n        String result = \"*****************\\n\";\r\n        result += \"*** R$ \" + saldo + \",00 ****\\n\";\r\n        result += \"*****************\\n\";\r\n        return result;\r\n    }\r\n```"}}
{"actor":{"display_login":"palomaaraujo"}}