{"action":"created","comment":{"url":"https://api.github.com/repos/Prof-Calebe/substituicao/pulls/comments/88772731","pull_request_review_id":9339356,"id":88772731,"diff_hunk":"@@ -29,264 +29,360 @@\n  * @author Thiago Lima\r\n  */\r\n public class NotificacaoService {\r\n-    \r\n+\r\n+    /**\r\n+     * Attribute:  ausenciaController\r\n+     */\r\n     private final AusenciaJpaController ausenciaController;\r\n \r\n+    /**\r\n+     * Attribute:  profController\r\n+     */\r\n     private final ProfessorJpaController profController;\r\n     \r\n-    public NotificacaoService(){\r\n-        EntityManagerFactory emf = Persistence.createEntityManagerFactory(\"pro_subPU\");\r\n-        ausenciaController = new AusenciaJpaController(emf);\r\n-//        periodoController = new PeriodoJpaController(emf);\r\n-        profController = new ProfessorJpaController(emf);\r\n+    /**\r\n+     * Attribute: firstFormat\r\n+     */\r\n+    private static final String firstFormat = \"dd/MM/yyyy HH:mm\";\r\n+\r\n+    /**\r\n+     * Default constructor\r\n+     */\r\n+    public NotificacaoService() {\r\n+        EntityManagerFactory emf = \r\n+                Persistence.createEntityManagerFactory(\"pro_subPU\");\r\n+        this.ausenciaController = new AusenciaJpaController(emf);\r\n+        this.profController = new ProfessorJpaController(emf);\r\n     }\r\n-    \r\n-    public String notificarAusencia(Long idProfessor, String dataInicio, String dataFim, String motivo, List<String> nomesProfessoresIndicados) throws ParseException {\r\n-        \r\n+\r\n+    /**\r\n+     * Método para notificar ausência.\r\n+     * @param idProfessor\r\n+     * @param dataInicio\r\n+     * @param dataFim\r\n+     * @param motivo\r\n+     * @param nomesProfessoresIndicados\r\n+     * @return string de confirmação\r\n+     * @throws ParseException \r\n+     */\r\n+    public String notificarAusencia(\r\n+            Long idProfessor,\r\n+            String dataInicio,\r\n+            String dataFim,\r","path":"src/servico/NotificacaoService.java","position":71,"original_position":71,"commit_id":"074c09bd067b986b04d1b5c8524f25c05ad1a93c","original_commit_id":"074c09bd067b986b04d1b5c8524f25c05ad1a93c","user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars.githubusercontent.com/u/19940114?v=3","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://www.codacy.com/assets/images/favicon.png) Issue found: [Expected @param tag for 'dataFim'.](https://www.codacy.com/app/calebepb/substituicao/file/4475564507/issues/source?bid=3364462&fileBranchId=3922594#l71)","created_at":"2016-11-19T04:58:03Z","updated_at":"2016-11-19T04:58:03Z","html_url":"https://github.com/Prof-Calebe/substituicao/pull/169#discussion_r88772731","pull_request_url":"https://api.github.com/repos/Prof-Calebe/substituicao/pulls/169","_links":{"self":{"href":"https://api.github.com/repos/Prof-Calebe/substituicao/pulls/comments/88772731"},"html":{"href":"https://github.com/Prof-Calebe/substituicao/pull/169#discussion_r88772731"},"pull_request":{"href":"https://api.github.com/repos/Prof-Calebe/substituicao/pulls/169"}}},"pull_request":{"url":"https://api.github.com/repos/Prof-Calebe/substituicao/pulls/169","id":94458686,"html_url":"https://github.com/Prof-Calebe/substituicao/pull/169","diff_url":"https://github.com/Prof-Calebe/substituicao/pull/169.diff","patch_url":"https://github.com/Prof-Calebe/substituicao/pull/169.patch","issue_url":"https://api.github.com/repos/Prof-Calebe/substituicao/issues/169","number":169,"state":"open","locked":false,"title":"[WIP] Issue 136b","user":{"login":"juliobertolacini","id":21312024,"avatar_url":"https://avatars.githubusercontent.com/u/21312024?v=3","gravatar_id":"","url":"https://api.github.com/users/juliobertolacini","html_url":"https://github.com/juliobertolacini","followers_url":"https://api.github.com/users/juliobertolacini/followers","following_url":"https://api.github.com/users/juliobertolacini/following{/other_user}","gists_url":"https://api.github.com/users/juliobertolacini/gists{/gist_id}","starred_url":"https://api.github.com/users/juliobertolacini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juliobertolacini/subscriptions","organizations_url":"https://api.github.com/users/juliobertolacini/orgs","repos_url":"https://api.github.com/users/juliobertolacini/repos","events_url":"https://api.github.com/users/juliobertolacini/events{/privacy}","received_events_url":"https://api.github.com/users/juliobertolacini/received_events","type":"User","site_admin":false},"body":"# [Branch issue-136b](#169) **[Work in progress]**\r\n> ### [Issue 136](#136) - Melhorar a qualidade da classe src/servico/NotificacaoService.java\r\n> **Description:** Observar comentários do Codacy e melhorar a qualidade da classe [NotificacaoService.java]()\r\n> **Submitted by:** @YsabelleSousa\r\n\r\n* Status:  **[Not ready to merge]** -> branch/`dev`\r\n* **Description:** Opening a pull request for branch/dev just to check Codacy reports.\r\n* **A pedido do Prof. @calebepb, estou trabalhando novamente em uma issue já atribuída a outro aluno.**","created_at":"2016-11-19T00:05:47Z","updated_at":"2016-11-19T04:58:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c439e43b0165934f7547442d6400cc43511dd4e2","assignee":{"login":"juliobertolacini","id":21312024,"avatar_url":"https://avatars.githubusercontent.com/u/21312024?v=3","gravatar_id":"","url":"https://api.github.com/users/juliobertolacini","html_url":"https://github.com/juliobertolacini","followers_url":"https://api.github.com/users/juliobertolacini/followers","following_url":"https://api.github.com/users/juliobertolacini/following{/other_user}","gists_url":"https://api.github.com/users/juliobertolacini/gists{/gist_id}","starred_url":"https://api.github.com/users/juliobertolacini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juliobertolacini/subscriptions","organizations_url":"https://api.github.com/users/juliobertolacini/orgs","repos_url":"https://api.github.com/users/juliobertolacini/repos","events_url":"https://api.github.com/users/juliobertolacini/events{/privacy}","received_events_url":"https://api.github.com/users/juliobertolacini/received_events","type":"User","site_admin":false},"assignees":[{"login":"juliobertolacini","id":21312024,"avatar_url":"https://avatars.githubusercontent.com/u/21312024?v=3","gravatar_id":"","url":"https://api.github.com/users/juliobertolacini","html_url":"https://github.com/juliobertolacini","followers_url":"https://api.github.com/users/juliobertolacini/followers","following_url":"https://api.github.com/users/juliobertolacini/following{/other_user}","gists_url":"https://api.github.com/users/juliobertolacini/gists{/gist_id}","starred_url":"https://api.github.com/users/juliobertolacini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juliobertolacini/subscriptions","organizations_url":"https://api.github.com/users/juliobertolacini/orgs","repos_url":"https://api.github.com/users/juliobertolacini/repos","events_url":"https://api.github.com/users/juliobertolacini/events{/privacy}","received_events_url":"https://api.github.com/users/juliobertolacini/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/Prof-Calebe/substituicao/milestones/2","html_url":"https://github.com/Prof-Calebe/substituicao/milestones/v0.2","labels_url":"https://api.github.com/repos/Prof-Calebe/substituicao/milestones/2/labels","id":2087529,"number":2,"title":"v0.2","description":"","creator":{"login":"calebepb","id":1561812,"avatar_url":"https://avatars.githubusercontent.com/u/1561812?v=3","gravatar_id":"","url":"https://api.github.com/users/calebepb","html_url":"https://github.com/calebepb","followers_url":"https://api.github.com/users/calebepb/followers","following_url":"https://api.github.com/users/calebepb/following{/other_user}","gists_url":"https://api.github.com/users/calebepb/gists{/gist_id}","starred_url":"https://api.github.com/users/calebepb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calebepb/subscriptions","organizations_url":"https://api.github.com/users/calebepb/orgs","repos_url":"https://api.github.com/users/calebepb/repos","events_url":"https://api.github.com/users/calebepb/events{/privacy}","received_events_url":"https://api.github.com/users/calebepb/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":6,"state":"open","created_at":"2016-10-23T19:47:29Z","updated_at":"2016-11-19T00:14:18Z","due_on":"2016-11-27T00:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/Prof-Calebe/substituicao/pulls/169/commits","review_comments_url":"https://api.github.com/repos/Prof-Calebe/substituicao/pulls/169/comments","review_comment_url":"https://api.github.com/repos/Prof-Calebe/substituicao/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Prof-Calebe/substituicao/issues/169/comments","statuses_url":"https://api.github.com/repos/Prof-Calebe/substituicao/statuses/074c09bd067b986b04d1b5c8524f25c05ad1a93c","head":{"label":"Prof-Calebe:issue-136b","ref":"issue-136b","sha":"074c09bd067b986b04d1b5c8524f25c05ad1a93c","user":{"login":"Prof-Calebe","id":2390635,"avatar_url":"https://avatars.githubusercontent.com/u/2390635?v=3","gravatar_id":"","url":"https://api.github.com/users/Prof-Calebe","html_url":"https://github.com/Prof-Calebe","followers_url":"https://api.github.com/users/Prof-Calebe/followers","following_url":"https://api.github.com/users/Prof-Calebe/following{/other_user}","gists_url":"https://api.github.com/users/Prof-Calebe/gists{/gist_id}","starred_url":"https://api.github.com/users/Prof-Calebe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Prof-Calebe/subscriptions","organizations_url":"https://api.github.com/users/Prof-Calebe/orgs","repos_url":"https://api.github.com/users/Prof-Calebe/repos","events_url":"https://api.github.com/users/Prof-Calebe/events{/privacy}","received_events_url":"https://api.github.com/users/Prof-Calebe/received_events","type":"Organization","site_admin":false},"repo":{"id":12576034,"name":"substituicao","full_name":"Prof-Calebe/substituicao","owner":{"login":"Prof-Calebe","id":2390635,"avatar_url":"https://avatars.githubusercontent.com/u/2390635?v=3","gravatar_id":"","url":"https://api.github.com/users/Prof-Calebe","html_url":"https://github.com/Prof-Calebe","followers_url":"https://api.github.com/users/Prof-Calebe/followers","following_url":"https://api.github.com/users/Prof-Calebe/following{/other_user}","gists_url":"https://api.github.com/users/Prof-Calebe/gists{/gist_id}","starred_url":"https://api.github.com/users/Prof-Calebe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Prof-Calebe/subscriptions","organizations_url":"https://api.github.com/users/Prof-Calebe/orgs","repos_url":"https://api.github.com/users/Prof-Calebe/repos","events_url":"https://api.github.com/users/Prof-Calebe/events{/privacy}","received_events_url":"https://api.github.com/users/Prof-Calebe/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Prof-Calebe/substituicao","description":"Sistema de controle de Substituição de Professores","fork":false,"url":"https://api.github.com/repos/Prof-Calebe/substituicao","forks_url":"https://api.github.com/repos/Prof-Calebe/substituicao/forks","keys_url":"https://api.github.com/repos/Prof-Calebe/substituicao/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Prof-Calebe/substituicao/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Prof-Calebe/substituicao/teams","hooks_url":"https://api.github.com/repos/Prof-Calebe/substituicao/hooks","issue_events_url":"https://api.github.com/repos/Prof-Calebe/substituicao/issues/events{/number}","events_url":"https://api.github.com/repos/Prof-Calebe/substituicao/events","assignees_url":"https://api.github.com/repos/Prof-Calebe/substituicao/assignees{/user}","branches_url":"https://api.github.com/repos/Prof-Calebe/substituicao/branches{/branch}","tags_url":"https://api.github.com/repos/Prof-Calebe/substituicao/tags","blobs_url":"https://api.github.com/repos/Prof-Calebe/substituicao/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Prof-Calebe/substituicao/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Prof-Calebe/substituicao/git/refs{/sha}","trees_url":"https://api.github.com/repos/Prof-Calebe/substituicao/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Prof-Calebe/substituicao/statuses/{sha}","languages_url":"https://api.github.com/repos/Prof-Calebe/substituicao/languages","stargazers_url":"https://api.github.com/repos/Prof-Calebe/substituicao/stargazers","contributors_url":"https://api.github.com/repos/Prof-Calebe/substituicao/contributors","subscribers_url":"https://api.github.com/repos/Prof-Calebe/substituicao/subscribers","subscription_url":"https://api.github.com/repos/Prof-Calebe/substituicao/subscription","commits_url":"https://api.github.com/repos/Prof-Calebe/substituicao/commits{/sha}","git_commits_url":"https://api.github.com/repos/Prof-Calebe/substituicao/git/commits{/sha}","comments_url":"https://api.github.com/repos/Prof-Calebe/substituicao/comments{/number}","issue_comment_url":"https://api.github.com/repos/Prof-Calebe/substituicao/issues/comments{/number}","contents_url":"https://api.github.com/repos/Prof-Calebe/substituicao/contents/{+path}","compare_url":"https://api.github.com/repos/Prof-Calebe/substituicao/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Prof-Calebe/substituicao/merges","archive_url":"https://api.github.com/repos/Prof-Calebe/substituicao/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Prof-Calebe/substituicao/downloads","issues_url":"https://api.github.com/repos/Prof-Calebe/substituicao/issues{/number}","pulls_url":"https://api.github.com/repos/Prof-Calebe/substituicao/pulls{/number}","milestones_url":"https://api.github.com/repos/Prof-Calebe/substituicao/milestones{/number}","notifications_url":"https://api.github.com/repos/Prof-Calebe/substituicao/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Prof-Calebe/substituicao/labels{/name}","releases_url":"https://api.github.com/repos/Prof-Calebe/substituicao/releases{/id}","deployments_url":"https://api.github.com/repos/Prof-Calebe/substituicao/deployments","created_at":"2013-09-03T22:04:32Z","updated_at":"2016-11-07T02:48:22Z","pushed_at":"2016-11-19T04:56:05Z","git_url":"git://github.com/Prof-Calebe/substituicao.git","ssh_url":"git@github.com:Prof-Calebe/substituicao.git","clone_url":"https://github.com/Prof-Calebe/substituicao.git","svn_url":"https://github.com/Prof-Calebe/substituicao","homepage":null,"size":9663,"stargazers_count":4,"watchers_count":4,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":58,"forks":14,"open_issues":58,"watchers":4,"default_branch":"master"}},"base":{"label":"Prof-Calebe:dev","ref":"dev","sha":"413042ea1d644b99a114f8353fe8828897ef5463","user":{"login":"Prof-Calebe","id":2390635,"avatar_url":"https://avatars.githubusercontent.com/u/2390635?v=3","gravatar_id":"","url":"https://api.github.com/users/Prof-Calebe","html_url":"https://github.com/Prof-Calebe","followers_url":"https://api.github.com/users/Prof-Calebe/followers","following_url":"https://api.github.com/users/Prof-Calebe/following{/other_user}","gists_url":"https://api.github.com/users/Prof-Calebe/gists{/gist_id}","starred_url":"https://api.github.com/users/Prof-Calebe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Prof-Calebe/subscriptions","organizations_url":"https://api.github.com/users/Prof-Calebe/orgs","repos_url":"https://api.github.com/users/Prof-Calebe/repos","events_url":"https://api.github.com/users/Prof-Calebe/events{/privacy}","received_events_url":"https://api.github.com/users/Prof-Calebe/received_events","type":"Organization","site_admin":false},"repo":{"id":12576034,"name":"substituicao","full_name":"Prof-Calebe/substituicao","owner":{"login":"Prof-Calebe","id":2390635,"avatar_url":"https://avatars.githubusercontent.com/u/2390635?v=3","gravatar_id":"","url":"https://api.github.com/users/Prof-Calebe","html_url":"https://github.com/Prof-Calebe","followers_url":"https://api.github.com/users/Prof-Calebe/followers","following_url":"https://api.github.com/users/Prof-Calebe/following{/other_user}","gists_url":"https://api.github.com/users/Prof-Calebe/gists{/gist_id}","starred_url":"https://api.github.com/users/Prof-Calebe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Prof-Calebe/subscriptions","organizations_url":"https://api.github.com/users/Prof-Calebe/orgs","repos_url":"https://api.github.com/users/Prof-Calebe/repos","events_url":"https://api.github.com/users/Prof-Calebe/events{/privacy}","received_events_url":"https://api.github.com/users/Prof-Calebe/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Prof-Calebe/substituicao","description":"Sistema de controle de Substituição de Professores","fork":false,"url":"https://api.github.com/repos/Prof-Calebe/substituicao","forks_url":"https://api.github.com/repos/Prof-Calebe/substituicao/forks","keys_url":"https://api.github.com/repos/Prof-Calebe/substituicao/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Prof-Calebe/substituicao/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Prof-Calebe/substituicao/teams","hooks_url":"https://api.github.com/repos/Prof-Calebe/substituicao/hooks","issue_events_url":"https://api.github.com/repos/Prof-Calebe/substituicao/issues/events{/number}","events_url":"https://api.github.com/repos/Prof-Calebe/substituicao/events","assignees_url":"https://api.github.com/repos/Prof-Calebe/substituicao/assignees{/user}","branches_url":"https://api.github.com/repos/Prof-Calebe/substituicao/branches{/branch}","tags_url":"https://api.github.com/repos/Prof-Calebe/substituicao/tags","blobs_url":"https://api.github.com/repos/Prof-Calebe/substituicao/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Prof-Calebe/substituicao/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Prof-Calebe/substituicao/git/refs{/sha}","trees_url":"https://api.github.com/repos/Prof-Calebe/substituicao/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Prof-Calebe/substituicao/statuses/{sha}","languages_url":"https://api.github.com/repos/Prof-Calebe/substituicao/languages","stargazers_url":"https://api.github.com/repos/Prof-Calebe/substituicao/stargazers","contributors_url":"https://api.github.com/repos/Prof-Calebe/substituicao/contributors","subscribers_url":"https://api.github.com/repos/Prof-Calebe/substituicao/subscribers","subscription_url":"https://api.github.com/repos/Prof-Calebe/substituicao/subscription","commits_url":"https://api.github.com/repos/Prof-Calebe/substituicao/commits{/sha}","git_commits_url":"https://api.github.com/repos/Prof-Calebe/substituicao/git/commits{/sha}","comments_url":"https://api.github.com/repos/Prof-Calebe/substituicao/comments{/number}","issue_comment_url":"https://api.github.com/repos/Prof-Calebe/substituicao/issues/comments{/number}","contents_url":"https://api.github.com/repos/Prof-Calebe/substituicao/contents/{+path}","compare_url":"https://api.github.com/repos/Prof-Calebe/substituicao/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Prof-Calebe/substituicao/merges","archive_url":"https://api.github.com/repos/Prof-Calebe/substituicao/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Prof-Calebe/substituicao/downloads","issues_url":"https://api.github.com/repos/Prof-Calebe/substituicao/issues{/number}","pulls_url":"https://api.github.com/repos/Prof-Calebe/substituicao/pulls{/number}","milestones_url":"https://api.github.com/repos/Prof-Calebe/substituicao/milestones{/number}","notifications_url":"https://api.github.com/repos/Prof-Calebe/substituicao/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Prof-Calebe/substituicao/labels{/name}","releases_url":"https://api.github.com/repos/Prof-Calebe/substituicao/releases{/id}","deployments_url":"https://api.github.com/repos/Prof-Calebe/substituicao/deployments","created_at":"2013-09-03T22:04:32Z","updated_at":"2016-11-07T02:48:22Z","pushed_at":"2016-11-19T04:56:05Z","git_url":"git://github.com/Prof-Calebe/substituicao.git","ssh_url":"git@github.com:Prof-Calebe/substituicao.git","clone_url":"https://github.com/Prof-Calebe/substituicao.git","svn_url":"https://github.com/Prof-Calebe/substituicao","homepage":null,"size":9663,"stargazers_count":4,"watchers_count":4,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":58,"forks":14,"open_issues":58,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Prof-Calebe/substituicao/pulls/169"},"html":{"href":"https://github.com/Prof-Calebe/substituicao/pull/169"},"issue":{"href":"https://api.github.com/repos/Prof-Calebe/substituicao/issues/169"},"comments":{"href":"https://api.github.com/repos/Prof-Calebe/substituicao/issues/169/comments"},"review_comments":{"href":"https://api.github.com/repos/Prof-Calebe/substituicao/pulls/169/comments"},"review_comment":{"href":"https://api.github.com/repos/Prof-Calebe/substituicao/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Prof-Calebe/substituicao/pulls/169/commits"},"statuses":{"href":"https://api.github.com/repos/Prof-Calebe/substituicao/statuses/074c09bd067b986b04d1b5c8524f25c05ad1a93c"}}}}
{"actor":{"display_login":"codacy-bot"}}