Title: Source-Code-Inspection · Issue #7 · Prof-Calebe/Source-Code-Inspection · GitHub
Open Graph Title: Source-Code-Inspection · Issue #7 · Prof-Calebe/Source-Code-Inspection
X Title: Source-Code-Inspection · Issue #7 · Prof-Calebe/Source-Code-Inspection
Description: Classe > TicketMachine Sistema não informa se saldo é insuficiente. Categoria: Comissão > Severidade: Alta Correção: public String imprimir() throws SaldoInsuficienteException { if (saldo < valor) { System.out.println("O saldo é insufici...
Open Graph Description: Classe > TicketMachine Sistema não informa se saldo é insuficiente. Categoria: Comissão > Severidade: Alta Correção: public String imprimir() throws SaldoInsuficienteException { if (saldo < valor) ...
X Description: Classe > TicketMachine Sistema não informa se saldo é insuficiente. Categoria: Comissão > Severidade: Alta Correção: public String imprimir() throws SaldoInsuficienteException { if (saldo <...
Opengraph URL: https://github.com/Prof-Calebe/Source-Code-Inspection/issues/7
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Source-Code-Inspection","articleBody":"\u003e Classe \u003e TicketMachine\n\u003e Sistema não informa se saldo é insuficiente.\n\u003e Categoria: Comissão \u003e Severidade: Alta\n\n**Correção:**\n\n```\npublic String imprimir() throws SaldoInsuficienteException {\n if (saldo \u003c valor) {\n System.out.println(\"O saldo é insuficiente!\");\n throw new SaldoInsuficienteException();\n }\n String result = \"**************\\n\";\n result += \" R$ \" + saldo + \",00 *\\n\";\n result += \"**************\\n\";\n return result;\n }\n\n```\n\n\u003e Classe \u003e TicketMachine\n\u003e Sistema não valida se a nota devolvida foi retirada.\n\u003e Categoria: Comissão \u003e Severidade: Alta\n\n**Correção:**\n\n```\npublic void inserir(int amount) throws PapelMoedaInvalidaException {\n boolean found = false;\n int note = -1;\n System.out.println(\"Aguarde. O sistema está validando as notas.\");\n for (int i = 0; i \u003c papelMoeda.length \u0026\u0026 !found; i++) {\n if (papelMoeda[i] == amount) {\n found = true;\n }\n note = i;\n }\n if (!found) {\n while (!found) {\n refund(note);\n System.out.println(\"Retire a nota não aceita\");\n if (note == -1) {\n found = true;\n } else {\n note = -1;\n }\n }\n throw new PapelMoedaInvalidaException();\n } else {\n System.out.println(\"A nota de papel moeda $\" + papelMoeda[note] + \" foi aceita\");\n this.saldo += amount;\n System.out.println(\"O saldo atual é: \" + saldo);\n }\n }\n .\n .\n .\nvoid refund(int indice){\n papelMoeda[indice]--;\n }\n```\n","author":{"url":"https://github.com/merlinfachetti","@type":"Person","name":"merlinfachetti"},"datePublished":"2016-03-28T02:21:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/7/Source-Code-Inspection/issues/7"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d06da80b-3b0a-856f-3a2a-46c743569f64 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8C5C:259088:637AD24:83CD5F5:6A5DD643 |
| html-safe-nonce | 0b3e710f72941f66427756ca309c53a8cc7d48c3181a9a176d6cff113a21316f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QzVDOjI1OTA4ODo2MzdBRDI0OjgzQ0Q1RjU6NkE1REQ2NDMiLCJ2aXNpdG9yX2lkIjoiNjUzOTk4MTU5MTQyMzA4MDAwMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 179b37fd85616d9861ef7cb55d26385e319daee8d5fce931c311b8a45144d08e |
| hovercard-subject-tag | issue:143874577 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/Prof-Calebe/Source-Code-Inspection/7/issue_layout |
| twitter:image | https://opengraph.githubassets.com/dccc7ff6eecbc7343dfb8b5aea21540707ea7a09a1c11e5ecf3353540546dbb2/Prof-Calebe/Source-Code-Inspection/issues/7 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/dccc7ff6eecbc7343dfb8b5aea21540707ea7a09a1c11e5ecf3353540546dbb2/Prof-Calebe/Source-Code-Inspection/issues/7 |
| og:image:alt | Classe > TicketMachine Sistema não informa se saldo é insuficiente. Categoria: Comissão > Severidade: Alta Correção: public String imprimir() throws SaldoInsuficienteException { if (saldo < valor) ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | merlinfachetti |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| go-import | github.com/Prof-Calebe/Source-Code-Inspection git https://github.com/Prof-Calebe/Source-Code-Inspection.git |
| octolytics-dimension-user_id | 2390635 |
| octolytics-dimension-user_login | Prof-Calebe |
| octolytics-dimension-repository_id | 8590050 |
| octolytics-dimension-repository_nwo | Prof-Calebe/Source-Code-Inspection |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 8590050 |
| octolytics-dimension-repository_network_root_nwo | Prof-Calebe/Source-Code-Inspection |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width