1 package com.github.sevntu.checkstyle.checks.coding;
2
3 import java.util.StringTokenizer;
4
5 public class InputRedundantReturnFalsePositive
6 {
7 public InputRedundantReturnFalsePositive(String text) {
8 try {
9 StringTokenizer toks = new StringTokenizer(text, ";\n\r");
10 while (toks.hasMoreTokens()) {
11 String tok = toks.nextToken().trim();
12 String name = "", value = "";
13 if (tok.length() == 0) {
14 return;
15 }
16 set(name, value);
17 }
18 } catch (Exception e) {
19 throw new IllegalArgumentException("invalid decoration specification: '" + text + "'"
20 + (e.getMessage() != null ? ": " + e.getMessage() : ""), e);
21 }
22 }
23
24 private void set(String name, String value)
25 {
26 try {
27
28 } catch (Exception e) {
29
30 } finally {
31
32 }
33 }
34
35 public void serve(String req, String resp)
36 throws Exception {
37 String out = resp.concat("");
38 try {
39 resp.concat(
40 new String("Screen executed successfully"));
41 } catch (Exception ase) {
42 if (ase instanceof Object) {
43 return;
44 } else {
45 throw ase;
46 }
47 } catch (Error ex) {
48 resp.concat(new String(ex.getMessage()));
49 throw ex;
50 }
51
52 try {
53 out.trim();
54 out.trim();
55 } catch (Exception ex) {
56 throw new Exception(ex);
57 }
58 }
59
60 }