1 Mining Source Code for Automatically Discovering Exception Management Anti-Patterns and Code Smell
_________________________________________________________________________________
2 FILE NAME : apache-jmeter-2.11\src\components\org\apache\jmeter\assertions\BeanShellAssertion.java
3 CATCH CLAUSE : catch (Exception ex) {
result.setError(true);
result.setFailureMessage(ex.toString());
log.warn(ex.toString());
}
4 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
5 FILE NAME : apache-jmeter-2.11\src\components\org\apache\jmeter\assertions\HTMLAssertion.java
6 CATCH CLAUSE : catch (Exception e) {
log.error("Unable to instantiate tidy parser",e);
result.setFailure(true);
result.setFailureMessage("Unable to instantiate tidy parser");
return result;
}
7 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
8 FILE NAME : apache-jmeter-2.11\src\components\org\apache\jmeter\assertions\HTMLAssertion.java
9 CATCH CLAUSE : catch (Exception e) {
log.warn("Cannot parse result content",e);
result.setFailure(true);
result.setFailureMessage(e.getMessage());
}
10 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
11 FILE NAME : apache-jmeter-2.11\src\components\org\apache\jmeter\control\IncludeController.java
12 CATCH CLAUSE : catch (Exception ex) {
String msg=ex.getMessage();
if (msg == null) {
msg="Unexpected error - see log for details";
}
JMeterUtils.reportErrorToUser(msg);
log.warn("Unexpected error",ex);
}
13 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
14 FILE NAME : apache-jmeter-2.11\src\components\org\apache\jmeter\extractor\XPathExtractor.java
15 CATCH CLAUSE : catch (ParserConfigurationException e) {
final String errrorMessage="ParserConfigurationException while processing (" + getXPathQuery() + ")";
log.error(errrorMessage,e);
throw new JMeterError(errrorMessage,e);
}
16 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
17 FILE NAME : apache-jmeter-2.11\src\components\org\apache\jmeter\reporters\MailerModel.java
18 CATCH CLAUSE : catch (Exception e) {
log.error("Problem sending mail: " + e);
}
19 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
20 FILE NAME : apache-jmeter-2.11\src\components\org\apache\jmeter\reporters\MailerModel.java
21 CATCH CLAUSE : catch (Exception e) {
log.error("Problem sending mail",e);
}
22 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
23 FILE NAME : apache-jmeter-2.11\src\components\org\apache\jmeter\visualizers\ComparisonVisualizer.java
24 CATCH CLAUSE : catch (Exception err) {
base.setText(JMeterUtils.getResString("comparison_invalid_node") + err);
secondary.setText(JMeterUtils.getResString("comparison_invalid_node") + err);
}
25 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
26 FILE NAME : apache-jmeter-2.11\src\components\org\apache\jmeter\visualizers\LineGraph.java
27 CATCH CLAUSE : catch (Exception e) {
log.error(e.getMessage());
}
28 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
29 FILE NAME : apache-jmeter-2.11\src\components\org\apache\jmeter\visualizers\RenderAsDocument.java
30 CATCH CLAUSE : catch (Exception e) {
results.setText(e.toString());
log.error("Error:",e);
}
31 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
32 FILE NAME : apache-jmeter-2.11\src\components\org\apache\jmeter\visualizers\RenderAsXPath.java
33 CATCH CLAUSE : catch (Exception e) {
return "Exception:" + ExceptionUtils.getStackTrace(e);
}
34 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
35 FILE NAME : apache-jmeter-2.11\src\components\org\apache\jmeter\visualizers\RenderAsXPath.java
36 CATCH CLAUSE : catch (Exception e) {
logger.error("Exception converting to XML:" + response + ", message:"+ e.getMessage(),e);
xmlDataField.setText("Exception converting to XML:" + response + ", message:"+ e.getMessage());
xmlDataField.setCaretPosition(0);
}
37 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
38 FILE NAME : apache-jmeter-2.11\src\components\org\apache\jmeter\visualizers\RequestPanel.java
39 CATCH CLAUSE : catch (Exception e) {
log.warn("Error in load result render:" + clazz,e);
}
40 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
41 FILE NAME : apache-jmeter-2.11\src\components\org\apache\jmeter\visualizers\RespTimeGraphVisualizer.java
42 CATCH CLAUSE : catch (Exception e) {
log.error(e.getMessage());
}
43 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
44 FILE NAME : apache-jmeter-2.11\src\components\org\apache\jmeter\visualizers\RespTimeGraphVisualizer.java
45 CATCH CLAUSE : catch (PatternSyntaxException pse) {
return null;
}
46 ANTI-PATTERN RNHR : just returns null instead of handling or re-throwing the exception, swallows the exception, losing the information forever
_________________________________________________________________________________
_________________________________________________________________________________
47 FILE NAME : apache-jmeter-2.11\src\components\org\apache\jmeter\visualizers\Spline3.java
48 CATCH CLAUSE : catch (Exception e) {
log.error("Error when interpolating : ",e);
}
49 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
50 FILE NAME : apache-jmeter-2.11\src\components\org\apache\jmeter\visualizers\StatGraphVisualizer.java
51 CATCH CLAUSE : catch (Exception e) {
log.error(e.getMessage());
}
52 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
53 FILE NAME : apache-jmeter-2.11\src\components\org\apache\jmeter\visualizers\StatGraphVisualizer.java
54 CATCH CLAUSE : catch (PatternSyntaxException pse) {
return null;
}
55 ANTI-PATTERN RNHR : just returns null instead of handling or re-throwing the exception, swallows the exception, losing the information forever
_________________________________________________________________________________
_________________________________________________________________________________
56 FILE NAME : apache-jmeter-2.11\src\components\org\apache\jmeter\visualizers\ViewResultsFullVisualizer.java
57 CATCH CLAUSE : catch (Exception e) {
log.warn("Error in load result render:" + clazz,e);
}
58 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
59 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\control\GenericController.java
60 CATCH CLAUSE : catch (StackOverflowError soe) {
log.warn("StackOverflowError detected");
throw new NextIsNullException("StackOverflowError detected",soe);
}
61 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
62 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\control\IfController.java
63 CATCH CLAUSE : catch (Exception e) {
logger.error(getName() + ": error while processing " + "["+ cond+ "]\n",e);
}
64 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
65 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\control\IfController.java
66 CATCH CLAUSE : catch (NextIsNullException e1) {
return null;
}
67 ANTI-PATTERN RNHR : just returns null instead of handling or re-throwing the exception, swallows the exception, losing the information forever
_________________________________________________________________________________
_________________________________________________________________________________
68 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\engine\ClientJMeterEngine.java
69 CATCH CLAUSE : catch (Exception ex) {
log.error("",ex);
}
70 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
71 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\engine\ClientJMeterEngine.java
72 CATCH CLAUSE : catch (Exception ex) {
log.error("Failed to reset remote engine",ex);
}
73 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
74 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\engine\ClientJMeterEngine.java
75 CATCH CLAUSE : catch (IllegalStateException ex) {
log.error("Error in " + methodName + " method "+ ex);
tidyRMI(log);
throw ex;
}
76 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
77 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\engine\ClientJMeterEngine.java
78 CATCH CLAUSE : catch (Exception ex) {
log.error("Error in " + methodName + " method "+ ex);
tidyRMI(log);
throw new JMeterEngineException("Error in " + methodName + " method "+ ex,ex);
}
79 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
80 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\engine\ClientJMeterEngine.java
81 CATCH CLAUSE : catch (Exception ex) {
log.error("Error in " + methodName + " method "+ ex);
tidyRMI(log);
throw new JMeterEngineException("Error in " + methodName + " method "+ ex,ex);
}
82 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
83 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\engine\RemoteJMeterEngineImpl.java
84 CATCH CLAUSE : catch (Exception ex) {
log.error("rmiregistry needs to be running to start JMeter in server " + "mode\n\t" + ex.toString());
throw new RemoteException("Cannot start. See server log file.",ex);
}
85 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
86 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\engine\RemoteJMeterEngineImpl.java
87 CATCH CLAUSE : catch (Exception ex) {
log.error("rmiregistry needs to be running to start JMeter in server " + "mode\n\t" + ex.toString());
throw new RemoteException("Cannot start. See server log file.",ex);
}
88 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
89 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\engine\StandardJMeterEngine.java
90 CATCH CLAUSE : catch (Exception err) {
stopTest();
throw new JMeterEngineException(err);
}
91 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
92 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\engine\StandardJMeterEngine.java
93 CATCH CLAUSE : catch (Exception e) {
log.warn("Error encountered during shutdown of " + tl.toString(),e);
}
94 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
95 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\engine\util\CompoundVariable.java
96 CATCH CLAUSE : catch (Exception err) {
log.error("",err);
}
97 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
98 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\engine\util\CompoundVariable.java
99 CATCH CLAUSE : catch (Exception e) {
log.error("",e);
throw new InvalidVariableException(e);
}
100 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
101 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\engine\util\CompoundVariable.java
102 CATCH CLAUSE : catch (Exception e) {
log.error("",e);
throw new InvalidVariableException(e);
}
103 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
104 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\engine\util\FunctionParser.java
105 CATCH CLAUSE : catch (IOException e) {
log.error("Error parsing function: " + buffer.toString(),e);
return null;
}
106ANTI-PATTERN LGRN : Log and return null is wrong, instead of returning null, throw the exception, and let the caller deal with it
_________________________________________________________________________________
_________________________________________________________________________________
107 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\gui\action\ActionRouter.java
108 CATCH CLAUSE : catch (Exception err) {
log.error("performAction(" + actionCommand + ") updateCurrentGui() on"+ e.toString()+ " caused",err);
JMeterUtils.reportErrorToUser("Problem updating GUI - see log file for details");
}
109 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
110 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\gui\action\ActionRouter.java
111 CATCH CLAUSE : catch (Exception err) {
log.error("Error processing " + c.toString(),err);
}
112 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
113 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\gui\action\ActionRouter.java
114 CATCH CLAUSE : catch (Exception err) {
log.error("Could not add Command",err);
}
115 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
116 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\gui\action\ActionRouter.java
117 CATCH CLAUSE : catch (Exception e) {
log.error("exception finding action handlers",e);
}
118 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
119 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\gui\action\AddParent.java
120 CATCH CLAUSE : catch (Exception err) {
log.error("",err);
}
121 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
122 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\gui\action\AddToTree.java
123 CATCH CLAUSE : catch (Exception err) {
log.error("",err);
String msg=err.getMessage();
if (msg == null) {
msg=err.toString();
}
JMeterUtils.reportErrorToUser(msg);
}
124 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
125 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\gui\action\ChangeParent.java
126 CATCH CLAUSE : catch (Exception err) {
Toolkit.getDefaultToolkit().beep();
log.error("Failed to change parent",err);
}
127 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
128 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\gui\action\Clear.java
129 CATCH CLAUSE : catch (Exception ex) {
log.error("Can't clear: " + node + " "+ guiComp,ex);
}
130 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
131 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\gui\action\Copy.java
132 CATCH CLAUSE : catch (Exception ex) {
log.error("Clipboard node read error:" + ex.getMessage(),ex);
JOptionPane.showMessageDialog(GuiPackage.getInstance().getMainFrame(),JMeterUtils.getResString("clipboard_node_read_error") + ":\n" + ex.getLocalizedMessage(),JMeterUtils.getResString("error_title"),JOptionPane.ERROR_MESSAGE);
}
133 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
134 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\gui\action\Copy.java
135 CATCH CLAUSE : catch (Exception ex) {
log.error("Clipboard node read error:" + ex.getMessage(),ex);
JOptionPane.showMessageDialog(GuiPackage.getInstance().getMainFrame(),JMeterUtils.getResString("clipboard_node_read_error") + ":\n" + ex.getLocalizedMessage(),JMeterUtils.getResString("error_title"),JOptionPane.ERROR_MESSAGE);
}
136 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
137 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\gui\action\Load.java
138 CATCH CLAUSE : catch (Exception ex) {
reportError("Unexpected error",ex,true);
}
139 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
140 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\gui\action\RemoteStart.java
141 CATCH CLAUSE : catch (Exception ex) {
log.error("Failed to initialise remote engine",ex);
JMeterUtils.reportErrorToUser(ex.getMessage(),JMeterUtils.getResString("remote_error_init") + ": " + name);
return;
}
142 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
143 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\gui\action\Save.java
144 CATCH CLAUSE : catch (Exception err) {
log.warn("Error converting subtree " + err);
}
145 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
146 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\gui\action\Save.java
147 CATCH CLAUSE : catch (Throwable ex) {
log.error("Error saving tree:",ex);
if (ex instanceof Error) {
throw (Error)ex;
}
if (ex instanceof RuntimeException) {
throw (RuntimeException)ex;
}
throw new IllegalUserActionException("Couldn't save test plan to file: " + updateFile,ex);
}
148 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
149 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\gui\action\SearchTreeDialog.java
150 CATCH CLAUSE : catch (Exception ex) {
logger.error("Error occured searching for word:" + wordToSearch,ex);
}
151 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
152 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\gui\action\SelectTemplatesDialog.java
153 CATCH CLAUSE : catch (Exception ex) {
log.error("Error opening URL in browser:" + e.getURL());
}
154 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
155 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\gui\action\template\TemplateManager.java
156 CATCH CLAUSE : catch (Exception ex) {
log.warn("Ignoring template file:'" + f.getAbsolutePath() + "', an error occured parsing the file",ex);
}
157 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
158 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\gui\action\What.java
159 CATCH CLAUSE : catch (Exception ex) {
JOptionPane.showMessageDialog(null,ex.toString(),"HeapDump",JOptionPane.ERROR_MESSAGE);
}
160 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
161 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\gui\GuiPackage.java
162 CATCH CLAUSE : catch (ClassNotFoundException e) {
log.error("Could not get GUI for " + node,e);
return null;
}
163ANTI-PATTERN LGRN : Log and return null is wrong, instead of returning null, throw the exception, and let the caller deal with it
_________________________________________________________________________________
_________________________________________________________________________________
164 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\gui\GuiPackage.java
165 CATCH CLAUSE : catch (Exception e) {
log.error("Problem retrieving gui",e);
return null;
}
166 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
167 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\gui\GuiPackage.java
168 CATCH CLAUSE : catch (Exception e) {
log.error("Problem retrieving gui",e);
return null;
}
169ANTI-PATTERN LGRN : Log and return null is wrong, instead of returning null, throw the exception, and let the caller deal with it
_________________________________________________________________________________
_________________________________________________________________________________
170 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\gui\GuiPackage.java
171 CATCH CLAUSE : catch (Exception e) {
log.error("Problem retrieving gui",e);
return null;
}
172 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
173 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\gui\GuiPackage.java
174 CATCH CLAUSE : catch (Exception e) {
log.error("Problem retrieving gui",e);
return null;
}
175ANTI-PATTERN LGRN : Log and return null is wrong, instead of returning null, throw the exception, and let the caller deal with it
_________________________________________________________________________________
_________________________________________________________________________________
176 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\gui\GuiPackage.java
177 CATCH CLAUSE : catch (Exception e) {
log.error("Problem retrieving gui",e);
return null;
}
178 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
179 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\gui\GuiPackage.java
180 CATCH CLAUSE : catch (Exception e) {
log.error("Problem retrieving gui",e);
return null;
}
181ANTI-PATTERN LGRN : Log and return null is wrong, instead of returning null, throw the exception, and let the caller deal with it
_________________________________________________________________________________
_________________________________________________________________________________
182 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\gui\GuiPackage.java
183 CATCH CLAUSE : catch (NoClassDefFoundError e) {
log.error("Problem retrieving gui for " + objClass,e);
String msg="Cannot find class: " + e.getMessage();
JOptionPane.showMessageDialog(null,msg,"Missing jar? See log file.",JOptionPane.ERROR_MESSAGE);
throw new RuntimeException(e.toString(),e);
}
184 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
185 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\gui\GuiPackage.java
186 CATCH CLAUSE : catch (ClassNotFoundException e) {
log.error("Problem retrieving gui for " + objClass,e);
throw new RuntimeException(e.toString(),e);
}
187 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
188 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\gui\GuiPackage.java
189 CATCH CLAUSE : catch (InstantiationException e) {
log.error("Problem retrieving gui for " + objClass,e);
throw new RuntimeException(e.toString(),e);
}
190 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
191 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\gui\GuiPackage.java
192 CATCH CLAUSE : catch (IllegalAccessException e) {
log.error("Problem retrieving gui for " + objClass,e);
throw new RuntimeException(e.toString(),e);
}
193 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
194 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\gui\GuiPackage.java
195 CATCH CLAUSE : catch (Exception e) {
log.error("Problem retrieving gui",e);
}
196 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
197 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\gui\Searchable.java
_________________________________________________________________________________
198 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\gui\tree\JMeterTreeModel.java
199 CATCH CLAUSE : catch (Exception e) {
newNode.setEnabled(true);
}
200 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
201 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\gui\tree\JMeterTreeNode.java
202 CATCH CLAUSE : catch (IntrospectionException e1) {
log.error("Can't obtain icon for class " + testElement,e1);
throw new org.apache.jorphan.util.JMeterError(e1);
}
203 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
204 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\gui\tree\JMeterTreeNode.java
205 CATCH CLAUSE : catch (ClassNotFoundException e) {
log.warn("Can't get icon for class " + testElement,e);
return null;
}
206ANTI-PATTERN LGRN : Log and return null is wrong, instead of returning null, throw the exception, and let the caller deal with it
_________________________________________________________________________________
_________________________________________________________________________________
207 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\gui\tree\JMeterTreeNode.java
208 CATCH CLAUSE : catch (Exception e) {
log.error("Can't get popup menu for gui",e);
return null;
}
209 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
210 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\gui\tree\JMeterTreeNode.java
211 CATCH CLAUSE : catch (Exception e) {
log.error("Can't get popup menu for gui",e);
return null;
}
212ANTI-PATTERN LGRN : Log and return null is wrong, instead of returning null, throw the exception, and let the caller deal with it
_________________________________________________________________________________
_________________________________________________________________________________
213 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\gui\tree\JMeterTreeNode.java
214 CATCH CLAUSE : catch (Exception e) {
log.error("Can't get popup menu for gui",e);
return null;
}
215 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
216 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\gui\tree\JMeterTreeNode.java
217 CATCH CLAUSE : catch (Exception e) {
log.error("Can't get popup menu for gui",e);
return null;
}
218ANTI-PATTERN LGRN : Log and return null is wrong, instead of returning null, throw the exception, and let the caller deal with it
_________________________________________________________________________________
_________________________________________________________________________________
219 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\gui\tree\JMeterTreeTransferHandler.java
220 CATCH CLAUSE : catch (Exception e) {
LOG.error("Drop file failed",e);
}
221 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
222 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\gui\tree\JMeterTreeTransferHandler.java
223 CATCH CLAUSE : catch (Exception e) {
LOG.error("Unsupported Flavor in Transferable",e);
}
224 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
225 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\gui\util\IconToolbarBean.java
226 CATCH CLAUSE : catch (Exception e) {
log.warn("Toolbar icon Action names error: " + this.actionName + ", use unknown action.");
return this.actionName;
}
227 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
228 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\gui\util\JDateField.java
229 CATCH CLAUSE : catch (Exception e) {
return new Date();
}
230 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
231 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\gui\util\JMeterMenuBar.java
232 CATCH CLAUSE : catch (Exception e) {
log.error("Exception registering " + MenuCreator.class.getName() + " with implementation:"+ strClassName,e);
}
233 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
234 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\gui\util\MenuFactory.java
235 CATCH CLAUSE : catch (Throwable e) {
log.error("",e);
if (e instanceof Error) {
throw (Error)e;
}
if (e instanceof RuntimeException) {
throw (RuntimeException)e;
}
}
236 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
237 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\gui\util\MenuFactory.java
238 CATCH CLAUSE : catch (Throwable e) {
log.warn("Could not instantiate " + name,e);
if (e instanceof Error) {
throw (Error)e;
}
if (e instanceof RuntimeException) {
if (!(e instanceof HeadlessException)) {
throw (RuntimeException)e;
}
}
continue;
}
239 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
240 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\gui\util\PowerTableModel.java
241 CATCH CLAUSE : catch (Exception e) {
try {
Constructor> constr=colClass.getConstructor(new Class[]{String.class});
return constr.newInstance(new Object[]{""});
}
catch ( NoSuchMethodException err) {
}
catch ( InstantiationException err) {
}
catch ( IllegalAccessException err) {
}
catch ( InvocationTargetException err) {
}
try {
Constructor> constr=colClass.getConstructor(new Class[]{Integer.TYPE});
return constr.newInstance(new Object[]{Integer.valueOf(0)});
}
catch ( NoSuchMethodException err) {
}
catch ( InstantiationException err) {
}
catch ( IllegalAccessException err) {
}
catch ( InvocationTargetException err) {
}
try {
Constructor> constr=colClass.getConstructor(new Class[]{Long.TYPE});
return constr.newInstance(new Object[]{Long.valueOf(0L)});
}
catch ( NoSuchMethodException err) {
}
catch ( InstantiationException err) {
}
catch ( IllegalAccessException err) {
}
catch ( InvocationTargetException err) {
}
try {
Constructor> constr=colClass.getConstructor(new Class[]{Boolean.TYPE});
return constr.newInstance(new Object[]{Boolean.FALSE});
}
catch ( NoSuchMethodException err) {
}
catch ( InstantiationException err) {
}
catch ( IllegalAccessException err) {
}
catch ( InvocationTargetException err) {
}
try {
Constructor> constr=colClass.getConstructor(new Class[]{Float.TYPE});
return constr.newInstance(new Object[]{Float.valueOf(0F)});
}
catch ( NoSuchMethodException err) {
}
catch ( InstantiationException err) {
}
catch ( IllegalAccessException err) {
}
catch ( InvocationTargetException err) {
}
try {
Constructor> constr=colClass.getConstructor(new Class[]{Double.TYPE});
return constr.newInstance(new Object[]{Double.valueOf(0D)});
}
catch ( NoSuchMethodException err) {
}
catch ( InstantiationException err) {
}
catch ( IllegalAccessException err) {
}
catch ( InvocationTargetException err) {
}
try {
Constructor> constr=colClass.getConstructor(new Class[]{Character.TYPE});
return constr.newInstance(new Object[]{Character.valueOf(' ')});
}
catch ( NoSuchMethodException err) {
}
catch ( InstantiationException err) {
}
catch ( IllegalAccessException err) {
}
catch ( InvocationTargetException err) {
}
try {
Constructor> constr=colClass.getConstructor(new Class[]{Byte.TYPE});
return constr.newInstance(new Object[]{Byte.valueOf(Byte.MIN_VALUE)});
}
catch ( NoSuchMethodException err) {
}
catch ( InstantiationException err) {
}
catch ( IllegalAccessException err) {
}
catch ( InvocationTargetException err) {
}
try {
Constructor> constr=colClass.getConstructor(new Class[]{Short.TYPE});
return constr.newInstance(new Object[]{Short.valueOf(Short.MIN_VALUE)});
}
catch ( NoSuchMethodException err) {
}
catch ( InstantiationException err) {
}
catch ( IllegalAccessException err) {
}
catch ( InvocationTargetException err) {
}
}
242 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
243 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\JMeter.java
244 CATCH CLAUSE : catch (Exception e) {
log.error("Failure loading test file",e);
JMeterUtils.reportErrorToUser(e.toString());
}
245 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
246 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\JMeter.java
247 CATCH CLAUSE : catch (Exception ex) {
System.err.println("Server failed to start: " + ex);
log.error("Giving up, as server failed with:",ex);
throw ex;
}
248 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
249 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\JMeter.java
250 CATCH CLAUSE : catch (Exception ex) {
System.err.println("Server failed to start: " + ex);
log.error("Giving up, as server failed with:",ex);
throw ex;
}
251 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
252 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\JMeter.java
253 CATCH CLAUSE : catch (Exception e) {
System.out.println("Error in NonGUIDriver " + e.toString());
log.error("Error in NonGUIDriver",e);
}
254 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
255 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\JMeter.java
256 CATCH CLAUSE : catch (Exception e) {
log.fatalError("Failure connecting to remote host: " + hostName,e);
System.err.println("Failure connecting to remote host: " + hostName + " "+ e);
return null;
}
257 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
258 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\JMeter.java
259 CATCH CLAUSE : catch (Exception e) {
System.out.println(e);
}
260 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
261 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\reporters\FileReporter.java
262 CATCH CLAUSE : catch (Exception e) {
log.error("This line caused a problem: " + line,e);
}
263 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
264 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\reporters\ResultCollector.java
265 CATCH CLAUSE : catch (Exception e) {
log.error("",e);
}
266 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
267 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\reporters\ResultCollector.java
268 CATCH CLAUSE : catch (Exception e) {
log.warn("Failed to load " + filename + " using XStream. Error was: "+ e);
}
269 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
270 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\reporters\ResultCollector.java
271 CATCH CLAUSE : catch (Exception err) {
log.error("Error trying to record a sample",err);
}
272 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
273 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\reporters\ResultCollector.java
274 METHOD NAME : recordStats is used to save statistics generated by visualizers
* @param e
* @throws Exception
*/
public void recordStats(TestElement e) throws Exception
275 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
276 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\samplers\AsynchSampleSender.java
277 CATCH CLAUSE : catch (Exception ex) {
log.warn("testEnded(host)" + ex);
}
278 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
279 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\samplers\AsynchSampleSender.java
280 CATCH CLAUSE : catch (Exception err) {
log.error("sampleOccurred; failed to queue the sample",err);
}
281 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
282 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\samplers\AsynchSampleSender.java
283 CATCH CLAUSE : catch (RemoteException err) {
if (err.getCause() instanceof java.net.ConnectException) {
throw new JMeterError("Could not return sample",err);
}
log.error("Failed to return sample",err);
}
284 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
285 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\samplers\AsynchSampleSender.java
286 CATCH CLAUSE : catch (RemoteException err) {
if (err.getCause() instanceof java.net.ConnectException) {
throw new JMeterError("Could not return sample",err);
}
log.error("Failed to return sample",err);
}
287 ANTI-PATTERN RRGC : relying on the result of getCause makes the code fragile, use org.apache.commons.lang.exception.ExceptionUtils.getRootCause(Throwable throwable)
_________________________________________________________________________________
_________________________________________________________________________________
288 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\samplers\DiskStoreSampleSender.java
289 CATCH CLAUSE : catch (RemoteException err) {
if (err.getCause() instanceof java.net.ConnectException) {
throw new JMeterError("Could not return sample",err);
}
log.error("returning sample",err);
}
290 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
291 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\samplers\DiskStoreSampleSender.java
292 CATCH CLAUSE : catch (RemoteException err) {
if (err.getCause() instanceof java.net.ConnectException) {
throw new JMeterError("Could not return sample",err);
}
log.error("returning sample",err);
}
293 ANTI-PATTERN RRGC : relying on the result of getCause makes the code fragile, use org.apache.commons.lang.exception.ExceptionUtils.getRootCause(Throwable throwable)
_________________________________________________________________________________
_________________________________________________________________________________
294 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\samplers\HoldSampleSender.java
295 CATCH CLAUSE : catch (Throwable ex) {
log.error("testEnded(host)",ex);
if (ex instanceof Error) {
throw (Error)ex;
}
if (ex instanceof RuntimeException) {
throw (RuntimeException)ex;
}
}
296 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
297 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\samplers\RemoteListenerWrapper.java
298 CATCH CLAUSE : catch (Throwable ex) {
log.warn("testStarted()",ex);
if (ex instanceof Error) {
throw (Error)ex;
}
if (ex instanceof RuntimeException) {
throw (RuntimeException)ex;
}
}
299 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
300 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\samplers\RemoteListenerWrapper.java
301 CATCH CLAUSE : catch (Throwable ex) {
log.error("testStarted(host)",ex);
if (ex instanceof Error) {
throw (Error)ex;
}
if (ex instanceof RuntimeException) {
throw (RuntimeException)ex;
}
}
302 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
303 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\samplers\RemoteTestListenerWrapper.java
304 CATCH CLAUSE : catch (Exception ex) {
log.error("",ex);
}
305 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
306 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\samplers\RemoteTestListenerWrapper.java
307 CATCH CLAUSE : catch (Exception ex) {
log.error("",ex);
}
308 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
309 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\samplers\RemoteTestListenerWrapper.java
310 CATCH CLAUSE : catch (Exception ex) {
log.error("",ex);
}
311 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
312 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\samplers\RemoteTestListenerWrapper.java
313 CATCH CLAUSE : catch (Exception ex) {
log.error("",ex);
}
314 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
315 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\samplers\SampleSenderFactory.java
316 CATCH CLAUSE : catch (Exception e) {
log.error("Unable to create a sample sender from class:'" + type + "', search for mode property in jmeter.properties for correct configuration options");
throw new IllegalArgumentException("Unable to create a sample sender from mode or class:'" + type + "', search for mode property in jmeter.properties for correct configuration options, message:"+ e.getMessage(),e);
}
317 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
318 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\samplers\SampleSenderFactory.java
319 CATCH CLAUSE : catch (Exception e) {
log.error("Unable to create a sample sender from class:'" + type + "', search for mode property in jmeter.properties for correct configuration options");
throw new IllegalArgumentException("Unable to create a sample sender from mode or class:'" + type + "', search for mode property in jmeter.properties for correct configuration options, message:"+ e.getMessage(),e);
}
320 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
321 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\samplers\StandardSampleSender.java
322 CATCH CLAUSE : catch (RemoteException err) {
if (err.getCause() instanceof java.net.ConnectException) {
throw new JMeterError("Could not return sample",err);
}
log.error("sampleOccurred",err);
}
323 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
324 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\samplers\StandardSampleSender.java
325 CATCH CLAUSE : catch (RemoteException err) {
if (err.getCause() instanceof java.net.ConnectException) {
throw new JMeterError("Could not return sample",err);
}
log.error("sampleOccurred",err);
}
326 ANTI-PATTERN RRGC : relying on the result of getCause makes the code fragile, use org.apache.commons.lang.exception.ExceptionUtils.getRootCause(Throwable throwable)
_________________________________________________________________________________
_________________________________________________________________________________
327 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\save\converters\TestElementConverter.java
328 CATCH CLAUSE : catch (InstantiationException e) {
log.error("TestElement not instantiable: " + type,e);
return null;
}
329ANTI-PATTERN LGRN : Log and return null is wrong, instead of returning null, throw the exception, and let the caller deal with it
_________________________________________________________________________________
_________________________________________________________________________________
330 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\save\converters\TestElementConverter.java
331 CATCH CLAUSE : catch (IllegalAccessException e) {
log.error("TestElement not instantiable: " + type,e);
return null;
}
332ANTI-PATTERN LGRN : Log and return null is wrong, instead of returning null, throw the exception, and let the caller deal with it
_________________________________________________________________________________
_________________________________________________________________________________
333 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\save\CSVSaveService.java
334 CATCH CLAUSE : catch (NumberFormatException e) {
log.warn(e.toString());
boolean foundMatch=false;
for ( String fmt : DATE_FORMAT_STRINGS) {
SimpleDateFormat dateFormat=new SimpleDateFormat(fmt);
dateFormat.setLenient(false);
try {
Date stamp=dateFormat.parse(text);
timeStamp=stamp.getTime();
log.warn("Setting date format to: " + fmt);
saveConfig.setFormatter(dateFormat);
foundMatch=true;
break;
}
catch ( ParseException e1) {
log.info(text + " did not match " + fmt);
}
}
if (!foundMatch) {
throw new ParseException("No date-time format found matching " + text,-1);
}
}
335 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
336 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\save\CSVSaveService.java
337 CATCH CLAUSE : catch (NumberFormatException e) {
log.warn(e.toString());
boolean foundMatch=false;
for ( String fmt : DATE_FORMAT_STRINGS) {
SimpleDateFormat dateFormat=new SimpleDateFormat(fmt);
dateFormat.setLenient(false);
try {
Date stamp=dateFormat.parse(text);
timeStamp=stamp.getTime();
log.warn("Setting date format to: " + fmt);
saveConfig.setFormatter(dateFormat);
foundMatch=true;
break;
}
catch ( ParseException e1) {
log.info(text + " did not match " + fmt);
}
}
if (!foundMatch) {
throw new ParseException("No date-time format found matching " + text,-1);
}
}
338 ANTI-PATTERN MLLM : Using multi-line log messages causes problems when multiple threads are running in parallel, two log messages may end up spaced-out multiple lines apart in the log file, group together all log messages, regardless of the level
_________________________________________________________________________________
_________________________________________________________________________________
339 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\save\CSVSaveService.java
340 CATCH CLAUSE : catch (NumberFormatException e) {
log.warn("Error parsing field '" + field + "' at line "+ lineNumber+ " "+ e);
throw new JMeterError(e);
}
341 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
342 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\save\CSVSaveService.java
343 CATCH CLAUSE : catch (ParseException e) {
log.warn("Error parsing field '" + field + "' at line "+ lineNumber+ " "+ e);
throw new JMeterError(e);
}
344 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
345 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\save\CSVSaveService.java
346 CATCH CLAUSE : catch (ArrayIndexOutOfBoundsException e) {
log.warn("Insufficient columns to parse field '" + field + "' at line "+ lineNumber);
throw new JMeterError(e);
}
347 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
348 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\save\OldSaveService.java
349 CATCH CLAUSE : catch (ConfigurationException e) {
String message="Problem loading using Avalon Configuration tools";
log.error(message,e);
throw new IOException(message);
}
350 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
351 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\save\OldSaveService.java
352 CATCH CLAUSE : catch (SAXException e) {
String message="Problem with SAX implementation";
log.error(message,e);
throw new IOException(message);
}
353 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
354 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\save\OldSaveService.java
355 CATCH CLAUSE : catch (Exception ex) {
log.error("Problem loading property",ex);
element.setProperty(children[i].getAttribute("name"),"");
}
356 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
357 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\save\OldSaveService.java
358 CATCH CLAUSE : catch (Exception e) {
log.error("Problem loading part of file",e);
return null;
}
359 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
360 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\save\OldSaveService.java
361 CATCH CLAUSE : catch (Exception e) {
log.error("Problem loading part of file",e);
return null;
}
362ANTI-PATTERN LGRN : Log and return null is wrong, instead of returning null, throw the exception, and let the caller deal with it
_________________________________________________________________________________
_________________________________________________________________________________
363 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\save\SaveService.java
364 METHOD NAME : loadTestResults(InputStream reader,ResultCollectorHelper resultCollectorHelper) throws Exception
365 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
366 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\save\SaveService.java
367 METHOD NAME : loadTree(InputStream reader) throws Exception
368 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
369 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\save\SaveService.java
370 CATCH CLAUSE : catch (CannotResolveClassException e) {
if (e.getMessage().startsWith("node")) {
log.info("Problem loading XML, trying Avalon format");
reader.reset();
return OldSaveService.loadSubTree(reader);
}
log.warn("Problem loading XML, cannot determine class for element: " + e.getLocalizedMessage());
return null;
}
371 ANTI-PATTERN MLLM : Using multi-line log messages causes problems when multiple threads are running in parallel, two log messages may end up spaced-out multiple lines apart in the log file, group together all log messages, regardless of the level
_________________________________________________________________________________
_________________________________________________________________________________
372 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\save\SaveService.java
373 CATCH CLAUSE : catch (CannotResolveClassException e) {
if (e.getMessage().startsWith("node")) {
log.info("Problem loading XML, trying Avalon format");
reader.reset();
return OldSaveService.loadSubTree(reader);
}
log.warn("Problem loading XML, cannot determine class for element: " + e.getLocalizedMessage());
return null;
}
374ANTI-PATTERN LGRN : Log and return null is wrong, instead of returning null, throw the exception, and let the caller deal with it
_________________________________________________________________________________
_________________________________________________________________________________
375 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\save\SaveService.java
376 CATCH CLAUSE : catch (NoClassDefFoundError e) {
log.error("Missing class " + e);
return null;
}
377ANTI-PATTERN LGRN : Log and return null is wrong, instead of returning null, throw the exception, and let the caller deal with it
_________________________________________________________________________________
_________________________________________________________________________________
378 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\save\SaveService.java
379 CATCH CLAUSE : catch (ConversionException e) {
log.error("Conversion error " + e);
return null;
}
380ANTI-PATTERN LGRN : Log and return null is wrong, instead of returning null, throw the exception, and let the caller deal with it
_________________________________________________________________________________
_________________________________________________________________________________
381 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\save\ScriptWrapperConverter.java
382 CATCH CLAUSE : catch (Exception e) {
throw createConversionException(e);
}
383 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
384 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\testbeans\BeanInfoSupport.java
385 CATCH CLAUSE : catch (Exception e) {
log.warn("Something bad happened when loading bean info for bean " + beanClass,e);
}
386 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
387 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\testbeans\gui\GenericTestBeanCustomizer.java
388 CATCH CLAUSE : catch (InstantiationException e) {
log.error("Can't create property editor.",e);
throw new Error(e.toString());
}
389 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
390 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\testbeans\gui\GenericTestBeanCustomizer.java
391 CATCH CLAUSE : catch (IllegalAccessException e) {
log.error("Can't create property editor.",e);
throw new Error(e.toString());
}
392 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
393 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\testbeans\gui\TableEditor.java
394 CATCH CLAUSE : catch (Exception e) {
return new Functor("is" + propName);
}
395 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
396 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\testbeans\gui\TableEditor.java
397 CATCH CLAUSE : catch (Exception err) {
log.error("The class type given to TableEditor was not instantiable. ",err);
}
398 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
399 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\testbeans\gui\TestBeanGUI.java
400 CATCH CLAUSE : catch (IntrospectionException e) {
log.error("Can't get beanInfo for " + testBeanClass.getName(),e);
throw new Error(e.toString());
}
401 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
402 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\testbeans\gui\TestBeanGUI.java
403 CATCH CLAUSE : catch (InstantiationException e) {
log.error("Could not instantiate customizer of class " + customizerClass,e);
throw new Error(e.toString());
}
404 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
405 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\testbeans\gui\TestBeanGUI.java
406 CATCH CLAUSE : catch (IllegalAccessException e) {
log.error("Could not instantiate customizer of class " + customizerClass,e);
throw new Error(e.toString());
}
407 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
408 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\testbeans\gui\TestBeanGUI.java
409 CATCH CLAUSE : catch (InstantiationException e) {
log.error("Can't create test element",e);
throw new Error(e.toString());
}
410 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
411 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\testbeans\gui\TestBeanGUI.java
412 CATCH CLAUSE : catch (IllegalAccessException e) {
log.error("Can't create test element",e);
throw new Error(e.toString());
}
413 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
414 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\testbeans\TestBeanHelper.java
415 CATCH CLAUSE : catch (UnsatisfiedLinkError ule) {
log.error("Couldn't set properties for " + el.getClass().getName());
throw ule;
}
416 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
417 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\testbeans\TestBeanHelper.java
418 CATCH CLAUSE : catch (Exception e) {
log.error("Couldn't convert object: " + prop.getObjectValue() + " to "+ type,e);
}
419 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
420 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\testelement\AbstractTestElement.java
_________________________________________________________________________________
421 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\testelement\property\AbstractProperty.java
422 CATCH CLAUSE : catch (Exception e) {
return new StringProperty();
}
423 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
424 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\testelement\property\AbstractProperty.java
425 CATCH CLAUSE : catch (Exception e) {
log.error("Cannot create copy of " + coll.getClass().getName(),e);
return null;
}
426 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
427 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\testelement\property\AbstractProperty.java
428 CATCH CLAUSE : catch (Exception e) {
log.error("Cannot create copy of " + coll.getClass().getName(),e);
return null;
}
429ANTI-PATTERN LGRN : Log and return null is wrong, instead of returning null, throw the exception, and let the caller deal with it
_________________________________________________________________________________
_________________________________________________________________________________
430 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\testelement\property\AbstractProperty.java
431 CATCH CLAUSE : catch (Exception e) {
log.error("Cannot create copy of " + coll.getClass().getName(),e);
return null;
}
432 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
433 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\testelement\property\AbstractProperty.java
434 CATCH CLAUSE : catch (Exception e) {
log.error("Cannot create copy of " + coll.getClass().getName(),e);
return null;
}
435ANTI-PATTERN LGRN : Log and return null is wrong, instead of returning null, throw the exception, and let the caller deal with it
_________________________________________________________________________________
_________________________________________________________________________________
436 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\testelement\property\CollectionProperty.java
437 CATCH CLAUSE : catch (Exception e) {
log.error("Couldn't clone collection",e);
return value;
}
438 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
439 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\testelement\property\MapProperty.java
440 CATCH CLAUSE : catch (Exception e) {
log.error("Couldn't clone map",e);
return value;
}
441 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
442 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\threads\JMeterThread.java
443 CATCH CLAUSE : catch (Exception e) {
log.error("Test failed!",e);
}
444 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
445 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\threads\JMeterThread.java
446 CATCH CLAUSE : catch (Exception e) {
if (current != null) {
log.error("Error while processing sampler '" + current.getName() + "' :",e);
}
else {
log.error("",e);
}
}
447 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
448 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\threads\JMeterThread.java
449 CATCH CLAUSE : catch (Exception e) {
log.warn("Caught Exception interrupting sampler: " + e.toString());
}
450 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
451 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\threads\JMeterThread.java
452 CATCH CLAUSE : catch (Exception e) {
log.error("Exception processing Assertion ",e);
assertionResult=new AssertionResult("Assertion failed! See log file.");
assertionResult.setError(true);
assertionResult.setFailureMessage(e.toString());
}
453 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
454 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\threads\ListenerNotifier.java
455 CATCH CLAUSE : catch (RuntimeException e) {
log.error("Detected problem in Listener: ",e);
log.info("Continuing to process further listeners");
}
456 ANTI-PATTERN MLLM : Using multi-line log messages causes problems when multiple threads are running in parallel, two log messages may end up spaced-out multiple lines apart in the log file, group together all log messages, regardless of the level
_________________________________________________________________________________
_________________________________________________________________________________
457 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\threads\RemoteThreadsListenerImpl.java
458 CATCH CLAUSE : catch (Exception e) {
log.error("Exception registering " + RemoteThreadsLifeCycleListener.class.getName() + " with implementation:"+ strClassName,e);
}
459 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
460 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\threads\ThreadGroup.java
461 CATCH CLAUSE : catch (Exception e) {
log.warn("Exception occured interrupting ThreadStarter");
}
462 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
463 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\threads\ThreadGroup.java
464 CATCH CLAUSE : catch (Exception e) {
log.warn("Exception occured interrupting ThreadStarter");
}
465 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
466 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\util\BeanShellClient.java
467 METHOD NAME : main(String[] args) throws Exception
468 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
469 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\util\BeanShellInterpreter.java
470 CATCH CLAUSE : catch (InstantiationException e) {
log.error("Can't instantiate BeanShell",e);
throw new ClassNotFoundException("Can't instantiate BeanShell",e);
}
471 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
472 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\util\BeanShellInterpreter.java
473 CATCH CLAUSE : catch (IllegalAccessException e) {
log.error("Can't instantiate BeanShell",e);
throw new ClassNotFoundException("Can't instantiate BeanShell",e);
}
474 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
475 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\util\BeanShellInterpreter.java
476 CATCH CLAUSE : catch (IllegalArgumentException e) {
final String message=errorString + m.getName();
log.error(message);
throw new JMeterError(message,e);
}
477 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
478 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\util\BeanShellInterpreter.java
479 CATCH CLAUSE : catch (IllegalAccessException e) {
final String message=errorString + m.getName();
log.error(message);
throw new JMeterError(message,e);
}
480 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
481 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\util\BeanShellInterpreter.java
482 CATCH CLAUSE : catch (InvocationTargetException e) {
String message=errorString + m.getName();
Throwable cause=e.getCause();
if (cause != null) {
message+="\t" + cause.getLocalizedMessage();
}
if (shouldLog) {
log.error(message);
}
throw new JMeterException(message,e);
}
483 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
484 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\util\BeanShellServer.java
485 CATCH CLAUSE : catch (InvocationTargetException e1) {
log.warn("Could not source " + serverfile);
Throwable t=e1.getCause();
if (t != null) {
log.warn(t.toString());
if (t instanceof Error) {
throw (Error)t;
}
}
}
486 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
487 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\util\BeanShellServer.java
488 CATCH CLAUSE : catch (InvocationTargetException e1) {
log.warn("Could not source " + serverfile);
Throwable t=e1.getCause();
if (t != null) {
log.warn(t.toString());
if (t instanceof Error) {
throw (Error)t;
}
}
}
489 ANTI-PATTERN MLLM : Using multi-line log messages causes problems when multiple threads are running in parallel, two log messages may end up spaced-out multiple lines apart in the log file, group together all log messages, regardless of the level
_________________________________________________________________________________
_________________________________________________________________________________
490 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\util\BeanShellServer.java
491 CATCH CLAUSE : catch (Exception e) {
log.error("Problem starting BeanShell server ",e);
}
492 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
493 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\util\BSFTestElement.java
494 CATCH CLAUSE : catch (IOException e) {
log.warn(e.getLocalizedMessage());
throw new BSFException(BSFException.REASON_IO_ERROR,"Problem reading script file",e);
}
495 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
496 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\util\BSFTestElement.java
497 CATCH CLAUSE : catch (IOException e) {
log.warn(e.getLocalizedMessage());
throw new BSFException(BSFException.REASON_IO_ERROR,"Problem reading script file",e);
}
498 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
499 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\util\Document.java
500 CATCH CLAUSE : catch (Exception e) {
response=e.toString();
log.warn("Error document parsing:",e);
}
501 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
502 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\util\HttpSSLProtocolSocketFactory.java
503 CATCH CLAUSE : catch (IllegalArgumentException e) {
log.warn("Could not set protocol list: " + protocolList + ".");
log.warn("Valid protocols are: " + join(sock.getSupportedProtocols()));
}
504 ANTI-PATTERN MLLM : Using multi-line log messages causes problems when multiple threads are running in parallel, two log messages may end up spaced-out multiple lines apart in the log file, group together all log messages, regardless of the level
_________________________________________________________________________________
_________________________________________________________________________________
505 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\util\HttpSSLProtocolSocketFactory.java
506 CATCH CLAUSE : catch (GeneralSecurityException ex) {
throw new IOException(ex.getMessage());
}
507 ANTI-PATTERN WEPG : Wrapping the exception and passing getMessage() destroys the stack trace of original exception
_________________________________________________________________________________
_________________________________________________________________________________
508 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\util\JMeterTreeNodeTransferable.java
509 CATCH CLAUSE : catch (Exception e) {
}
510 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
511 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\util\JMeterTreeNodeTransferable.java
512 CATCH CLAUSE : catch (Exception e) {
}
513 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
514 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\util\JMeterUtils.java
515 CATCH CLAUSE : catch (NoClassDefFoundError e) {
log.info("no icon for " + name + " "+ e.getMessage());
return null;
}
516ANTI-PATTERN LGRN : Log and return null is wrong, instead of returning null, throw the exception, and let the caller deal with it
_________________________________________________________________________________
_________________________________________________________________________________
517 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\util\JMeterUtils.java
518 CATCH CLAUSE : catch (InternalError e) {
log.info("no icon for " + name + " "+ e.getMessage());
return null;
}
519ANTI-PATTERN LGRN : Log and return null is wrong, instead of returning null, throw the exception, and let the caller deal with it
_________________________________________________________________________________
_________________________________________________________________________________
520 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\util\JMeterUtils.java
521 CATCH CLAUSE : catch (Exception e) {
reader=(XMLReader)instantiate(parserName,"org.xml.sax.XMLReader");
}
522 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
523 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\util\JMeterUtils.java
524 CATCH CLAUSE : catch (Exception e) {
ans=defaultVal;
}
525 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
526 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\util\JMeterUtils.java
527 CATCH CLAUSE : catch (Exception e) {
ans=defaultVal;
}
528 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
529 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\util\JMeterUtils.java
530 CATCH CLAUSE : catch (Exception e) {
ans=defaultVal;
}
531 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
532 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\util\JMeterUtils.java
533 CATCH CLAUSE : catch (Exception e) {
ans=defaultVal;
}
534 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
535 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\util\JMeterUtils.java
536 CATCH CLAUSE : catch (Exception e) {
ans=null;
}
537 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
538 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\util\JMeterUtils.java
539 CATCH CLAUSE : catch (Exception e) {
}
540 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
541 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\util\keystore\JmeterKeyStore.java
542 METHOD NAME : JmeterKeyStore(String type,int startIndex,int endIndex,String clientCertAliasVarName) throws Exception
543 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
544 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\util\keystore\JmeterKeyStore.java
545 METHOD NAME : load(InputStream is,String pword) throws Exception
546 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
547 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\util\keystore\JmeterKeyStore.java
548 METHOD NAME : getInstance(String type,int startIndex,int endIndex,String clientCertAliasVarName) throws Exception
549 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
550 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\util\keystore\JmeterKeyStore.java
551 METHOD NAME : getInstance(String type) throws Exception
552 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
553 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\util\SSLManager.java
554 CATCH CLAUSE : catch (Exception e) {
this.keyStore=null;
throw new RuntimeException("Could not create keystore: " + e.getMessage(),e);
}
555 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
556 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\util\SSLManager.java
557 CATCH CLAUSE : catch (Exception e) {
log.error("Problem loading keystore: " + e.getMessage(),e);
}
558 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
559 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\util\SSLManager.java
560 CATCH CLAUSE : catch (Exception e) {
this.trustStore=null;
throw new RuntimeException("Problem creating truststore: " + e.getMessage(),e);
}
561 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
562 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\util\SSLManager.java
563 CATCH CLAUSE : catch (Exception e) {
throw new RuntimeException("Can't load TrustStore: " + e.getMessage(),e);
}
564 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
565 FILE NAME : apache-jmeter-2.11\src\core\org\apache\jmeter\util\XPathUtil.java
566 CATCH CLAUSE : catch (Exception e) {
return xml;
}
567 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
568 FILE NAME : apache-jmeter-2.11\src\examples\org\apache\jmeter\examples\sampler\ExampleSampler.java
569 CATCH CLAUSE : catch (Exception ex) {
log.debug("",ex);
res.setResponseCode("500");
res.setResponseMessage(ex.toString());
}
570 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
571 FILE NAME : apache-jmeter-2.11\src\functions\org\apache\jmeter\functions\BeanShell.java
572 CATCH CLAUSE : catch (Exception ex) {
log.warn("Error running BSH script",ex);
}
573 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
574 FILE NAME : apache-jmeter-2.11\src\functions\org\apache\jmeter\functions\FileRowColContainer.java
575 CATCH CLAUSE : catch (FileNotFoundException e) {
fileData.clear();
log.warn(e.toString());
throw e;
}
576 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
577 FILE NAME : apache-jmeter-2.11\src\functions\org\apache\jmeter\functions\FileRowColContainer.java
578 CATCH CLAUSE : catch (IOException e) {
fileData.clear();
log.warn(e.toString());
throw e;
}
579 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
580 FILE NAME : apache-jmeter-2.11\src\functions\org\apache\jmeter\functions\FileToString.java
581 CATCH CLAUSE : catch (IOException e) {
log.warn("Could not read file: " + fileName + " "+ e.getMessage(),e);
throw new JMeterStopThreadException("End of sequence",e);
}
582 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
583 FILE NAME : apache-jmeter-2.11\src\functions\org\apache\jmeter\functions\JavaScript.java
584 CATCH CLAUSE : catch (RhinoException e) {
log.error("Error processing Javascript: [" + script + "]\n",e);
throw new InvalidVariableException("Error processing Javascript: [" + script + "]",e);
}
585 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
586 FILE NAME : apache-jmeter-2.11\src\functions\org\apache\jmeter\functions\Jexl2Function.java
587 CATCH CLAUSE : catch (Exception e) {
log.error("An error occurred while evaluating the expression \"" + exp + "\"\n",e);
}
588 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
589 FILE NAME : apache-jmeter-2.11\src\functions\org\apache\jmeter\functions\JexlFunction.java
590 CATCH CLAUSE : catch (Exception e) {
log.error("An error occurred while evaluating the expression \"" + exp + "\"\n",e);
}
591 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
592 FILE NAME : apache-jmeter-2.11\src\functions\org\apache\jmeter\functions\RegexFunction.java
593 CATCH CLAUSE : catch (MalformedCachePatternException e) {
log.error("Malformed cache pattern:" + values[0],e);
throw new InvalidVariableException("Malformed cache pattern:" + values[0],e);
}
594 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
595 FILE NAME : apache-jmeter-2.11\src\functions\org\apache\jmeter\functions\StringFromFile.java
596 CATCH CLAUSE : catch (Exception e) {
log.error("openFile() error: " + e.toString());
myBread=null;
}
597 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
598 FILE NAME : apache-jmeter-2.11\src\functions\org\apache\jmeter\functions\UrlDecode.java
599 CATCH CLAUSE : catch (UnsupportedEncodingException uee) {
return null;
}
600 ANTI-PATTERN RNHR : just returns null instead of handling or re-throwing the exception, swallows the exception, losing the information forever
_________________________________________________________________________________
_________________________________________________________________________________
601 FILE NAME : apache-jmeter-2.11\src\functions\org\apache\jmeter\functions\UrlEncode.java
602 CATCH CLAUSE : catch (UnsupportedEncodingException uee) {
return null;
}
603 ANTI-PATTERN RNHR : just returns null instead of handling or re-throwing the exception, swallows the exception, losing the information forever
_________________________________________________________________________________
_________________________________________________________________________________
604 FILE NAME : apache-jmeter-2.11\src\functions\org\apache\jmeter\functions\XPathFileContainer.java
605 CATCH CLAUSE : catch (FileNotFoundException e) {
log.warn(e.toString());
throw e;
}
606 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
607 FILE NAME : apache-jmeter-2.11\src\functions\org\apache\jmeter\functions\XPathFileContainer.java
608 CATCH CLAUSE : catch (IOException e) {
log.warn(e.toString());
throw e;
}
609 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
610 FILE NAME : apache-jmeter-2.11\src\functions\org\apache\jmeter\functions\XPathFileContainer.java
611 CATCH CLAUSE : catch (ParserConfigurationException e) {
log.warn(e.toString());
throw e;
}
612 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
613 FILE NAME : apache-jmeter-2.11\src\functions\org\apache\jmeter\functions\XPathFileContainer.java
614 CATCH CLAUSE : catch (SAXException e) {
log.warn(e.toString());
throw e;
}
615 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
616 FILE NAME : apache-jmeter-2.11\src\functions\org\apache\jmeter\functions\XPathFileContainer.java
617 CATCH CLAUSE : catch (TransformerException e) {
log.warn(e.toString());
throw e;
}
618 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
619 FILE NAME : apache-jmeter-2.11\src\jorphan\org\apache\commons\jexl\bsf\JexlEngine.java
620 CATCH CLAUSE : catch (Exception e) {
throw new BSFException(BSFException.REASON_OTHER_ERROR,e.getMessage(),e);
}
621 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
622 FILE NAME : apache-jmeter-2.11\src\jorphan\org\apache\commons\jexl\bsf\JexlEngine.java
623 CATCH CLAUSE : catch (Exception e) {
throw new BSFException(BSFException.REASON_OTHER_ERROR,e.getMessage(),e);
}
624 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
625 FILE NAME : apache-jmeter-2.11\src\jorphan\org\apache\commons\jexl\bsf\JexlEngine.java
626 CATCH CLAUSE : catch (Exception e) {
throw new BSFException(BSFException.REASON_OTHER_ERROR,e.getMessage(),e);
}
627 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
628 FILE NAME : apache-jmeter-2.11\src\jorphan\org\apache\jorphan\collections\Data.java
629 CATCH CLAUSE : catch (Exception e) {
return null;
}
630 ANTI-PATTERN RNHR : just returns null instead of handling or re-throwing the exception, swallows the exception, losing the information forever
_________________________________________________________________________________
_________________________________________________________________________________
631 FILE NAME : apache-jmeter-2.11\src\jorphan\org\apache\jorphan\collections\Data.java
632 CATCH CLAUSE : catch (Exception e) {
return null;
}
633 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
634 FILE NAME : apache-jmeter-2.11\src\jorphan\org\apache\jorphan\collections\Data.java
635 CATCH CLAUSE : catch (Exception e) {
return null;
}
636 ANTI-PATTERN RNHR : just returns null instead of handling or re-throwing the exception, swallows the exception, losing the information forever
_________________________________________________________________________________
_________________________________________________________________________________
637 FILE NAME : apache-jmeter-2.11\src\jorphan\org\apache\jorphan\collections\Data.java
638 CATCH CLAUSE : catch (Exception e) {
return null;
}
639 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
640 FILE NAME : apache-jmeter-2.11\src\jorphan\org\apache\jorphan\collections\HashTree.java
641 CATCH CLAUSE : catch (Exception e) {
converter.reportError(e);
}
642 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
643 FILE NAME : apache-jmeter-2.11\src\jorphan\org\apache\jorphan\exec\SystemCommand.java
644 CATCH CLAUSE : catch (Exception ignored) {
}
645 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
646 FILE NAME : apache-jmeter-2.11\src\jorphan\org\apache\jorphan\logging\LoggingManager.java
647 CATCH CLAUSE : catch (Exception ignored) {
}
648 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
649 FILE NAME : apache-jmeter-2.11\src\jorphan\org\apache\jorphan\logging\LoggingManager.java
650 CATCH CLAUSE : catch (Exception e) {
System.out.println(propName + "=" + logFile+ " "+ e.toString());
System.out.println("[" + propName + "-> System.out]");
isWriterSystemOut=true;
wt=new PrintWriter(System.out);
}
651 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
652 FILE NAME : apache-jmeter-2.11\src\jorphan\org\apache\jorphan\reflect\ClassFinder.java
653 CATCH CLAUSE : catch (Exception e) {
}
654 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
655 FILE NAME : apache-jmeter-2.11\src\jorphan\org\apache\jorphan\reflect\Functor.java
656 CATCH CLAUSE : catch (Exception e) {
final String message="Trouble functing: " + _class.getName() + "."+ methodName+ "(...) : "+ " invokee: "+ _invokee+ " "+ e.getMessage();
log.warn(message,e);
throw new JMeterError(message,e);
}
657 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
658 FILE NAME : apache-jmeter-2.11\src\jorphan\org\apache\jorphan\reflect\Functor.java
659 CATCH CLAUSE : catch (Exception e) {
final String message="Trouble functing: " + _class.getName() + "."+ methodName+ "(...) : "+ " invokee: "+ _invokee+ " "+ e.getMessage();
log.warn(message,e);
throw new JMeterError(message,e);
}
660 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
661 FILE NAME : apache-jmeter-2.11\src\jorphan\org\apache\jorphan\reflect\Functor.java
662 CATCH CLAUSE : catch (Exception e) {
for (int i=0; i < p_types.length; i++) {
Class> primitive=getPrimitive(p_types[i]);
if (primitive != null) {
methodToInvoke=doCreateMethod(p_class,getNewArray(i,primitive,p_types));
if (methodToInvoke != null) {
return methodToInvoke;
}
}
Class>[] interfaces=p_types[i].getInterfaces();
for (int j=0; j < interfaces.length; j++) {
methodToInvoke=doCreateMethod(p_class,getNewArray(i,interfaces[j],p_types));
if (methodToInvoke != null) {
return methodToInvoke;
}
}
Class> parent=p_types[i].getSuperclass();
if (parent != null) {
methodToInvoke=doCreateMethod(p_class,getNewArray(i,parent,p_types));
if (methodToInvoke != null) {
return methodToInvoke;
}
}
}
}
663 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
664 FILE NAME : apache-jmeter-2.11\src\jorphan\org\apache\jorphan\reflect\Functor.java
665 CATCH CLAUSE : catch (Exception e) {
}
666 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
667 FILE NAME : apache-jmeter-2.11\src\jorphan\org\apache\jorphan\reflect\Functor.java
668 CATCH CLAUSE : catch (Exception e) {
}
669 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
670 FILE NAME : apache-jmeter-2.11\src\jorphan\org\apache\jorphan\util\Converter.java
671 CATCH CLAUSE : catch (Exception e) {
}
672 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
673 FILE NAME : apache-jmeter-2.11\src\jorphan\org\apache\jorphan\util\Converter.java
674 CATCH CLAUSE : catch (Exception e) {
return defaultValue;
}
675 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
676 FILE NAME : apache-jmeter-2.11\src\jorphan\org\apache\jorphan\util\HeapDumper.java
677 METHOD NAME : initialise if necessary.
* @throws Exception if there is a problem finding the heapDump MXBean
*/
public static void init() throws Exception
678 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
679 FILE NAME : apache-jmeter-2.11\src\jorphan\org\apache\jorphan\util\HeapDumper.java
680 METHOD NAME : dumpHeap() method of the HotSpotDiagnostic MXBean, if available.
*
* See
*
* HotSpotDiagnosticMXBean
*
* @param fileName name of the heap dump file. Must be creatable, i.e. must not exist.
* @param live if true, dump only the live objects
* @throws Exception if the MXBean cannot be found, or if there is a problem during invocation
*/
public static void dumpHeap(String fileName,boolean live) throws Exception
681 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
682 FILE NAME : apache-jmeter-2.11\src\jorphan\org\apache\jorphan\util\HeapDumper.java
683 METHOD NAME : dumpHeap(String,boolean)
* @param fileName name of the heap dump file. Must be creatable, i.e. must not exist.
* @throws Exception if the MXBean cannot be found, or if there is a problem during invocation
*/
public static void dumpHeap(String fileName) throws Exception
684 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
685 FILE NAME : apache-jmeter-2.11\src\jorphan\org\apache\jorphan\util\HeapDumper.java
686 METHOD NAME : dumpHeap(boolean)
* @return the name of the dump file that was created
* @throws Exception if the MXBean cannot be found, or if there is a problem during invocation
*/
public static String dumpHeap() throws Exception
687 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
688 FILE NAME : apache-jmeter-2.11\src\jorphan\org\apache\jorphan\util\HeapDumper.java
689 METHOD NAME : dumpHeap(String,boolean)
* @param live true id only live objects are to be dumped.
* @return the name of the dump file that was created
* @throws Exception if the MXBean cannot be found, or if there is a problem during invocation
*/
public static String dumpHeap(boolean live) throws Exception
690 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
691 FILE NAME : apache-jmeter-2.11\src\jorphan\org\apache\jorphan\util\HeapDumper.java
692 METHOD NAME : dumpHeap(String,boolean)
* @param basedir File object for the target base directory.
* @param live true id only live objects are to be dumped.
* @return the name of the dump file that was created
* @throws Exception if the MXBean cannot be found, or if there is a problem during invocation
*/
public static String dumpHeap(File basedir,boolean live) throws Exception
693 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
694 FILE NAME : apache-jmeter-2.11\src\jorphan\org\apache\jorphan\util\HeapDumper.java
695 METHOD NAME : dumpHeap0(String fileName,boolean live) throws Exception
696 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
697 FILE NAME : apache-jmeter-2.11\src\monitor\components\org\apache\jmeter\visualizers\MonitorHealthVisualizer.java
698 CATCH CLAUSE : catch (Exception e) {
log.debug("StatsModel was null",e);
}
699 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
700 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\control\gui\WebServiceSamplerGui.java
701 CATCH CLAUSE : catch (Exception exception) {
if (!silent) {
JOptionPane.showConfirmDialog(this,JMeterUtils.getResString("wsdl_helper_error") + "\n" + exception,JMeterUtils.getResString("warning"),JOptionPane.DEFAULT_OPTION,JOptionPane.ERROR_MESSAGE);
}
return ArrayUtils.EMPTY_STRING_ARRAY;
}
702 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
703 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\control\HeaderManager.java
704 CATCH CLAUSE : catch (Exception e) {
throw new IOException("Error parsing header line\n\t'" + line + "'\n\t"+ e);
}
705 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
706 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\control\HttpMirrorServer.java
707 CATCH CLAUSE : catch (Exception e) {
except=e;
log.warn("HttpMirror Server stopped",e);
}
708 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
709 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\control\KerberosManager.java
710 METHOD NAME : call() throws Exception
711 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
712 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\modifier\AnchorModifier.java
713 CATCH CLAUSE : catch (Exception ex) {
log.error("Problem adding Argument",ex);
}
714 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
715 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\parser\HtmlParserHTMLParser.java
716 CATCH CLAUSE : catch (Exception e) {
throw new HTMLParseException(e);
}
717 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
718 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\parser\HtmlParsingUtils.java
719 CATCH CLAUSE : catch (UnsupportedEncodingException e) {
log.error("UTF-8 encoding not supported!");
throw new Error("Should not happen: " + e.toString(),e);
}
720 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
721 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\parser\HtmlParsingUtils.java
722 CATCH CLAUSE : catch (UnsupportedEncodingException e) {
log.error("getDOM1 : Unsupported encoding exception - " + e);
log.debug("End : getDOM1");
throw new RuntimeException("UTF-8 encoding failed",e);
}
723 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
724 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\parser\HtmlParsingUtils.java
725 CATCH CLAUSE : catch (UnsupportedEncodingException e) {
log.error("getDOM1 : Unsupported encoding exception - " + e);
log.debug("End : getDOM1");
throw new RuntimeException("UTF-8 encoding failed",e);
}
726 ANTI-PATTERN MLLM : Using multi-line log messages causes problems when multiple threads are running in parallel, two log messages may end up spaced-out multiple lines apart in the log file, group together all log messages, regardless of the level
_________________________________________________________________________________
_________________________________________________________________________________
727 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\parser\HtmlParsingUtils.java
728 CATCH CLAUSE : catch (Exception ex) {
log.warn("Some bad HTML " + printNode(tempNode),ex);
}
729 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
730 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\parser\HtmlParsingUtils.java
731 CATCH CLAUSE : catch (Exception ex) {
return "";
}
732 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
733 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\parser\JsoupBasedHtmlParser.java
734 CATCH CLAUSE : catch (Exception e) {
throw new HTMLParseException(e);
}
735 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
736 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\parser\LagartoBasedHtmlParser.java
737 CATCH CLAUSE : catch (Exception e) {
throw new HTMLParseException(e);
}
738 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
739 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\proxy\AbstractSamplerCreator.java
740 METHOD NAME : createAndPopulateSampler(org.apache.jmeter.protocol.http.proxy.HttpRequestHdr,java.util.Map,java.util.Map)
*/
@Override public HTTPSamplerBase createAndPopulateSampler(HttpRequestHdr request,Map pageEncodings,Map formEncodings) throws Exception
741 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
742 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\proxy\Daemon.java
743 CATCH CLAUSE : catch (Exception e) {
log.warn("HTTP(S) Test Script Recorder stopped",e);
}
744 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
745 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\proxy\DefaultSamplerCreator.java
746 METHOD NAME : populateSampler(org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase,org.apache.jmeter.protocol.http.proxy.HttpRequestHdr,java.util.Map,java.util.Map)
*/
@Override public final void populateSampler(HTTPSamplerBase sampler,HttpRequestHdr request,Map pageEncodings,Map formEncodings) throws Exception
747 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
748 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\proxy\DefaultSamplerCreator.java
_________________________________________________________________________________
749 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\proxy\FormCharSetFinder.java
750 CATCH CLAUSE : catch (Exception e) {
throw new HTMLParseException(e);
}
751 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
752 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\proxy\HttpRequestHdr.java
753 CATCH CLAUSE : catch (URISyntaxException e) {
log.warn("Url '" + url + "' contains unsafe characters, will escape it, message:"+ e.getMessage());
try {
String escapedUrl=ConversionUtils.escapeIllegalURLCharacters(url);
if (log.isDebugEnabled()) {
log.debug("Successfully escaped url:'" + url + "' to:'"+ escapedUrl+ "'");
}
url=escapedUrl;
}
catch ( Exception e1) {
log.error("Error escaping URL:'" + url + "', message:"+ e1.getMessage());
}
}
754 ANTI-PATTERN MLLM : Using multi-line log messages causes problems when multiple threads are running in parallel, two log messages may end up spaced-out multiple lines apart in the log file, group together all log messages, regardless of the level
_________________________________________________________________________________
_________________________________________________________________________________
755 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\proxy\HttpRequestHdr.java
756 CATCH CLAUSE : catch (Exception e1) {
log.error("Error escaping URL:'" + url + "', message:"+ e1.getMessage());
}
757 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
758 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\proxy\Proxy.java
759 CATCH CLAUSE : catch (IOException ioe) {
final String url=param.length > 0 ? " for '" + param[0] + "'" : "";
log.warn(port + "Problem with SSL certificate" + url+ "? Ensure browser is set to accept the JMeter proxy cert: "+ ioe.getMessage());
result=generateErrorResult(result,request,ioe,"\n**ensure browser is set to accept the JMeter proxy certificate**");
throw new JMeterException();
}
760 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
761 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\proxy\Proxy.java
762 CATCH CLAUSE : catch (Exception e) {
log.error(port + "Exception when processing sample",e);
writeErrorToClient(HttpReplyHdr.formInternalError());
result=generateErrorResult(result,request,e);
}
763 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
764 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\proxy\Proxy.java
765 CATCH CLAUSE : catch (Exception e) {
log.error(port + "Failed to close client socket",e);
}
766 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
767 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\proxy\Proxy.java
768 CATCH CLAUSE : catch (IOException e) {
log.error(port + "Problem with keystore",e);
return null;
}
769ANTI-PATTERN LGRN : Log and return null is wrong, instead of returning null, throw the exception, and let the caller deal with it
_________________________________________________________________________________
_________________________________________________________________________________
770 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\proxy\Proxy.java
771 CATCH CLAUSE : catch (GeneralSecurityException e) {
log.error(port + "Problem with keystore",e);
return null;
}
772ANTI-PATTERN LGRN : Log and return null is wrong, instead of returning null, throw the exception, and let the caller deal with it
_________________________________________________________________________________
_________________________________________________________________________________
773 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\proxy\Proxy.java
774 CATCH CLAUSE : catch (IOException e) {
log.error(port + "Error in SSL socket negotiation: ",e);
throw e;
}
775 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
776 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\proxy\Proxy.java
777 CATCH CLAUSE : catch (IOException e) {
log.error("",e);
throw e;
}
778 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
779 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\proxy\Proxy.java
780 CATCH CLAUSE : catch (Exception ex) {
log.warn(port + "Error while closing socket",ex);
}
781 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
782 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\proxy\Proxy.java
783 CATCH CLAUSE : catch (Exception e) {
log.warn(port + "Exception while writing error",e);
}
784 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
785 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\proxy\ProxyControl.java
786 CATCH CLAUSE : catch (GeneralSecurityException e) {
log.error("Could not initialise key store",e);
throw new IOException("Could not create keystore",e);
}
787 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
788 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\proxy\ProxyControl.java
789 CATCH CLAUSE : catch (IOException e) {
log.error("Could not initialise key store",e);
throw e;
}
790 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
791 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\proxy\ProxyControl.java
792 CATCH CLAUSE : catch (IOException e) {
log.error("Could not create Proxy daemon",e);
throw e;
}
793 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
794 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\proxy\ProxyControl.java
795 CATCH CLAUSE : catch (IllegalUserActionException e) {
log.error("Program error",e);
throw new Error(e);
}
796 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
797 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\proxy\ProxyControl.java
798 CATCH CLAUSE : catch (IllegalUserActionException e) {
log.error("Program error",e);
throw new Error(e);
}
799 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
800 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\proxy\ProxyControl.java
801 CATCH CLAUSE : catch (IllegalUserActionException e) {
log.error("Program error",e);
throw new Error(e);
}
802 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
803 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\proxy\ProxyControl.java
804 CATCH CLAUSE : catch (InvalidVariableException e) {
log.error("Program error",e);
throw new Error(e);
}
805 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
806 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\proxy\ProxyControl.java
807 CATCH CLAUSE : catch (IllegalUserActionException e) {
log.error("Program error",e);
throw new Error(e);
}
808 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
809 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\proxy\ProxyControl.java
810 CATCH CLAUSE : catch (Exception e) {
JMeterUtils.reportErrorToUser(e.getMessage());
}
811 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
812 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\proxy\ProxyControl.java
813 CATCH CLAUSE : catch (Exception e) {
keyStore=null;
log.error("Could not open keystore or certificate is not valid " + CERT_PATH_ABS + " "+ e.getMessage());
}
814 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
815 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\proxy\ProxyControl.java
816 CATCH CLAUSE : catch (IOException e) {
keyStore=null;
if (e.getCause() instanceof UnrecoverableKeyException) {
log.warn("Could not read key store " + e.getMessage() + "; cause: "+ e.getCause().getMessage());
}
else {
log.warn("Could not open/read key store " + e.getMessage());
}
}
817 ANTI-PATTERN RRGC : relying on the result of getCause makes the code fragile, use org.apache.commons.lang.exception.ExceptionUtils.getRootCause(Throwable throwable)
_________________________________________________________________________________
_________________________________________________________________________________
818 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\proxy\ProxyControl.java
819 CATCH CLAUSE : catch (Exception e) {
keyStore=null;
log.warn("Could not open expected file or certificate is not valid " + CERT_PATH_ABS + " "+ e.getMessage());
}
820 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
821 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\proxy\SamplerCreator.java
_________________________________________________________________________________
822 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\proxy\SamplerCreatorFactory.java
823 CATCH CLAUSE : catch (Exception e) {
log.error("Exception registering " + SamplerCreator.class.getName() + " with implementation:"+ strClassName,e);
}
824 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
825 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\sampler\AccessLogSampler.java
826 CATCH CLAUSE : catch (Exception e) {
log.warn("Sampling failure",e);
return errorResult(e,new HTTPSampleResult());
}
827 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
828 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\sampler\AccessLogSampler.java
829 CATCH CLAUSE : catch (Exception e) {
log.warn("Couldn't instantiate filter '" + filterClassName + "'",e);
}
830 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
831 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\sampler\AccessLogSampler.java
832 CATCH CLAUSE : catch (Exception e) {
log.warn("Could not clone cloneable filter",e);
}
833 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
834 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\sampler\AccessLogSamplerBeanInfo.java
835 CATCH CLAUSE : catch (IOException e) {
log.warn("couldn't find classes and set up properties",e);
throw new RuntimeException("Could not find classes with class finder",e);
}
836 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
837 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\sampler\AjpSampler.java
838 CATCH CLAUSE : catch (Exception e) {
}
839 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
840 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\sampler\HttpClientDefaultParameters.java
_________________________________________________________________________________
841 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\sampler\HTTPHC3Impl.java
842 CATCH CLAUSE : catch (Exception e) {
log.error("Error sanitizing URL:" + headerLocation.getValue() + ", message:"+ e.getMessage());
}
843 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
844 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\sampler\HTTPHC4Impl.java
845 CATCH CLAUSE : catch (Exception e) {
res.sampleStart();
res.sampleEnd();
errorResult(e,res);
return res;
}
846 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
847 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\sampler\HTTPHC4Impl.java
848 CATCH CLAUSE : catch (Exception e) {
log.error("Error in redirect URL for " + httpRequest.getRequestLine() + "\n\tCould not sanitize URL: "+ redirectLocation+ "\n\t",e);
}
849 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
850 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\sampler\HTTPHC4Impl.java
851 METHOD NAME : run() throws Exception
852 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
853 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\sampler\HTTPHC4Impl.java
854 CATCH CLAUSE : catch (PrivilegedActionException e) {
log.error("Can't execute httpRequest with subject:" + subject,e);
throw new RuntimeException("Can't execute httpRequest with subject:" + subject,e);
}
855 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
856 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\sampler\HTTPJavaImpl.java
857 CATCH CLAUSE : catch (Exception e) {
log.warn("Problem creating the SSLManager: ",e);
}
858 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
859 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\sampler\HTTPJavaImpl.java
860 CATCH CLAUSE : catch (Exception e) {
log.warn("Problem setting the SSLManager for the connection: ",e);
}
861 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
862 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\sampler\HTTPJavaImpl.java
863 CATCH CLAUSE : catch (IOException e) {
if (!(e.getCause() instanceof FileNotFoundException)) {
log.error("readResponse: " + e.toString());
Throwable cause=e.getCause();
if (cause != null) {
log.error("Cause: " + cause);
if (cause instanceof Error) {
throw (Error)cause;
}
}
}
InputStream errorStream=conn.getErrorStream();
if (errorStream == null) {
log.info("Error Response Code: " + conn.getResponseCode() + ", Server sent no Errorpage");
res.setResponseHeaders(getResponseHeaders(conn));
res.latencyEnd();
return NULL_BA;
}
log.info("Error Response Code: " + conn.getResponseCode());
if (gzipped) {
in=new BufferedInputStream(new GZIPInputStream(errorStream));
}
else {
in=new BufferedInputStream(errorStream);
}
}
864 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
865 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\sampler\HTTPJavaImpl.java
866 CATCH CLAUSE : catch (IOException e) {
if (!(e.getCause() instanceof FileNotFoundException)) {
log.error("readResponse: " + e.toString());
Throwable cause=e.getCause();
if (cause != null) {
log.error("Cause: " + cause);
if (cause instanceof Error) {
throw (Error)cause;
}
}
}
InputStream errorStream=conn.getErrorStream();
if (errorStream == null) {
log.info("Error Response Code: " + conn.getResponseCode() + ", Server sent no Errorpage");
res.setResponseHeaders(getResponseHeaders(conn));
res.latencyEnd();
return NULL_BA;
}
log.info("Error Response Code: " + conn.getResponseCode());
if (gzipped) {
in=new BufferedInputStream(new GZIPInputStream(errorStream));
}
else {
in=new BufferedInputStream(errorStream);
}
}
867 ANTI-PATTERN RRGC : relying on the result of getCause makes the code fragile, use org.apache.commons.lang.exception.ExceptionUtils.getRootCause(Throwable throwable)
_________________________________________________________________________________
_________________________________________________________________________________
868 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\sampler\HTTPJavaImpl.java
869 CATCH CLAUSE : catch (IOException e) {
if (!(e.getCause() instanceof FileNotFoundException)) {
log.error("readResponse: " + e.toString());
Throwable cause=e.getCause();
if (cause != null) {
log.error("Cause: " + cause);
if (cause instanceof Error) {
throw (Error)cause;
}
}
}
InputStream errorStream=conn.getErrorStream();
if (errorStream == null) {
log.info("Error Response Code: " + conn.getResponseCode() + ", Server sent no Errorpage");
res.setResponseHeaders(getResponseHeaders(conn));
res.latencyEnd();
return NULL_BA;
}
log.info("Error Response Code: " + conn.getResponseCode());
if (gzipped) {
in=new BufferedInputStream(new GZIPInputStream(errorStream));
}
else {
in=new BufferedInputStream(errorStream);
}
}
870 ANTI-PATTERN MLLM : Using multi-line log messages causes problems when multiple threads are running in parallel, two log messages may end up spaced-out multiple lines apart in the log file, group together all log messages, regardless of the level
_________________________________________________________________________________
_________________________________________________________________________________
871 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\sampler\HTTPJavaImpl.java
872 CATCH CLAUSE : catch (Exception e) {
log.error("readResponse: " + e.toString());
Throwable cause=e.getCause();
if (cause != null) {
log.error("Cause: " + cause);
if (cause instanceof Error) {
throw (Error)cause;
}
}
in=new BufferedInputStream(conn.getErrorStream());
}
873 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
874 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\sampler\HTTPJavaImpl.java
875 CATCH CLAUSE : catch (Exception e) {
log.error("readResponse: " + e.toString());
Throwable cause=e.getCause();
if (cause != null) {
log.error("Cause: " + cause);
if (cause instanceof Error) {
throw (Error)cause;
}
}
in=new BufferedInputStream(conn.getErrorStream());
}
876 ANTI-PATTERN MLLM : Using multi-line log messages causes problems when multiple threads are running in parallel, two log messages may end up spaced-out multiple lines apart in the log file, group together all log messages, regardless of the level
_________________________________________________________________________________
_________________________________________________________________________________
877 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\sampler\HTTPJavaImpl.java
878 CATCH CLAUSE : catch (Exception e) {
log.error("readResponse: " + e.toString());
Throwable cause=e.getCause();
if (cause != null) {
log.error("Cause: " + cause);
if (cause instanceof Error) {
throw (Error)cause;
}
}
in=new BufferedInputStream(conn.getErrorStream());
}
879 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
880 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\sampler\HTTPJavaImpl.java
881 CATCH CLAUSE : catch (BindException e) {
if (retry >= MAX_CONN_RETRIES) {
log.error("Can't connect after " + retry + " retries, "+ e);
throw e;
}
log.debug("Bind exception, try again");
if (conn != null) {
savedConn=null;
conn.disconnect();
}
setUseKeepAlive(false);
continue;
}
882 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
883 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\sampler\HTTPJavaImpl.java
884 CATCH CLAUSE : catch (BindException e) {
if (retry >= MAX_CONN_RETRIES) {
log.error("Can't connect after " + retry + " retries, "+ e);
throw e;
}
log.debug("Bind exception, try again");
if (conn != null) {
savedConn=null;
conn.disconnect();
}
setUseKeepAlive(false);
continue;
}
885 ANTI-PATTERN MLLM : Using multi-line log messages causes problems when multiple threads are running in parallel, two log messages may end up spaced-out multiple lines apart in the log file, group together all log messages, regardless of the level
_________________________________________________________________________________
_________________________________________________________________________________
886 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\sampler\HTTPJavaImpl.java
887 CATCH CLAUSE : catch (IOException e) {
log.debug("Connection failed, giving up");
throw e;
}
888 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
889 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\sampler\HTTPSamplerBase.java
890 CATCH CLAUSE : catch (Exception e) {
return errorResult(e,new HTTPSampleResult());
}
891 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
892 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\sampler\HTTPSamplerProxy.java
893 CATCH CLAUSE : catch (Exception ex) {
return errorResult(ex,new HTTPSampleResult());
}
894 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
895 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\sampler\WebServiceSampler.java
896 CATCH CLAUSE : catch (Exception exception) {
if ("javax.mail.MessagingException".equals(exception.getClass().getName())) {
log.warn(exception.toString());
result.setResponseMessage(exception.getMessage());
}
else {
log.error("Problem processing the SOAP request",exception);
result.setResponseMessage(exception.toString());
}
}
897 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
898 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\util\accesslog\LogFilter.java
899 CATCH CLAUSE : catch (MalformedCachePatternException exception) {
log.error("Problem with pattern: " + pattern,exception);
return null;
}
900ANTI-PATTERN LGRN : Log and return null is wrong, instead of returning null, throw the exception, and let the caller deal with it
_________________________________________________________________________________
_________________________________________________________________________________
901 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\util\accesslog\SharedTCLogParser.java
902 CATCH CLAUSE : catch (Exception exception) {
log.error("Problem creating samples",exception);
}
903 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
904 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\util\accesslog\TCLogParser.java
905 CATCH CLAUSE : catch (Exception exception) {
log.error("Problem creating samples",exception);
}
906 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
907 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\util\accesslog\TCLogParser.java
908 CATCH CLAUSE : catch (Exception e) {
}
909 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
910 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\util\ConversionUtils.java
911 METHOD NAME : escapeIllegalURLCharacters(String url) throws Exception
912 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
913 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\util\HTTPArgument.java
914 CATCH CLAUSE : catch (UnsupportedEncodingException e) {
log.error(contentEncoding + " encoding not supported!");
throw new Error(e.toString(),e);
}
915 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
916 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\util\WSDLHelper.java
917 CATCH CLAUSE : catch (Exception exception) {
log.warn("Exception calling getBinding:" + exception.getMessage(),exception);
return null;
}
918 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
919 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\util\WSDLHelper.java
920 CATCH CLAUSE : catch (Exception exception) {
log.warn("Exception calling getBinding:" + exception.getMessage(),exception);
return null;
}
921ANTI-PATTERN LGRN : Log and return null is wrong, instead of returning null, throw the exception, and let the caller deal with it
_________________________________________________________________________________
_________________________________________________________________________________
922 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\util\WSDLHelper.java
923 CATCH CLAUSE : catch (Exception exception) {
System.out.println("main method catch:");
exception.printStackTrace();
}
924 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
925 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\visualizers\RequestViewHTTP.java
926 CATCH CLAUSE : catch (IllegalArgumentException e) {
log.warn("Error decoding query, maybe your request parameters should be encoded:" + query,e);
return null;
}
927ANTI-PATTERN LGRN : Log and return null is wrong, instead of returning null, throw the exception, and let the caller deal with it
_________________________________________________________________________________
_________________________________________________________________________________
928 FILE NAME : apache-jmeter-2.11\src\protocol\http\org\apache\jmeter\protocol\http\visualizers\RequestViewHTTP.java
929 CATCH CLAUSE : catch (UnsupportedEncodingException uee) {
log.warn("Error decoding query, maybe your request parameters should be encoded:" + query,uee);
return null;
}
930ANTI-PATTERN LGRN : Log and return null is wrong, instead of returning null, throw the exception, and let the caller deal with it
_________________________________________________________________________________
_________________________________________________________________________________
931 FILE NAME : apache-jmeter-2.11\src\protocol\java\org\apache\jmeter\protocol\java\config\gui\JavaConfigGui.java
932 CATCH CLAUSE : catch (Exception e) {
log.debug("Exception getting interfaces.",e);
}
933 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
934 FILE NAME : apache-jmeter-2.11\src\protocol\java\org\apache\jmeter\protocol\java\config\gui\JavaConfigGui.java
935 CATCH CLAUSE : catch (Exception e) {
log.error("Error getting argument list for " + className,e);
}
936 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
937 FILE NAME : apache-jmeter-2.11\src\protocol\java\org\apache\jmeter\protocol\java\sampler\BeanShellSampler.java
938 CATCH CLAUSE : catch (Exception ex) {
log.warn(ex.toString());
res.setResponseCode("500");
res.setResponseMessage(ex.toString());
}
939 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
940 FILE NAME : apache-jmeter-2.11\src\protocol\java\org\apache\jmeter\protocol\java\sampler\BSFSampler.java
941 CATCH CLAUSE : catch (Exception ex) {
log.warn("Problem evaluating the script",ex);
res.setSuccessful(false);
res.setResponseCode("500");
res.setResponseMessage(ex.toString());
}
942 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
943 FILE NAME : apache-jmeter-2.11\src\protocol\java\org\apache\jmeter\protocol\java\sampler\JavaSampler.java
944 CATCH CLAUSE : catch (Exception e) {
log.error(whoAmI() + "\tException initialising: " + name,e);
}
945 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
946 FILE NAME : apache-jmeter-2.11\src\protocol\java\org\apache\jmeter\protocol\java\sampler\JavaSampler.java
947 CATCH CLAUSE : catch (Exception e) {
log.error(whoAmI() + "\tException creating: " + getClassname(),e);
client=new ErrorSamplerClient();
}
948 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
949 FILE NAME : apache-jmeter-2.11\src\protocol\java\org\apache\jmeter\protocol\java\test\JavaTest.java
950 CATCH CLAUSE : catch (Exception e) {
LOG.error("JavaTest: error during sample",e);
results.setSuccessful(false);
}
951 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
952 FILE NAME : apache-jmeter-2.11\src\protocol\java\org\apache\jmeter\protocol\java\test\SleepTest.java
953 CATCH CLAUSE : catch (Exception e) {
LOG.error("SleepTest: error during sample",e);
results.setSuccessful(false);
results.setResponseMessage(e.toString());
}
954 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
955 FILE NAME : apache-jmeter-2.11\src\protocol\jdbc\org\apache\jmeter\protocol\jdbc\sampler\JDBCSampler.java
956 CATCH CLAUSE : catch (Exception ex) {
res.setResponseMessage(ex.toString());
res.setResponseCode("000");
res.setResponseData(ex.getMessage().getBytes());
res.setSuccessful(false);
}
957 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
958 FILE NAME : apache-jmeter-2.11\src\protocol\jms\org\apache\jmeter\protocol\jms\client\InitialContextFactory.java
959 CATCH CLAUSE : catch (Exception e) {
throw new NamingException(e.toString());
}
960 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
961 FILE NAME : apache-jmeter-2.11\src\protocol\jms\org\apache\jmeter\protocol\jms\client\InitialContextFactory.java
962 CATCH CLAUSE : catch (Exception e) {
}
963 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
964 FILE NAME : apache-jmeter-2.11\src\protocol\jms\org\apache\jmeter\protocol\jms\client\InitialContextFactory.java
965 CATCH CLAUSE : catch (Exception e) {
throw new NamingException(e.toString());
}
966 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
967 FILE NAME : apache-jmeter-2.11\src\protocol\jms\org\apache\jmeter\protocol\jms\sampler\JMSSampler.java
968 CATCH CLAUSE : catch (Exception e) {
LOGGER.warn(e.getLocalizedMessage(),e);
if (thrown != null) {
res.setResponseMessage(thrown.toString());
}
else {
res.setResponseMessage(e.getLocalizedMessage());
}
}
969 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
970 FILE NAME : apache-jmeter-2.11\src\protocol\jms\org\apache\jmeter\protocol\jms\sampler\JMSSampler.java
971 CATCH CLAUSE : catch (Exception e) {
thrown=e;
LOGGER.error(e.getLocalizedMessage(),e);
}
972 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
973 FILE NAME : apache-jmeter-2.11\src\protocol\jms\org\apache\jmeter\protocol\jms\sampler\PublisherSampler.java
974 CATCH CLAUSE : catch (Exception e) {
result.setResponseMessage(e.toString());
}
975 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
976 FILE NAME : apache-jmeter-2.11\src\protocol\jms\org\apache\jmeter\protocol\jms\sampler\PublisherSampler.java
977 CATCH CLAUSE : catch (Exception e) {
log.error(e.getLocalizedMessage(),e);
throw new IllegalStateException("Unable to load file",e);
}
978 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
979 FILE NAME : apache-jmeter-2.11\src\protocol\jms\org\apache\jmeter\protocol\jms\sampler\PublisherSampler.java
980 CATCH CLAUSE : catch (Exception e) {
log.error(e.getLocalizedMessage(),e);
throw new IllegalStateException("Unable to load file",e);
}
981 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
982 FILE NAME : apache-jmeter-2.11\src\protocol\jms\org\apache\jmeter\protocol\jms\sampler\PublisherSampler.java
983 CATCH CLAUSE : catch (Exception e) {
log.error(e.getLocalizedMessage(),e);
throw new IllegalStateException("Unable to load object instance from file",e);
}
984 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
985 FILE NAME : apache-jmeter-2.11\src\protocol\jms\org\apache\jmeter\protocol\jms\sampler\PublisherSampler.java
986 CATCH CLAUSE : catch (Exception e) {
log.error(e.getLocalizedMessage(),e);
throw new IllegalStateException("Unable to load object instance from file",e);
}
987 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
988 FILE NAME : apache-jmeter-2.11\src\protocol\jms\org\apache\jmeter\protocol\jms\sampler\PublisherSampler.java
989 CATCH CLAUSE : catch (Exception e) {
log.error(e.getLocalizedMessage(),e);
throw new IllegalStateException("Unable to load object instance from text",e);
}
990 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
991 FILE NAME : apache-jmeter-2.11\src\protocol\jms\org\apache\jmeter\protocol\jms\sampler\PublisherSampler.java
992 CATCH CLAUSE : catch (Exception e) {
log.error(e.getLocalizedMessage(),e);
throw new IllegalStateException("Unable to load object instance from text",e);
}
993 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
994 FILE NAME : apache-jmeter-2.11\src\protocol\ldap\org\apache\jmeter\protocol\ldap\sampler\LDAPSampler.java
995 CATCH CLAUSE : catch (Exception ex) {
log.error("Ldap client - ",ex);
res.setResponseCode("500");
res.setResponseMessage(ex.toString());
isSuccessful=false;
}
996 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
997 FILE NAME : apache-jmeter-2.11\src\protocol\mail\org\apache\jmeter\protocol\mail\sampler\MailFileFolder.java
998 CATCH CLAUSE : catch (FileNotFoundException e) {
throw new MessagingException("Cannot open folder: " + e.getMessage());
}
999 ANTI-PATTERN WEPG : Wrapping the exception and passing getMessage() destroys the stack trace of original exception
_________________________________________________________________________________
_________________________________________________________________________________
1000 FILE NAME : apache-jmeter-2.11\src\protocol\mail\org\apache\jmeter\protocol\smtp\sampler\protocol\LocalTrustStoreSSLSocketFactory.java
1001 CATCH CLAUSE : catch (Exception e) {
throw new RuntimeException("Could not create the SSL context",e);
}
1002 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
1003 FILE NAME : apache-jmeter-2.11\src\protocol\mail\org\apache\jmeter\protocol\smtp\sampler\protocol\SendMailCommand.java
1004 METHOD NAME : execute()
* @throws Exception
*/
public void execute() throws Exception
1005 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1006 FILE NAME : apache-jmeter-2.11\src\protocol\mail\org\apache\jmeter\protocol\smtp\sampler\protocol\TrustAllSSLSocketFactory.java
1007 CATCH CLAUSE : catch (Exception e) {
throw new RuntimeException("Could not create the SSL context",e);
}
1008 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
1009 FILE NAME : apache-jmeter-2.11\src\protocol\mail\org\apache\jmeter\protocol\smtp\sampler\SmtpSampler.java
1010 CATCH CLAUSE : catch (Exception ex) {
log.warn("Error while preparing message",ex);
res.setResponseCode("500");
res.setResponseMessage(ex.toString());
return res;
}
1011 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
1012 FILE NAME : apache-jmeter-2.11\src\protocol\mail\org\apache\jmeter\protocol\smtp\sampler\SmtpSampler.java
1013 CATCH CLAUSE : catch (Exception ex) {
log.warn("",ex);
res.setResponseCode("500");
if (null != ex.getMessage() && ex.getMessage().matches("Failed to build truststore")) {
res.setResponseMessage("Failed to build truststore - did not try to send mail!");
}
else {
res.setResponseMessage("Other Exception: " + ex.toString());
}
}
1014 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
1015 FILE NAME : apache-jmeter-2.11\src\protocol\mongodb\org\apache\jmeter\protocol\mongodb\sampler\MongoScriptRunner.java
1016 METHOD NAME : evaluate(DB db,String script) throws Exception
1017 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1018 FILE NAME : apache-jmeter-2.11\src\protocol\mongodb\org\apache\jmeter\protocol\mongodb\sampler\MongoScriptSampler.java
1019 CATCH CLAUSE : catch (Exception ex) {
res.setResponseCode("500");
res.setSuccessful(false);
res.setResponseMessage(ex.toString());
res.setResponseData(ex.getMessage().getBytes());
}
1020 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
1021 FILE NAME : apache-jmeter-2.11\src\protocol\tcp\org\apache\jmeter\protocol\tcp\sampler\TCPSampler.java
1022 CATCH CLAUSE : catch (UnknownHostException e) {
log.warn("Unknown host for " + getLabel(),e);
cp.put(ERRKEY,e.toString());
return null;
}
1023ANTI-PATTERN LGRN : Log and return null is wrong, instead of returning null, throw the exception, and let the caller deal with it
_________________________________________________________________________________
_________________________________________________________________________________
1024 FILE NAME : apache-jmeter-2.11\src\protocol\tcp\org\apache\jmeter\protocol\tcp\sampler\TCPSampler.java
1025 CATCH CLAUSE : catch (IOException e) {
log.warn("Could not create socket for " + getLabel(),e);
cp.put(ERRKEY,e.toString());
return null;
}
1026ANTI-PATTERN LGRN : Log and return null is wrong, instead of returning null, throw the exception, and let the caller deal with it
_________________________________________________________________________________
_________________________________________________________________________________
1027 FILE NAME : apache-jmeter-2.11\src\protocol\tcp\org\apache\jmeter\protocol\tcp\sampler\TCPSampler.java
1028 CATCH CLAUSE : catch (Exception e) {
log.error(this + " Exception creating: " + getClassname(),e);
}
1029 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
1030 FILE NAME : apache-jmeter-2.11\src\protocol\tcp\org\apache\jmeter\protocol\tcp\sampler\TCPSampler.java
1031 CATCH CLAUSE : catch (Exception ex) {
log.error("",ex);
isSuccessful=setupSampleResult(res,"",ex,protocolHandler.getCharset());
closeSocket(socketKey);
}
1032 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
1033 FILE NAME : apache-jmeter-2.11\src\reports\org\apache\jmeter\gui\ReportGuiPackage.java
1034 CATCH CLAUSE : catch (ClassNotFoundException e) {
log.error("Could not get GUI for " + node,e);
return null;
}
1035ANTI-PATTERN LGRN : Log and return null is wrong, instead of returning null, throw the exception, and let the caller deal with it
_________________________________________________________________________________
_________________________________________________________________________________
1036 FILE NAME : apache-jmeter-2.11\src\reports\org\apache\jmeter\gui\ReportGuiPackage.java
1037 CATCH CLAUSE : catch (Exception e) {
log.error("Problem retrieving gui",e);
return null;
}
1038 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
1039 FILE NAME : apache-jmeter-2.11\src\reports\org\apache\jmeter\gui\ReportGuiPackage.java
1040 CATCH CLAUSE : catch (Exception e) {
log.error("Problem retrieving gui",e);
return null;
}
1041ANTI-PATTERN LGRN : Log and return null is wrong, instead of returning null, throw the exception, and let the caller deal with it
_________________________________________________________________________________
_________________________________________________________________________________
1042 FILE NAME : apache-jmeter-2.11\src\reports\org\apache\jmeter\gui\ReportGuiPackage.java
1043 CATCH CLAUSE : catch (Exception e) {
log.error("Problem retrieving gui",e);
return null;
}
1044 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
1045 FILE NAME : apache-jmeter-2.11\src\reports\org\apache\jmeter\gui\ReportGuiPackage.java
1046 CATCH CLAUSE : catch (Exception e) {
log.error("Problem retrieving gui",e);
return null;
}
1047ANTI-PATTERN LGRN : Log and return null is wrong, instead of returning null, throw the exception, and let the caller deal with it
_________________________________________________________________________________
_________________________________________________________________________________
1048 FILE NAME : apache-jmeter-2.11\src\reports\org\apache\jmeter\gui\ReportGuiPackage.java
1049 CATCH CLAUSE : catch (Exception e) {
log.error("Problem retrieving gui",e);
return null;
}
1050 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
1051 FILE NAME : apache-jmeter-2.11\src\reports\org\apache\jmeter\gui\ReportGuiPackage.java
1052 CATCH CLAUSE : catch (Exception e) {
log.error("Problem retrieving gui",e);
return null;
}
1053ANTI-PATTERN LGRN : Log and return null is wrong, instead of returning null, throw the exception, and let the caller deal with it
_________________________________________________________________________________
_________________________________________________________________________________
1054 FILE NAME : apache-jmeter-2.11\src\reports\org\apache\jmeter\gui\ReportGuiPackage.java
1055 CATCH CLAUSE : catch (NoClassDefFoundError e) {
log.error("Problem retrieving gui for " + objClass,e);
throw new RuntimeException(e.toString(),e);
}
1056 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
1057 FILE NAME : apache-jmeter-2.11\src\reports\org\apache\jmeter\gui\ReportGuiPackage.java
1058 CATCH CLAUSE : catch (ClassNotFoundException e) {
log.error("Problem retrieving gui for " + objClass,e);
throw new RuntimeException(e.toString(),e);
}
1059 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
1060 FILE NAME : apache-jmeter-2.11\src\reports\org\apache\jmeter\gui\ReportGuiPackage.java
1061 CATCH CLAUSE : catch (InstantiationException e) {
log.error("Problem retrieving gui for " + objClass,e);
throw new RuntimeException(e.toString(),e);
}
1062 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
1063 FILE NAME : apache-jmeter-2.11\src\reports\org\apache\jmeter\gui\ReportGuiPackage.java
1064 CATCH CLAUSE : catch (IllegalAccessException e) {
log.error("Problem retrieving gui for " + objClass,e);
throw new RuntimeException(e.toString(),e);
}
1065 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
1066 FILE NAME : apache-jmeter-2.11\src\reports\org\apache\jmeter\gui\ReportGuiPackage.java
1067 CATCH CLAUSE : catch (Exception e) {
log.error("Problem retrieving gui",e);
}
1068 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
1069 FILE NAME : apache-jmeter-2.11\src\reports\org\apache\jmeter\gui\util\ReportMenuFactory.java
1070 CATCH CLAUSE : catch (Exception e) {
log.error("",e);
}
1071 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
1072 FILE NAME : apache-jmeter-2.11\src\reports\org\apache\jmeter\gui\util\ReportMenuFactory.java
1073 CATCH CLAUSE : catch (Exception e) {
log.warn("Could not instantiate " + name,e);
continue;
}
1074 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
1075 FILE NAME : apache-jmeter-2.11\src\reports\org\apache\jmeter\JMeterReport.java
1076 CATCH CLAUSE : catch (Exception e) {
log.error("Failure loading test file",e);
JMeterUtils.reportErrorToUser(e.toString());
}
1077 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
1078 FILE NAME : apache-jmeter-2.11\src\reports\org\apache\jmeter\JMeterReport.java
1079 CATCH CLAUSE : catch (Exception e) {
e.printStackTrace();
System.out.println("An error occurred: " + e.getMessage());
System.exit(-1);
}
1080 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
1081 FILE NAME : apache-jmeter-2.11\src\reports\org\apache\jmeter\report\gui\action\ReportActionRouter.java
1082 CATCH CLAUSE : catch (Exception err) {
log.error("",err);
}
1083 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
1084 FILE NAME : apache-jmeter-2.11\src\reports\org\apache\jmeter\report\gui\action\ReportActionRouter.java
1085 CATCH CLAUSE : catch (Exception err) {
log.error("",err);
}
1086 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
1087 FILE NAME : apache-jmeter-2.11\src\reports\org\apache\jmeter\report\gui\action\ReportActionRouter.java
1088 CATCH CLAUSE : catch (Exception err) {
log.error("",err);
}
1089 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
1090 FILE NAME : apache-jmeter-2.11\src\reports\org\apache\jmeter\report\gui\action\ReportActionRouter.java
1091 CATCH CLAUSE : catch (Exception err) {
log.error("",err);
}
1092 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
1093 FILE NAME : apache-jmeter-2.11\src\reports\org\apache\jmeter\report\gui\action\ReportActionRouter.java
1094 CATCH CLAUSE : catch (Exception e) {
log.error("exception finding action handlers",e);
}
1095 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
1096 FILE NAME : apache-jmeter-2.11\src\reports\org\apache\jmeter\report\gui\action\ReportAddParent.java
1097 CATCH CLAUSE : catch (Exception err) {
log.error("",err);
}
1098 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
1099 FILE NAME : apache-jmeter-2.11\src\reports\org\apache\jmeter\report\gui\action\ReportAddToTree.java
1100 CATCH CLAUSE : catch (Exception err) {
log.error("",err);
}
1101 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
1102 FILE NAME : apache-jmeter-2.11\src\reports\org\apache\jmeter\report\gui\action\ReportLoad.java
1103 CATCH CLAUSE : catch (Exception ex) {
String msg=ex.getMessage();
if (msg == null) {
msg="Unexpected error - see log for details";
log.warn("Unexpected error",ex);
}
JMeterUtils.reportErrorToUser(msg);
}
1104 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
1105 FILE NAME : apache-jmeter-2.11\src\reports\org\apache\jmeter\report\gui\action\ReportLoad.java
1106 METHOD NAME : insertLoadedTree(int id,HashTree tree) throws Exception, IllegalUserActionException
1107 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1108 FILE NAME : apache-jmeter-2.11\src\reports\org\apache\jmeter\report\gui\action\ReportSave.java
1109 CATCH CLAUSE : catch (Exception err) {
}
1110 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
1111 FILE NAME : apache-jmeter-2.11\src\reports\org\apache\jmeter\report\gui\action\ReportSave.java
1112 CATCH CLAUSE : catch (Exception ex) {
ReportGuiPackage.getInstance().setReportPlanFile(null);
log.error("",ex);
throw new IllegalUserActionException("Couldn't save test plan to file: " + updateFile);
}
1113 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
1114 FILE NAME : apache-jmeter-2.11\src\reports\org\apache\jmeter\report\gui\action\ReportSave.java
1115 CATCH CLAUSE : catch (Exception ex) {
ReportGuiPackage.getInstance().setReportPlanFile(null);
log.error("",ex);
throw new IllegalUserActionException("Couldn't save test plan to file: " + updateFile);
}
1116 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
1117 FILE NAME : apache-jmeter-2.11\src\reports\org\apache\jmeter\report\gui\tree\ReportTreeModel.java
1118 CATCH CLAUSE : catch (Exception e) {
newNode.setEnabled(true);
}
1119 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
1120 FILE NAME : apache-jmeter-2.11\src\reports\org\apache\jmeter\report\gui\tree\ReportTreeNode.java
1121 CATCH CLAUSE : catch (IntrospectionException e1) {
log.error("Can't obtain icon",e1);
throw new org.apache.jorphan.util.JMeterError(e1);
}
1122 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
1123 FILE NAME : apache-jmeter-2.11\src\reports\org\apache\jmeter\report\gui\tree\ReportTreeNode.java
1124 CATCH CLAUSE : catch (ClassNotFoundException e) {
log.warn("Can't get icon for class " + getTestElement(),e);
return null;
}
1125ANTI-PATTERN LGRN : Log and return null is wrong, instead of returning null, throw the exception, and let the caller deal with it
_________________________________________________________________________________
_________________________________________________________________________________
1126 FILE NAME : apache-jmeter-2.11\src\reports\org\apache\jmeter\report\gui\tree\ReportTreeNode.java
1127 CATCH CLAUSE : catch (Exception e) {
log.error("Can't get popup menu for gui",e);
return null;
}
1128 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
1129 FILE NAME : apache-jmeter-2.11\src\reports\org\apache\jmeter\report\gui\tree\ReportTreeNode.java
1130 CATCH CLAUSE : catch (Exception e) {
log.error("Can't get popup menu for gui",e);
return null;
}
1131ANTI-PATTERN LGRN : Log and return null is wrong, instead of returning null, throw the exception, and let the caller deal with it
_________________________________________________________________________________
_________________________________________________________________________________
1132 FILE NAME : apache-jmeter-2.11\src\reports\org\apache\jmeter\report\gui\tree\ReportTreeNode.java
1133 CATCH CLAUSE : catch (Exception e) {
log.error("Can't get popup menu for gui",e);
return null;
}
1134 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
1135 FILE NAME : apache-jmeter-2.11\src\reports\org\apache\jmeter\report\gui\tree\ReportTreeNode.java
1136 CATCH CLAUSE : catch (Exception e) {
log.error("Can't get popup menu for gui",e);
return null;
}
1137ANTI-PATTERN LGRN : Log and return null is wrong, instead of returning null, throw the exception, and let the caller deal with it
_________________________________________________________________________________
_________________________________________________________________________________
1138 FILE NAME : apache-jmeter-2.11\test\src\org\apache\commons\cli\avalon\ClutilTestCase.java
1139 METHOD NAME : testCombinations() throws Exception
1140 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1141 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\assertions\MD5HexAssertionTest.java
1142 METHOD NAME : testMD5() throws Exception
1143 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1144 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\assertions\ResponseAssertionTest.java
1145 METHOD NAME : testResponseAssertionEquals() throws Exception
1146 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1147 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\assertions\ResponseAssertionTest.java
1148 METHOD NAME : testResponseAssertionHeaders() throws Exception
1149 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1150 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\assertions\ResponseAssertionTest.java
1151 METHOD NAME : testResponseAssertionContains() throws Exception
1152 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1153 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\assertions\ResponseAssertionTest.java
1154 METHOD NAME : testResponseAssertionContainsDollar() throws Exception
1155 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1156 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\assertions\ResponseAssertionTest.java
1157 METHOD NAME : testResponseAssertionSubstring() throws Exception
1158 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1159 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\assertions\ResponseAssertionTest.java
1160 METHOD NAME : assertPassed() throws Exception
1161 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1162 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\assertions\ResponseAssertionTest.java
1163 METHOD NAME : assertFailed() throws Exception
1164 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1165 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\assertions\ResponseAssertionTest.java
1166 METHOD NAME : testThreadSafety() throws Exception
1167 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1168 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\assertions\SizeAssertionTest.java
1169 METHOD NAME : testSizeAssertionEquals() throws Exception
1170 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1171 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\assertions\SizeAssertionTest.java
1172 METHOD NAME : testSizeAssertionNotEquals() throws Exception
1173 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1174 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\assertions\SizeAssertionTest.java
1175 METHOD NAME : testSizeAssertionGreaterThan() throws Exception
1176 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1177 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\assertions\SizeAssertionTest.java
1178 METHOD NAME : testSizeAssertionGreaterThanEqual() throws Exception
1179 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1180 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\assertions\SizeAssertionTest.java
1181 METHOD NAME : testSizeAssertionLessThan() throws Exception
1182 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1183 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\assertions\SizeAssertionTest.java
1184 METHOD NAME : testSizeAssertionLessThanEqual() throws Exception
1185 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1186 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\assertions\SizeAssertionTest.java
1187 METHOD NAME : assertPassed() throws Exception
1188 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1189 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\assertions\SizeAssertionTest.java
1190 METHOD NAME : assertFailed() throws Exception
1191 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1192 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\assertions\XMLSchemaAssertionTest.java
1193 METHOD NAME : setUp() throws Exception
1194 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1195 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\assertions\XMLSchemaAssertionTest.java
1196 METHOD NAME : testAssertionOK() throws Exception
1197 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1198 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\assertions\XMLSchemaAssertionTest.java
1199 METHOD NAME : testAssertionFail() throws Exception
1200 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1201 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\assertions\XMLSchemaAssertionTest.java
1202 METHOD NAME : testAssertionBadXSDFile() throws Exception
1203 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1204 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\assertions\XMLSchemaAssertionTest.java
1205 METHOD NAME : testAssertionNoFile() throws Exception
1206 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1207 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\assertions\XMLSchemaAssertionTest.java
1208 METHOD NAME : testAssertionNoResult() throws Exception
1209 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1210 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\assertions\XMLSchemaAssertionTest.java
1211 METHOD NAME : testAssertionEmptyResult() throws Exception
1212 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1213 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\assertions\XMLSchemaAssertionTest.java
1214 METHOD NAME : testAssertionBlankResult() throws Exception
1215 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1216 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\assertions\XMLSchemaAssertionTest.java
1217 METHOD NAME : testXMLTrailingcontent() throws Exception
1218 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1219 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\assertions\XMLSchemaAssertionTest.java
1220 METHOD NAME : testXMLTrailingwhitespace() throws Exception
1221 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1222 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\assertions\XPathAssertionTest.java
1223 METHOD NAME : setUp() throws Exception
1224 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1225 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\assertions\XPathAssertionTest.java
1226 METHOD NAME : testAssertionOK() throws Exception
1227 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1228 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\assertions\XPathAssertionTest.java
1229 METHOD NAME : testAssertionFail() throws Exception
1230 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1231 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\assertions\XPathAssertionTest.java
1232 METHOD NAME : testAssertionPath1() throws Exception
1233 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1234 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\assertions\XPathAssertionTest.java
1235 METHOD NAME : testAssertionPath2() throws Exception
1236 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1237 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\assertions\XPathAssertionTest.java
1238 METHOD NAME : testAssertionBool1() throws Exception
1239 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1240 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\assertions\XPathAssertionTest.java
1241 METHOD NAME : testAssertionBool2() throws Exception
1242 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1243 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\assertions\XPathAssertionTest.java
1244 METHOD NAME : testAssertionBool3() throws Exception
1245 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1246 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\assertions\XPathAssertionTest.java
1247 METHOD NAME : testAssertionBool4() throws Exception
1248 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1249 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\assertions\XPathAssertionTest.java
1250 METHOD NAME : testAssertionNumber() throws Exception
1251 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1252 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\assertions\XPathAssertionTest.java
1253 METHOD NAME : testAssertionNoResult() throws Exception
1254 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1255 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\assertions\XPathAssertionTest.java
1256 METHOD NAME : testAssertionEmptyResult() throws Exception
1257 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1258 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\assertions\XPathAssertionTest.java
1259 METHOD NAME : testAssertionBlankResult() throws Exception
1260 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1261 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\assertions\XPathAssertionTest.java
1262 METHOD NAME : testNoTolerance() throws Exception
1263 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1264 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\assertions\XPathAssertionTest.java
1265 METHOD NAME : testAssertion() throws Exception
1266 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1267 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\assertions\XPathAssertionTest.java
1268 METHOD NAME : testNegateAssertion() throws Exception
1269 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1270 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\assertions\XPathAssertionTest.java
1271 METHOD NAME : testValidationFailure() throws Exception
1272 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1273 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\assertions\XPathAssertionTest.java
1274 METHOD NAME : testValidationSuccess() throws Exception
1275 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1276 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\assertions\XPathAssertionTest.java
1277 METHOD NAME : testValidationFailureWithDTD() throws Exception
1278 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1279 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\assertions\XPathAssertionTest.java
1280 METHOD NAME : testTolerance() throws Exception
1281 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1282 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\config\gui\TestArgumentsPanel.java
1283 METHOD NAME : testArgumentCreation() throws Exception
1284 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1285 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\config\TestCVSDataSet.java
1286 METHOD NAME : testopen() throws Exception
1287 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1288 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\config\TestCVSDataSet.java
1289 METHOD NAME : testutf8() throws Exception
1290 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1291 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\control\TestGenericController.java
1292 METHOD NAME : testProcessing() throws Exception
1293 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1294 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\control\TestIfController.java
1295 METHOD NAME : testProcessing() throws Exception
1296 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1297 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\control\TestIfController.java
1298 METHOD NAME : testProcessingTrue() throws Exception
1299 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1300 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\control\TestIfController.java
1301 METHOD NAME : testEvaluateAllChildrenWithoutSubController() throws Exception
1302 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1303 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\control\TestIfController.java
1304 METHOD NAME : testEvaluateAllChildrenWithSubController() throws Exception
1305 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1306 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\control\TestInterleaveControl.java
1307 METHOD NAME : testProcessing() throws Exception
1308 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1309 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\control\TestInterleaveControl.java
1310 METHOD NAME : testProcessing6() throws Exception
1311 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1312 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\control\TestInterleaveControl.java
1313 METHOD NAME : testProcessing2() throws Exception
1314 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1315 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\control\TestInterleaveControl.java
1316 METHOD NAME : testProcessing3() throws Exception
1317 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1318 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\control\TestInterleaveControl.java
1319 METHOD NAME : testProcessing4() throws Exception
1320 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1321 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\control\TestInterleaveControl.java
1322 METHOD NAME : testProcessing5() throws Exception
1323 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1324 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\control\TestLoopController.java
1325 METHOD NAME : testProcessing() throws Exception
1326 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1327 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\control\TestLoopController.java
1328 METHOD NAME : testLoopZeroTimes() throws Exception
1329 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1330 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\control\TestLoopController.java
1331 METHOD NAME : testInfiniteLoop() throws Exception
1332 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1333 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\control\TestLoopController.java
1334 METHOD NAME : testBug54467() throws Exception
1335 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1336 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\control\TestOnceOnlyController.java
1337 METHOD NAME : testProcessing() throws Exception
1338 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1339 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\control\TestOnceOnlyController.java
1340 METHOD NAME : testProcessing2() throws Exception
1341 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1342 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\control\TestOnceOnlyController.java
1343 METHOD NAME : testInOuterLoop() throws Exception
1344 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1345 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\control\TestOnceOnlyController.java
1346 METHOD NAME : testInsideInnerLoop() throws Exception
1347 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1348 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\control\TestOnceOnlyController.java
1349 METHOD NAME : notestInsideInterleave() throws Exception
1350 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1351 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\control\TestRunTime.java
1352 METHOD NAME : testProcessing() throws Exception
1353 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1354 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\control\TestSwitchController.java
1355 METHOD NAME : test() throws Exception
1356 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1357 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\control\TestSwitchController.java
1358 METHOD NAME : test0() throws Exception
1359 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1360 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\control\TestSwitchController.java
1361 METHOD NAME : test1() throws Exception
1362 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1363 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\control\TestSwitchController.java
1364 METHOD NAME : test2() throws Exception
1365 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1366 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\control\TestSwitchController.java
1367 METHOD NAME : test3() throws Exception
1368 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1369 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\control\TestSwitchController.java
1370 METHOD NAME : test4() throws Exception
1371 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1372 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\control\TestSwitchController.java
1373 METHOD NAME : testX() throws Exception
1374 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1375 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\control\TestSwitchController.java
1376 METHOD NAME : runSimpleTests(String cond,String exp) throws Exception
1377 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1378 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\control\TestSwitchController.java
1379 METHOD NAME : runSimpleTest(String cond,String exp) throws Exception
1380 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1381 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\control\TestSwitchController.java
1382 METHOD NAME : runSimpleTest2(String cond,String exp,String sub1Name) throws Exception
1383 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1384 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\control\TestSwitchController.java
1385 METHOD NAME : testTest2() throws Exception
1386 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1387 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\control\TestSwitchController.java
1388 METHOD NAME : runTest2(String cond,String exp[]) throws Exception
1389 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1390 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\control\TestSwitchController.java
1391 METHOD NAME : testFunction() throws Exception
1392 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1393 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\control\TestThroughputController.java
1394 METHOD NAME : testByNumber() throws Exception
1395 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1396 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\control\TestThroughputController.java
1397 METHOD NAME : testByNumberZero() throws Exception
1398 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1399 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\control\TestThroughputController.java
1400 METHOD NAME : testByPercent33() throws Exception
1401 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1402 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\control\TestThroughputController.java
1403 METHOD NAME : testByPercentZero() throws Exception
1404 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1405 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\control\TestThroughputController.java
1406 METHOD NAME : testByPercent100() throws Exception
1407 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1408 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\control\TestWhileController.java
1409 METHOD NAME : testBlankPrevOK() throws Exception
1410 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1411 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\control\TestWhileController.java
1412 METHOD NAME : testLastPrevOK() throws Exception
1413 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1414 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\control\TestWhileController.java
1415 METHOD NAME : testOtherPrevOK() throws Exception
1416 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1417 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\control\TestWhileController.java
1418 METHOD NAME : runtestPrevOK(String type) throws Exception
1419 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1420 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\control\TestWhileController.java
1421 METHOD NAME : testBlankPrevFailed() throws Exception
1422 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1423 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\control\TestWhileController.java
1424 METHOD NAME : testVariable1() throws Exception
1425 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1426 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\control\TestWhileController.java
1427 METHOD NAME : testVariable2() throws Exception
1428 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1429 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\control\TestWhileController.java
1430 METHOD NAME : testLASTPrevFailed() throws Exception
1431 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1432 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\control\TestWhileController.java
1433 METHOD NAME : testfalsePrevFailed() throws Exception
1434 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1435 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\control\TestWhileController.java
1436 METHOD NAME : runTestPrevFailed(String s) throws Exception
1437 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1438 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\control\TestWhileController.java
1439 METHOD NAME : testLastFailedBlank() throws Exception
1440 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1441 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\control\TestWhileController.java
1442 METHOD NAME : testLastFailedLast() throws Exception
1443 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1444 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\control\TestWhileController.java
1445 METHOD NAME : runTestLastFailed(String s) throws Exception
1446 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1447 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\control\TestWhileController.java
1448 METHOD NAME : testAlwaysFailOK() throws Exception
1449 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1450 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\control\TestWhileController.java
1451 METHOD NAME : testAlwaysFailBAD() throws Exception
1452 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1453 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\engine\TestTreeCloner.java
1454 METHOD NAME : testCloning() throws Exception
1455 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1456 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\engine\util\PackageTest.java
1457 METHOD NAME : testFunctionParse1() throws Exception
1458 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1459 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\engine\util\PackageTest.java
1460 METHOD NAME : testParseExample1() throws Exception
1461 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1462 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\engine\util\PackageTest.java
1463 METHOD NAME : testParseExample2() throws Exception
1464 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1465 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\engine\util\PackageTest.java
1466 METHOD NAME : testParseExample3() throws Exception
1467 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1468 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\engine\util\PackageTest.java
1469 METHOD NAME : testParseExample4() throws Exception
1470 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1471 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\engine\util\PackageTest.java
1472 METHOD NAME : testParseExample6() throws Exception
1473 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1474 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\engine\util\PackageTest.java
1475 METHOD NAME : testParseExample5() throws Exception
1476 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1477 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\engine\util\PackageTest.java
1478 METHOD NAME : testParseExample7() throws Exception
1479 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1480 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\engine\util\PackageTest.java
1481 METHOD NAME : testParseExample8() throws Exception
1482 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1483 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\engine\util\PackageTest.java
1484 METHOD NAME : testParseExample9() throws Exception
1485 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1486 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\engine\util\PackageTest.java
1487 METHOD NAME : testParseExample10() throws Exception
1488 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1489 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\engine\util\PackageTest.java
1490 METHOD NAME : testParseExample11() throws Exception
1491 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1492 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\engine\util\PackageTest.java
1493 METHOD NAME : testParseExample12() throws Exception
1494 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1495 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\engine\util\PackageTest.java
1496 METHOD NAME : testParseExample13() throws Exception
1497 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1498 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\engine\util\PackageTest.java
1499 METHOD NAME : testParseExample14() throws Exception
1500 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1501 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\engine\util\PackageTest.java
1502 METHOD NAME : testNestedExample1() throws Exception
1503 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1504 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\engine\util\PackageTest.java
1505 METHOD NAME : testNestedExample2() throws Exception
1506 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1507 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\engine\util\TestValueReplacer.java
1508 METHOD NAME : testReverseReplacement() throws Exception
1509 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1510 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\engine\util\TestValueReplacer.java
1511 METHOD NAME : testReplace() throws Exception
1512 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1513 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\engine\util\TestValueReplacer.java
1514 METHOD NAME : testReplaceStringWithBackslash() throws Exception
1515 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1516 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\engine\util\TestValueReplacer.java
1517 METHOD NAME : testReplaceFunctionWithBackslash() throws Exception
1518 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1519 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\engine\util\TestValueReplacer.java
_________________________________________________________________________________
1520 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\extractor\TestRegexExtractor.java
1521 METHOD NAME : testVariableExtraction0() throws Exception
1522 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1523 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\extractor\TestRegexExtractor.java
1524 METHOD NAME : testVariableExtraction() throws Exception
1525 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1526 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\extractor\TestRegexExtractor.java
1527 METHOD NAME : testTemplate1() throws Exception
1528 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1529 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\extractor\TestRegexExtractor.java
1530 METHOD NAME : testTemplate2() throws Exception
1531 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1532 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\extractor\TestRegexExtractor.java
1533 METHOD NAME : testTemplate3() throws Exception
1534 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1535 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\extractor\TestRegexExtractor.java
1536 METHOD NAME : testTemplate4() throws Exception
1537 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1538 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\extractor\TestRegexExtractor.java
1539 METHOD NAME : testTemplate5() throws Exception
1540 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1541 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\extractor\TestRegexExtractor.java
1542 METHOD NAME : testTemplate6() throws Exception
1543 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1544 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\extractor\TestRegexExtractor.java
1545 METHOD NAME : testTemplate7() throws Exception
1546 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1547 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\extractor\TestRegexExtractor.java
1548 METHOD NAME : testVariableExtraction2() throws Exception
1549 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1550 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\extractor\TestRegexExtractor.java
1551 METHOD NAME : testVariableExtraction6() throws Exception
1552 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1553 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\extractor\TestRegexExtractor.java
1554 METHOD NAME : testVariableExtraction3() throws Exception
1555 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1556 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\extractor\TestRegexExtractor.java
1557 METHOD NAME : testVariableExtraction5() throws Exception
1558 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1559 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\extractor\TestRegexExtractor.java
1560 METHOD NAME : testVariableExtraction7() throws Exception
1561 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1562 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\extractor\TestRegexExtractor.java
1563 METHOD NAME : testVariableExtraction8() throws Exception
1564 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1565 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\extractor\TestRegexExtractor.java
1566 METHOD NAME : testVariableExtraction9() throws Exception
1567 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1568 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\extractor\TestRegexExtractor.java
1569 METHOD NAME : testNoDefault() throws Exception
1570 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1571 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\extractor\TestRegexExtractor.java
1572 METHOD NAME : testDefault() throws Exception
1573 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1574 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\extractor\TestRegexExtractor.java
1575 METHOD NAME : testStaleVariables() throws Exception
1576 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1577 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\extractor\TestRegexExtractor.java
1578 METHOD NAME : testScope1() throws Exception
1579 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1580 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\extractor\TestRegexExtractor.java
1581 METHOD NAME : testScope2() throws Exception
1582 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1583 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\extractor\TestXPathExtractor.java
1584 METHOD NAME : testAttributeExtraction() throws Exception
1585 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1586 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\extractor\TestXPathExtractor.java
1587 METHOD NAME : testVariableExtraction() throws Exception
1588 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1589 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\extractor\TestXPathExtractor.java
1590 METHOD NAME : testInvalidXpath() throws Exception
1591 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1592 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\extractor\TestXPathExtractor.java
1593 METHOD NAME : testInvalidDocument() throws Exception
1594 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1595 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\PackageTest.java
1596 METHOD NAME : setCSVReadParams(String p1,String p2) throws Exception
1597 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1598 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\PackageTest.java
1599 METHOD NAME : SFFParams(String p1,String p2,String p3,String p4) throws Exception
1600 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1601 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\PackageTest.java
1602 METHOD NAME : splitParams(String p1,String p2,String p3) throws Exception
1603 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1604 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\PackageTest.java
1605 METHOD NAME : BSHFParams(String p1,String p2,String p3) throws Exception
1606 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1607 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\PackageTest.java
1608 METHOD NAME : suite() throws Exception
1609 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1610 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\PackageTest.java
1611 METHOD NAME : BSH1() throws Exception
1612 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1613 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\PackageTest.java
1614 METHOD NAME : splitTest1() throws Exception
1615 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1616 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\PackageTest.java
1617 METHOD NAME : SFFTest1() throws Exception
1618 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1619 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\PackageTest.java
1620 METHOD NAME : SFFTest2() throws Exception
1621 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1622 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\PackageTest.java
1623 METHOD NAME : SFFTest3() throws Exception
1624 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1625 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\PackageTest.java
1626 METHOD NAME : SFFTest4() throws Exception
1627 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1628 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\PackageTest.java
1629 METHOD NAME : SFFTest5() throws Exception
1630 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1631 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\PackageTest.java
1632 METHOD NAME : CSVThread1() throws Exception
1633 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1634 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\PackageTest.java
1635 METHOD NAME : CSVThread2() throws Exception
1636 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1637 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\PackageTest.java
1638 METHOD NAME : CSVRun() throws Exception
1639 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1640 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\PackageTest.java
1641 METHOD NAME : CSVParams() throws Exception
1642 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1643 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\PackageTest.java
1644 METHOD NAME : CSVSetup() throws Exception
1645 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1646 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\PackageTest.java
1647 METHOD NAME : CSValias() throws Exception
1648 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1649 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\PackageTest.java
1650 METHOD NAME : CSVNoFile() throws Exception
1651 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1652 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\PackageTest.java
1653 METHOD NAME : CSVBlankLine() throws Exception
1654 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1655 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\PackageTest.java
1656 METHOD NAME : XPathtestNull() throws Exception
1657 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1658 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\PackageTest.java
1659 METHOD NAME : XPathtestrowNum() throws Exception
1660 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1661 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\PackageTest.java
1662 METHOD NAME : XPathtestColumns() throws Exception
1663 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1664 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\PackageTest.java
1665 METHOD NAME : XPathtestDefault() throws Exception
1666 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1667 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\PackageTest.java
1668 METHOD NAME : XPathEmpty() throws Exception
1669 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1670 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\PackageTest.java
1671 METHOD NAME : XPathNoFile() throws Exception
1672 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1673 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\PackageTest.java
1674 METHOD NAME : XPathFile1() throws Exception
1675 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1676 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\PackageTest.java
1677 METHOD NAME : XPathFile2() throws Exception
1678 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1679 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\PackageTest.java
1680 METHOD NAME : XPathSetup1() throws Exception
1681 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1682 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\PackageTest.java
1683 METHOD NAME : XPathSetup2() throws Exception
1684 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1685 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\PackageTest.java
1686 METHOD NAME : XPathThread1() throws Exception
1687 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1688 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\PackageTest.java
1689 METHOD NAME : XPathThread2() throws Exception
1690 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1691 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\PackageTest.java
1692 METHOD NAME : setupXPath(String file,String expr) throws Exception
1693 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1694 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\PackageTest.java
1695 METHOD NAME : randomTest1() throws Exception
1696 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1697 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\PackageTest.java
1698 METHOD NAME : variableTest1() throws Exception
1699 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1700 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\PackageTest.java
1701 METHOD NAME : evalTest1() throws Exception
1702 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1703 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\PackageTest.java
1704 METHOD NAME : evalTest2() throws Exception
1705 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1706 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\PackageTest.java
1707 METHOD NAME : sumTest() throws Exception
1708 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1709 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\PackageTest.java
1710 METHOD NAME : checkSum(AbstractFunction func,String value,String[] addends) throws Exception
1711 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1712 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\PackageTest.java
1713 METHOD NAME : checkSumNoVar(AbstractFunction func,String value,String[] addends) throws Exception
1714 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1715 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\TestFileRowColContainer.java
1716 METHOD NAME : testNull() throws Exception
1717 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1718 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\TestFileRowColContainer.java
1719 METHOD NAME : testrowNum() throws Exception
1720 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1721 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\TestFileRowColContainer.java
1722 METHOD NAME : testColumns() throws Exception
1723 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1724 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\TestFileRowColContainer.java
1725 METHOD NAME : testColumnsComma() throws Exception
1726 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1727 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\TestFileRowColContainer.java
1728 METHOD NAME : testColumnsTab() throws Exception
1729 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1730 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\TestFileRowColContainer.java
1731 METHOD NAME : testEmptyCols() throws Exception
1732 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1733 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\TestJexlFunction.java
1734 METHOD NAME : testParameterCount() throws Exception
1735 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1736 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\TestJexlFunction.java
1737 METHOD NAME : testSum() throws Exception
1738 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1739 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\TestJexlFunction.java
1740 METHOD NAME : testSumVar() throws Exception
1741 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1742 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\TestJexlFunction.java
1743 METHOD NAME : testReplace1() throws Exception
1744 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1745 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\TestJexlFunction.java
1746 METHOD NAME : testReplace2() throws Exception
1747 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1748 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\TestRegexFunction.java
1749 METHOD NAME : testVariableExtraction() throws Exception
1750 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1751 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\TestRegexFunction.java
1752 METHOD NAME : testVariableExtraction1a() throws Exception
1753 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1754 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\TestRegexFunction.java
1755 METHOD NAME : testVariableExtraction1b() throws Exception
1756 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1757 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\TestRegexFunction.java
1758 METHOD NAME : testVariableExtractionFromVariable() throws Exception
1759 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1760 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\TestRegexFunction.java
1761 METHOD NAME : testVariableExtractionFromVariable2() throws Exception
1762 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1763 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\TestRegexFunction.java
1764 METHOD NAME : testVariableExtractionFromVariable3() throws Exception
1765 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1766 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\TestRegexFunction.java
1767 METHOD NAME : testVariableExtractionFromVariable4() throws Exception
1768 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1769 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\TestRegexFunction.java
1770 METHOD NAME : testVariableExtractionFromVariable5() throws Exception
1771 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1772 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\TestRegexFunction.java
1773 METHOD NAME : testVariableExtractionFromVariable6() throws Exception
1774 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1775 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\TestRegexFunction.java
1776 METHOD NAME : testVariableExtractionFromVariable7() throws Exception
1777 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1778 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\TestRegexFunction.java
1779 METHOD NAME : testVariableExtractionFromVariable8() throws Exception
1780 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1781 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\TestRegexFunction.java
1782 METHOD NAME : testVariableExtractionFromVariable9() throws Exception
1783 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1784 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\TestRegexFunction.java
1785 METHOD NAME : testVariableExtraction2() throws Exception
1786 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1787 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\TestRegexFunction.java
1788 METHOD NAME : testVariableExtraction5() throws Exception
1789 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1790 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\TestRegexFunction.java
1791 METHOD NAME : testVariableExtraction6() throws Exception
1792 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1793 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\TestRegexFunction.java
1794 METHOD NAME : testComma() throws Exception
1795 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1796 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\TestRegexFunction.java
1797 METHOD NAME : testVariableExtraction3() throws Exception
1798 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1799 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\TestRegexFunction.java
1800 METHOD NAME : testVariableExtraction4() throws Exception
1801 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1802 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\TestRegexFunction.java
1803 METHOD NAME : testDefaultValue() throws Exception
1804 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1805 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\TestTimeFunction.java
1806 METHOD NAME : testDefault() throws Exception
1807 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1808 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\TestTimeFunction.java
1809 METHOD NAME : testDefault1() throws Exception
1810 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1811 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\TestTimeFunction.java
1812 METHOD NAME : testDefault2() throws Exception
1813 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1814 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\TestTimeFunction.java
1815 METHOD NAME : testDefaultNone() throws Exception
1816 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1817 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\TestTimeFunction.java
1818 METHOD NAME : testTooMany() throws Exception
1819 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1820 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\TestTimeFunction.java
1821 METHOD NAME : testYMD() throws Exception
1822 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1823 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\TestTimeFunction.java
1824 METHOD NAME : testYMDnoV() throws Exception
1825 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1826 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\TestTimeFunction.java
1827 METHOD NAME : testHMS() throws Exception
1828 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1829 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\TestTimeFunction.java
1830 METHOD NAME : testYMDHMS() throws Exception
1831 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1832 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\TestTimeFunction.java
1833 METHOD NAME : testUSER1() throws Exception
1834 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1835 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\TestTimeFunction.java
1836 METHOD NAME : testUSER2() throws Exception
1837 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1838 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\TestTimeFunction.java
1839 METHOD NAME : testFixed() throws Exception
1840 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1841 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\TestTimeFunction.java
1842 METHOD NAME : testMixed() throws Exception
1843 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1844 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\TestTimeFunction.java
1845 METHOD NAME : testDivisor() throws Exception
1846 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1847 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\functions\TestTimeFunction.java
1848 METHOD NAME : testDivisorNoMatch() throws Exception
1849 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1850 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\gui\action\PackageTest.java
1851 METHOD NAME : testSaveGraphics() throws Exception
1852 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1853 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\gui\action\PackageTest.java
1854 METHOD NAME : testReportSaveGraphics() throws Exception
1855 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1856 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\gui\action\TestLoad.java
1857 METHOD NAME : checkTestFile() throws Exception
1858 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1859 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\gui\action\TestLoad.java
1860 CATCH CLAUSE : catch (Exception e) {
fail(parent + ": " + testFile.getName()+ " caused "+ e);
}
1861 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
1862 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\gui\action\TestLoad.java
1863 METHOD NAME : assertTree(HashTree tree) throws Exception
1864 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1865 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\gui\action\TestLoad.java
1866 METHOD NAME : getTree(File f) throws Exception
1867 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1868 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\gui\action\TestSave.java
1869 METHOD NAME : testTreeConversion() throws Exception
1870 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1871 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\gui\util\TestMenuFactory.java
1872 METHOD NAME : check(String s,int i) throws Exception
1873 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1874 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\gui\util\TestMenuFactory.java
1875 METHOD NAME : testMenu() throws Exception
1876 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1877 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\gui\util\TristateCheckBoxTest.java
1878 METHOD NAME : main(String args[]) throws Exception
1879 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1880 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\JMeterVersionTest.java
1881 METHOD NAME : setUp() throws Exception
1882 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1883 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\JMeterVersionTest.java
1884 METHOD NAME : testEclipse() throws Exception
1885 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1886 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\JMeterVersionTest.java
1887 METHOD NAME : testMaven() throws Exception
1888 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1889 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\junit\JMeterTest.java
1890 METHOD NAME : suite() throws Exception
1891 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1892 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\junit\JMeterTest.java
1893 METHOD NAME : createTitleSet() throws Exception
1894 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1895 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\junit\JMeterTest.java
1896 METHOD NAME : createTagSet() throws Exception
1897 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1898 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\junit\JMeterTest.java
1899 METHOD NAME : createFunctionSet() throws Exception
1900 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1901 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\junit\JMeterTest.java
1902 METHOD NAME : checkGuiSet() throws Exception
1903 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1904 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\junit\JMeterTest.java
1905 METHOD NAME : checkFunctionSet() throws Exception
1906 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1907 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\junit\JMeterTest.java
1908 METHOD NAME : suiteGUIComponents() throws Exception
1909 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1910 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\junit\JMeterTest.java
1911 METHOD NAME : suiteFunctions() throws Exception
1912 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1913 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\junit\JMeterTest.java
1914 METHOD NAME : suiteBeanComponents() throws Exception
1915 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1916 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\junit\JMeterTest.java
1917 METHOD NAME : runGUITitle() throws Exception
1918 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1919 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\junit\JMeterTest.java
1920 METHOD NAME : runFunction() throws Exception
1921 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1922 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\junit\JMeterTest.java
1923 METHOD NAME : runFunction2() throws Exception
1924 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1925 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\junit\JMeterTest.java
1926 METHOD NAME : GUIComponents1() throws Exception
1927 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1928 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\junit\JMeterTest.java
1929 METHOD NAME : GUIComponents2() throws Exception
1930 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1931 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\junit\JMeterTest.java
1932 METHOD NAME : suiteSerializableElements() throws Exception
1933 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1934 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\junit\JMeterTest.java
1935 METHOD NAME : runSerialTest() throws Exception
1936 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1937 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\junit\JMeterTest.java
1938 CATCH CLAUSE : catch (Exception e) {
fail("serialization of " + serObj.getClass().getName() + " failed: "+ e);
}
1939 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
1940 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\junit\JMeterTest.java
1941 METHOD NAME : suiteTestElements() throws Exception
1942 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1943 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\junit\JMeterTest.java
1944 METHOD NAME : runTestElement() throws Exception
1945 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1946 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\junit\JMeterTest.java
1947 METHOD NAME : readAliases() throws Exception
1948 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1949 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\junit\JMeterTest.java
1950 METHOD NAME : getObjects(Class> extendsClass) throws Exception
1951 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1952 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\junit\JMeterTest.java
1953 CATCH CLAUSE : catch (Exception e) {
caught=e;
if (e instanceof RemoteException) {
System.out.println("o.a.j.junit.JMeterTest WARN: " + "Error creating " + n + " "+ e.toString());
}
else {
throw new Exception("Error creating " + n,e);
}
}
1954 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
1955 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\junit\JMeterTestCase.java
1956 METHOD NAME : checkInvalidParameterCounts(AbstractFunction func,int minimum) throws Exception
1957 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1958 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\junit\JMeterTestCase.java
1959 METHOD NAME : checkInvalidParameterCounts(AbstractFunction func,int min,int max) throws Exception
1960 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1961 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\monitor\model\benchmark\ParseBenchmark.java
1962 CATCH CLAUSE : catch (Exception e) {
e.printStackTrace();
}
1963 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
1964 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\monitor\model\TestObjectFactory.java
1965 METHOD NAME : testStatus() throws Exception
1966 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1967 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\monitor\model\TestObjectFactory.java
1968 METHOD NAME : testNoStatus() throws Exception
1969 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1970 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\monitor\model\TestObjectFactory.java
1971 METHOD NAME : testFileData() throws Exception
1972 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1973 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\monitor\model\TestObjectFactory.java
1974 METHOD NAME : testStringData() throws Exception
1975 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1976 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\gui\TestHttpTestSampleGui.java
1977 METHOD NAME : testCloneSampler() throws Exception
1978 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1979 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestAuthManager.java
1980 METHOD NAME : testHttp() throws Exception
1981 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1982 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestAuthManager.java
1983 METHOD NAME : testHttps() throws Exception
1984 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1985 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestAuthManager.java
1986 METHOD NAME : testFile() throws Exception
1987 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1988 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestCacheManager.java
1989 METHOD NAME : setUp() throws Exception
1990 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1991 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestCacheManager.java
1992 METHOD NAME : tearDown() throws Exception
1993 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1994 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestCacheManager.java
1995 METHOD NAME : testExpiresJava() throws Exception
1996 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
1997 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestCacheManager.java
1998 METHOD NAME : testNoExpiresJava() throws Exception
1999 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2000 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestCacheManager.java
2001 METHOD NAME : testCacheJava() throws Exception
2002 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2003 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestCacheManager.java
2004 METHOD NAME : testExpiresHttpClient() throws Exception
2005 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2006 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestCacheManager.java
2007 METHOD NAME : testCacheHttpClient() throws Exception
2008 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2009 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestCacheManager.java
2010 METHOD NAME : testPrivateCacheHttpClient() throws Exception
2011 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2012 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestCacheManager.java
2013 METHOD NAME : testPrivateCacheNoMaxAgeNoExpireHttpClient() throws Exception
2014 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2015 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestCacheManager.java
2016 METHOD NAME : testPrivateCacheExpireNoMaxAgeHttpClient() throws Exception
2017 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2018 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestCacheManager.java
2019 METHOD NAME : testNoCacheHttpClient() throws Exception
2020 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2021 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestCacheManager.java
2022 METHOD NAME : testNoStoreHttpClient() throws Exception
2023 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2024 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestCacheManager.java
2025 METHOD NAME : testCacheHttpClientBug51932() throws Exception
2026 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2027 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestCacheManager.java
2028 METHOD NAME : testGetClearEachIteration() throws Exception
2029 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2030 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestCacheManager.java
2031 METHOD NAME : testSaveDetailsWithEmptySampleResultGivesNoCacheEntry() throws Exception
2032 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2033 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestCacheManager.java
2034 METHOD NAME : testSaveDetailsURLConnectionWithSampleResultWithResponseCode200GivesCacheEntry() throws Exception
2035 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2036 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestCacheManager.java
2037 METHOD NAME : testSaveDetailsHttpMethodWithSampleResultWithResponseCode200GivesCacheEntry() throws Exception
2038 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2039 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestCacheManager.java
2040 METHOD NAME : testSaveDetailsURLConnectionWithSampleResultWithResponseCode404GivesNoCacheEntry() throws Exception
2041 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2042 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestCacheManager.java
2043 METHOD NAME : testSaveDetailsHttpMethodWithSampleResultWithResponseCode404GivesNoCacheEntry() throws Exception
2044 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2045 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestCacheManager.java
2046 METHOD NAME : testSetHeadersHttpMethodWithSampleResultWithResponseCode200GivesCacheEntry() throws Exception
2047 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2048 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestCacheManager.java
2049 METHOD NAME : testSetHeadersHttpMethodWithSampleResultWithResponseCode404GivesNoCacheEntry() throws Exception
2050 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2051 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestCacheManager.java
2052 METHOD NAME : testSetHeadersHttpURLConnectionWithSampleResultWithResponseCode200GivesCacheEntry() throws Exception
2053 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2054 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestCacheManager.java
2055 METHOD NAME : testSetHeadersHttpURLConnectionWithSampleResultWithResponseCode404GivesNoCacheEntry() throws Exception
2056 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2057 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestCacheManager.java
2058 METHOD NAME : testClearCache() throws Exception
2059 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2060 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestCacheManager.java
2061 METHOD NAME : getThreadCache() throws Exception
2062 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2063 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestCacheManager.java
2064 METHOD NAME : getThreadCacheEntry(String url) throws Exception
2065 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2066 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestCacheManager.java
2067 METHOD NAME : saveDetailsWithHttpMethodAndSampleResultWithResponseCode(String responseCode) throws Exception
2068 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2069 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestCookieManager.java
2070 METHOD NAME : setUp() throws Exception
2071 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2072 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestCookieManager.java
2073 METHOD NAME : testRemoveCookie() throws Exception
2074 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2075 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestCookieManager.java
2076 METHOD NAME : testSendCookie() throws Exception
2077 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2078 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestCookieManager.java
2079 METHOD NAME : testSendCookie2() throws Exception
2080 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2081 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestCookieManager.java
2082 METHOD NAME : testDomainHandling() throws Exception
2083 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2084 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestCookieManager.java
2085 METHOD NAME : testCrossDomainHandling() throws Exception
2086 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2087 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestCookieManager.java
2088 METHOD NAME : testSimilarHostNames() throws Exception
2089 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2090 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestCookieManager.java
2091 METHOD NAME : testSessionCookie() throws Exception
2092 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2093 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestCookieManager.java
2094 METHOD NAME : testCookieWithEquals() throws Exception
2095 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2096 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestCookieManager.java
2097 METHOD NAME : testOldCookie() throws Exception
2098 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2099 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestCookieManager.java
2100 METHOD NAME : testNewCookie() throws Exception
2101 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2102 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestCookieManager.java
2103 METHOD NAME : testCookies1() throws Exception
2104 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2105 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestCookieManager.java
2106 METHOD NAME : testCookies2() throws Exception
2107 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2108 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestCookieManager.java
2109 METHOD NAME : testDuplicateCookie() throws Exception
2110 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2111 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestCookieManager.java
2112 METHOD NAME : testDuplicateCookie2() throws Exception
2113 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2114 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestCookieManager.java
2115 METHOD NAME : testMissingPath0() throws Exception
2116 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2117 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestCookieManager.java
2118 METHOD NAME : testMissingPath1() throws Exception
2119 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2120 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestCookieManager.java
2121 METHOD NAME : testRootPath0() throws Exception
2122 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2123 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestCookieManager.java
2124 METHOD NAME : testRootPath1() throws Exception
2125 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2126 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestCookieManager.java
2127 METHOD NAME : testCookieMatching() throws Exception
2128 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2129 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestCookieManager.java
2130 METHOD NAME : testCookieOrdering1() throws Exception
2131 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2132 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestCookieManager.java
2133 METHOD NAME : testCookieOrdering2() throws Exception
2134 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2135 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestCookieManager.java
2136 METHOD NAME : testCookiePolicy2109() throws Exception
2137 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2138 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestCookieManager.java
2139 METHOD NAME : testCookiePolicyNetscape() throws Exception
2140 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2141 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestCookieManager.java
2142 METHOD NAME : testCookiePolicyIgnore() throws Exception
2143 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2144 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestCookieManager.java
2145 METHOD NAME : testLoad() throws Exception
2146 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2147 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestHTTPMirrorThread.java
2148 METHOD NAME : setUp() throws Exception
2149 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2150 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestHTTPMirrorThread.java
2151 METHOD NAME : tearDown() throws Exception
2152 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2153 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestHTTPMirrorThread.java
2154 METHOD NAME : startHttpMirror(int port) throws Exception
2155 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2156 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestHTTPMirrorThread.java
2157 METHOD NAME : testGetRequest() throws Exception
2158 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2159 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\control\TestHTTPMirrorThread.java
2160 METHOD NAME : testPostRequest() throws Exception
2161 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2162 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\modifier\TestAnchorModifier.java
2163 METHOD NAME : testProcessingHTMLFile(String HTMLFileName) throws Exception
2164 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2165 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\modifier\TestAnchorModifier.java
2166 METHOD NAME : testModifySampler() throws Exception
2167 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2168 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\modifier\TestAnchorModifier.java
2169 METHOD NAME : testModifySamplerWithRelativeLink() throws Exception
2170 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2171 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\modifier\TestAnchorModifier.java
2172 METHOD NAME : testModifySamplerWithBaseHRef() throws Exception
2173 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2174 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\modifier\TestAnchorModifier.java
2175 METHOD NAME : testSimpleParse() throws Exception
2176 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2177 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\modifier\TestAnchorModifier.java
2178 METHOD NAME : testSimpleParse1() throws Exception
2179 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2180 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\modifier\TestAnchorModifier.java
2181 METHOD NAME : testSimpleParse2() throws Exception
2182 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2183 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\modifier\TestAnchorModifier.java
2184 METHOD NAME : testSimpleParse3() throws Exception
2185 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2186 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\modifier\TestAnchorModifier.java
2187 METHOD NAME : testSimpleParse4() throws Exception
2188 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2189 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\modifier\TestAnchorModifier.java
2190 METHOD NAME : testSimpleParse5() throws Exception
2191 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2192 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\modifier\TestAnchorModifier.java
2193 METHOD NAME : testFailSimpleParse1() throws Exception
2194 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2195 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\modifier\TestAnchorModifier.java
2196 METHOD NAME : testFailSimpleParse3() throws Exception
2197 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2198 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\modifier\TestAnchorModifier.java
2199 METHOD NAME : testFailSimpleParse2() throws Exception
2200 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2201 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\modifier\TestAnchorModifier.java
2202 METHOD NAME : testSimpleFormParse() throws Exception
2203 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2204 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\modifier\TestAnchorModifier.java
2205 METHOD NAME : testBadCharParse() throws Exception
2206 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2207 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\modifier\TestAnchorModifier.java
2208 METHOD NAME : testSpecialCharParse() throws Exception
2209 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2210 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\modifier\TestURLRewritingModifier.java
2211 METHOD NAME : testNonHTTPSampler() throws Exception
2212 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2213 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\modifier\TestURLRewritingModifier.java
2214 METHOD NAME : testGrabSessionId() throws Exception
2215 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2216 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\modifier\TestURLRewritingModifier.java
2217 METHOD NAME : testGrabSessionId2() throws Exception
2218 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2219 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\modifier\TestURLRewritingModifier.java
2220 METHOD NAME : testGrabSessionId3() throws Exception
2221 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2222 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\modifier\TestURLRewritingModifier.java
2223 METHOD NAME : testGrabSessionIdFromXMLNonPatExtension() throws Exception
2224 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2225 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\modifier\TestURLRewritingModifier.java
2226 METHOD NAME : testGrabSessionIdFromXMLPatExtension() throws Exception
2227 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2228 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\modifier\TestURLRewritingModifier.java
2229 METHOD NAME : testGrabSessionIdEndedInTab() throws Exception
2230 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2231 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\modifier\TestURLRewritingModifier.java
2232 METHOD NAME : testGrabSessionId4() throws Exception
2233 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2234 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\modifier\TestURLRewritingModifier.java
2235 METHOD NAME : testGrabSessionId5() throws Exception
2236 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2237 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\modifier\TestURLRewritingModifier.java
2238 METHOD NAME : testGrabSessionIdFromForm() throws Exception
2239 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2240 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\modifier\TestURLRewritingModifier.java
2241 METHOD NAME : testGrabSessionIdURLinJSON() throws Exception
2242 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2243 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\modifier\TestURLRewritingModifier.java
2244 METHOD NAME : testCache() throws Exception
2245 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2246 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\modifier\TestURLRewritingModifier.java
2247 METHOD NAME : testNoCache() throws Exception
2248 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2249 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\parser\TestHTMLParser.java
2250 METHOD NAME : testParserProperty() throws Exception
2251 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2252 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\parser\TestHTMLParser.java
2253 METHOD NAME : testDefaultParser() throws Exception
2254 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2255 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\parser\TestHTMLParser.java
2256 METHOD NAME : testParserDefault() throws Exception
2257 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2258 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\parser\TestHTMLParser.java
2259 METHOD NAME : testParserMissing() throws Exception
2260 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2261 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\parser\TestHTMLParser.java
2262 CATCH CLAUSE : catch (HTMLParseError e) {
if (e.getCause() instanceof ClassNotFoundException) {
}
else {
throw e;
}
}
2263 ANTI-PATTERN RRGC : relying on the result of getCause makes the code fragile, use org.apache.commons.lang.exception.ExceptionUtils.getRootCause(Throwable throwable)
_________________________________________________________________________________
_________________________________________________________________________________
2264 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\parser\TestHTMLParser.java
2265 METHOD NAME : testNotParser() throws Exception
2266 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2267 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\parser\TestHTMLParser.java
2268 CATCH CLAUSE : catch (HTMLParseError e) {
if (e.getCause() instanceof ClassCastException) {
return;
}
throw e;
}
2269 ANTI-PATTERN RRGC : relying on the result of getCause makes the code fragile, use org.apache.commons.lang.exception.ExceptionUtils.getRootCause(Throwable throwable)
_________________________________________________________________________________
_________________________________________________________________________________
2270 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\parser\TestHTMLParser.java
2271 METHOD NAME : testNotCreatable() throws Exception
2272 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2273 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\parser\TestHTMLParser.java
2274 CATCH CLAUSE : catch (HTMLParseError e) {
if (e.getCause() instanceof InstantiationException) {
return;
}
throw e;
}
2275 ANTI-PATTERN RRGC : relying on the result of getCause makes the code fragile, use org.apache.commons.lang.exception.ExceptionUtils.getRootCause(Throwable throwable)
_________________________________________________________________________________
_________________________________________________________________________________
2276 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\parser\TestHTMLParser.java
2277 METHOD NAME : testNotCreatableStatic() throws Exception
2278 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2279 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\parser\TestHTMLParser.java
2280 CATCH CLAUSE : catch (HTMLParseError e) {
if (e.getCause() instanceof ClassCastException) {
return;
}
if (e.getCause() instanceof IllegalAccessException) {
return;
}
throw e;
}
2281 ANTI-PATTERN RRGC : relying on the result of getCause makes the code fragile, use org.apache.commons.lang.exception.ExceptionUtils.getRootCause(Throwable throwable)
_________________________________________________________________________________
_________________________________________________________________________________
2282 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\parser\TestHTMLParser.java
2283 CATCH CLAUSE : catch (HTMLParseError e) {
if (e.getCause() instanceof ClassCastException) {
return;
}
if (e.getCause() instanceof IllegalAccessException) {
return;
}
throw e;
}
2284 ANTI-PATTERN RRGC : relying on the result of getCause makes the code fragile, use org.apache.commons.lang.exception.ExceptionUtils.getRootCause(Throwable throwable)
_________________________________________________________________________________
_________________________________________________________________________________
2285 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\parser\TestHTMLParser.java
2286 METHOD NAME : testParserSet() throws Exception
2287 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2288 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\parser\TestHTMLParser.java
2289 METHOD NAME : testParserList() throws Exception
2290 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2291 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\parser\TestHTMLParser.java
2292 METHOD NAME : filetest(HTMLParser p,String file,String url,String resultFile,Collection c,boolean orderMatters) throws Exception
2293 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2294 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\parser\TestHTMLParser.java
2295 METHOD NAME : getFile(String file) throws Exception
2296 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2297 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\parser\TestHtmlParsingUtils.java
2298 METHOD NAME : testGetParser() throws Exception
2299 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2300 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\parser\TestHtmlParsingUtils.java
2301 METHOD NAME : testGetDom() throws Exception
2302 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2303 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\parser\TestHtmlParsingUtils.java
2304 METHOD NAME : testIsArgumentMatched() throws Exception
2305 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2306 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\parser\TestHtmlParsingUtils.java
2307 METHOD NAME : testIsAnchorMatched() throws Exception
2308 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2309 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\parser\TestHtmlParsingUtils.java
2310 METHOD NAME : testisEqualOrMatches() throws Exception
2311 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2312 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\parser\TestHtmlParsingUtils.java
2313 METHOD NAME : testisEqualOrMatchesCaseBlind() throws Exception
2314 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2315 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\proxy\TestHttpRequestHdr.java
2316 METHOD NAME : testRepeatedArguments() throws Exception
2317 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2318 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\proxy\TestHttpRequestHdr.java
2319 METHOD NAME : testEncodedArguments() throws Exception
2320 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2321 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\proxy\TestHttpRequestHdr.java
2322 METHOD NAME : testEncodedArgumentsIPv6() throws Exception
2323 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2324 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\proxy\TestHttpRequestHdr.java
2325 METHOD NAME : testEncodedArguments(String url) throws Exception
2326 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2327 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\proxy\TestHttpRequestHdr.java
2328 METHOD NAME : testGetRequestEncodings() throws Exception
2329 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2330 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\proxy\TestHttpRequestHdr.java
2331 METHOD NAME : testGetRequestEncodingsIPv6() throws Exception
2332 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2333 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\proxy\TestHttpRequestHdr.java
2334 METHOD NAME : testGetRequestEncodings(String url) throws Exception
2335 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2336 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\proxy\TestHttpRequestHdr.java
2337 METHOD NAME : testPostRequestEncodings() throws Exception
2338 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2339 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\proxy\TestHttpRequestHdr.java
2340 METHOD NAME : testPostMultipartFormData() throws Exception
2341 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2342 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\proxy\TestHttpRequestHdr.java
2343 METHOD NAME : testParse1() throws Exception
2344 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2345 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\proxy\TestHttpRequestHdr.java
2346 METHOD NAME : testParse2() throws Exception
2347 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2348 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\proxy\TestHttpRequestHdr.java
2349 METHOD NAME : testPostMultipartFileUpload() throws Exception
2350 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2351 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\proxy\TestHttpRequestHdr.java
2352 METHOD NAME : getSamplerForRequest(String url,String request,String contentEncoding) throws Exception
2353 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2354 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\proxy\TestProxyControl.java
2355 METHOD NAME : testFilter1() throws Exception
2356 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2357 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\proxy\TestProxyControl.java
2358 METHOD NAME : testFilter2() throws Exception
2359 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2360 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\proxy\TestProxyControl.java
2361 METHOD NAME : testFilter3() throws Exception
2362 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2363 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\proxy\TestProxyControl.java
2364 METHOD NAME : testContentTypeNoFilters() throws Exception
2365 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2366 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\proxy\TestProxyControl.java
2367 METHOD NAME : testContentTypeInclude() throws Exception
2368 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2369 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\proxy\TestProxyControl.java
2370 METHOD NAME : testContentTypeExclude() throws Exception
2371 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2372 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\proxy\TestProxyControl.java
2373 METHOD NAME : testContentTypeIncludeAndExclude() throws Exception
2374 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2375 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\sampler\PackageTest.java
2376 METHOD NAME : testConfiguring() throws Exception
2377 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2378 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\sampler\PackageTest.java
2379 METHOD NAME : configure(HTTPSamplerBase sampler) throws Exception
2380 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2381 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\sampler\PostWriterTest.java
2382 METHOD NAME : setUp() throws Exception
2383 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2384 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\sampler\PostWriterTest.java
2385 METHOD NAME : tearDown() throws Exception
2386 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2387 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\sampler\PutWriterTest.java
2388 METHOD NAME : testSetHeaders() throws Exception
2389 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2390 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\sampler\TestHTTPSamplers.java
2391 METHOD NAME : testArgumentWithoutEquals() throws Exception
2392 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2393 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\sampler\TestHTTPSamplers.java
2394 METHOD NAME : testMakingUrl() throws Exception
2395 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2396 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\sampler\TestHTTPSamplers.java
2397 METHOD NAME : testRedirect() throws Exception
2398 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2399 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\sampler\TestHTTPSamplers.java
2400 METHOD NAME : testMakingUrl2() throws Exception
2401 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2402 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\sampler\TestHTTPSamplers.java
2403 METHOD NAME : testMakingUrl3() throws Exception
2404 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2405 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\sampler\TestHTTPSamplers.java
2406 METHOD NAME : testMakingUrl4() throws Exception
2407 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2408 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\sampler\TestHTTPSamplers.java
2409 METHOD NAME : testMakingUrl5() throws Exception
2410 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2411 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\sampler\TestHTTPSamplers.java
2412 METHOD NAME : testMakingUrl6() throws Exception
2413 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2414 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\sampler\TestHTTPSamplers.java
2415 METHOD NAME : testMakingUrl7() throws Exception
2416 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2417 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\sampler\TestHTTPSamplers.java
2418 METHOD NAME : testMakingUrl8() throws Exception
2419 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2420 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\sampler\TestHTTPSamplers.java
2421 METHOD NAME : testMakingUrl9() throws Exception
2422 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2423 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\sampler\TestHTTPSamplers.java
2424 METHOD NAME : testMakingUrl10() throws Exception
2425 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2426 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\sampler\TestHTTPSamplersAgainstHttpMirrorServer.java
2427 METHOD NAME : setUp() throws Exception
2428 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2429 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\sampler\TestHTTPSamplersAgainstHttpMirrorServer.java
2430 METHOD NAME : tearDown() throws Exception
2431 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2432 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\sampler\TestHTTPSamplersAgainstHttpMirrorServer.java
2433 METHOD NAME : itemised_testPostRequest_UrlEncoded() throws Exception
2434 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2435 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\sampler\TestHTTPSamplersAgainstHttpMirrorServer.java
2436 METHOD NAME : itemised_testPostRequest_UrlEncoded2() throws Exception
2437 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2438 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\sampler\TestHTTPSamplersAgainstHttpMirrorServer.java
2439 METHOD NAME : itemised_testPostRequest_UrlEncoded3() throws Exception
2440 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2441 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\sampler\TestHTTPSamplersAgainstHttpMirrorServer.java
2442 METHOD NAME : testPostRequest_FormMultipart_0() throws Exception
2443 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2444 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\sampler\TestHTTPSamplersAgainstHttpMirrorServer.java
2445 METHOD NAME : testPostRequest_FormMultipart2() throws Exception
2446 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2447 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\sampler\TestHTTPSamplersAgainstHttpMirrorServer.java
2448 METHOD NAME : testPostRequest_FormMultipart3() throws Exception
2449 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2450 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\sampler\TestHTTPSamplersAgainstHttpMirrorServer.java
2451 METHOD NAME : testPostRequest_FileUpload() throws Exception
2452 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2453 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\sampler\TestHTTPSamplersAgainstHttpMirrorServer.java
2454 METHOD NAME : testPostRequest_FileUpload2() throws Exception
2455 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2456 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\sampler\TestHTTPSamplersAgainstHttpMirrorServer.java
2457 METHOD NAME : testPostRequest_FileUpload3() throws Exception
2458 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2459 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\sampler\TestHTTPSamplersAgainstHttpMirrorServer.java
2460 METHOD NAME : testPostRequest_BodyFromParameterValues() throws Exception
2461 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2462 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\sampler\TestHTTPSamplersAgainstHttpMirrorServer.java
2463 METHOD NAME : testPostRequest_BodyFromParameterValues2() throws Exception
2464 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2465 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\sampler\TestHTTPSamplersAgainstHttpMirrorServer.java
2466 METHOD NAME : testPostRequest_BodyFromParameterValues3() throws Exception
2467 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2468 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\sampler\TestHTTPSamplersAgainstHttpMirrorServer.java
2469 METHOD NAME : testGetRequest() throws Exception
2470 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2471 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\sampler\TestHTTPSamplersAgainstHttpMirrorServer.java
2472 METHOD NAME : testGetRequest2() throws Exception
2473 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2474 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\sampler\TestHTTPSamplersAgainstHttpMirrorServer.java
2475 METHOD NAME : testGetRequest3() throws Exception
2476 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2477 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\sampler\TestHTTPSamplersAgainstHttpMirrorServer.java
2478 METHOD NAME : itemised_testGetRequest_Parameters() throws Exception
2479 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2480 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\sampler\TestHTTPSamplersAgainstHttpMirrorServer.java
2481 METHOD NAME : itemised_testGetRequest_Parameters2() throws Exception
2482 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2483 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\sampler\TestHTTPSamplersAgainstHttpMirrorServer.java
2484 METHOD NAME : itemised_testGetRequest_Parameters3() throws Exception
2485 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2486 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\sampler\TestHTTPSamplersAgainstHttpMirrorServer.java
2487 METHOD NAME : testPostRequest_UrlEncoded(int samplerType,String samplerDefaultEncoding,int test) throws Exception
2488 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2489 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\sampler\TestHTTPSamplersAgainstHttpMirrorServer.java
2490 METHOD NAME : testPostRequest_FormMultipart(int samplerType,String samplerDefaultEncoding) throws Exception
2491 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2492 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\sampler\TestHTTPSamplersAgainstHttpMirrorServer.java
2493 METHOD NAME : testPostRequest_FileUpload(int samplerType,String samplerDefaultEncoding) throws Exception
2494 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2495 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\sampler\TestHTTPSamplersAgainstHttpMirrorServer.java
2496 METHOD NAME : testPostRequest_BodyFromParameterValues(int samplerType,String samplerDefaultEncoding) throws Exception
2497 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2498 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\sampler\TestHTTPSamplersAgainstHttpMirrorServer.java
2499 METHOD NAME : testGetRequest(int samplerType) throws Exception
2500 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2501 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\sampler\TestHTTPSamplersAgainstHttpMirrorServer.java
2502 METHOD NAME : testGetRequest_Parameters(int samplerType,int test) throws Exception
2503 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2504 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\util\accesslog\TestTCLogParser.java
2505 METHOD NAME : testConstruct() throws Exception
2506 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2507 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\util\accesslog\TestTCLogParser.java
2508 METHOD NAME : testcleanURL() throws Exception
2509 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2510 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\util\accesslog\TestTCLogParser.java
2511 METHOD NAME : testcheckURL() throws Exception
2512 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2513 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\util\accesslog\TestTCLogParser.java
2514 METHOD NAME : testHEAD() throws Exception
2515 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2516 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\util\TestHTTPArgument.java
2517 METHOD NAME : testCloning() throws Exception
2518 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2519 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\util\TestHTTPArgument.java
2520 METHOD NAME : testConversion() throws Exception
2521 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2522 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\util\TestHTTPArgument.java
2523 METHOD NAME : testEncoding() throws Exception
2524 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2525 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\util\TestHTTPFileArg.java
2526 METHOD NAME : testConstructors() throws Exception
2527 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2528 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\util\TestHTTPFileArg.java
2529 METHOD NAME : testGettersSetters() throws Exception
2530 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2531 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\util\TestHTTPFileArg.java
2532 METHOD NAME : testToString() throws Exception
2533 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2534 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\util\TestHTTPFileArgs.java
2535 METHOD NAME : testConstructors() throws Exception
2536 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2537 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\util\TestHTTPFileArgs.java
2538 METHOD NAME : testAdding() throws Exception
2539 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2540 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\util\TestHTTPFileArgs.java
2541 METHOD NAME : testSetHTTPFileArgs() throws Exception
2542 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2543 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\util\TestHTTPFileArgs.java
2544 METHOD NAME : testRemoving() throws Exception
2545 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2546 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\util\TestHTTPFileArgs.java
2547 METHOD NAME : testToString() throws Exception
2548 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2549 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\util\TestHTTPUtils.java
2550 METHOD NAME : testgetEncoding() throws Exception
2551 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2552 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\util\TestHTTPUtils.java
2553 METHOD NAME : testMakeRelativeURL() throws Exception
2554 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2555 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\util\TestHTTPUtils.java
2556 METHOD NAME : testMakeRelativeURL2() throws Exception
2557 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2558 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\util\TestHTTPUtils.java
2559 METHOD NAME : testsanitizeUrl() throws Exception
2560 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2561 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\http\util\TestHTTPUtils.java
2562 METHOD NAME : testSanitizeUrl(String expected,String input) throws Exception
2563 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2564 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\ldap\config\gui\PackageTest.java
2565 METHOD NAME : testLDAPArgumentCreation() throws Exception
2566 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2567 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\tcp\sampler\BinaryTCPClientImplTest.java
2568 METHOD NAME : testHexStringToByteArray() throws Exception
2569 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2570 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\tcp\sampler\BinaryTCPClientImplTest.java
2571 METHOD NAME : testLoopBack() throws Exception
2572 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2573 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\tcp\sampler\BinaryTCPClientImplTest.java
2574 METHOD NAME : testRoundTrip() throws Exception
2575 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2576 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\tcp\sampler\LengthPrefixedBinaryTCPClientImplTest.java
2577 METHOD NAME : testError() throws Exception
2578 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2579 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\tcp\sampler\LengthPrefixedBinaryTCPClientImplTest.java
2580 METHOD NAME : testValid() throws Exception
2581 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2582 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\tcp\sampler\TCPClientDecoratorTest.java
2583 METHOD NAME : testIntToByteArray() throws Exception
2584 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2585 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\tcp\sampler\TCPClientDecoratorTest.java
2586 METHOD NAME : testByteArrayToInt() throws Exception
2587 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2588 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\protocol\tcp\sampler\TCPClientDecoratorTest.java
2589 METHOD NAME : testLoopBack() throws Exception
2590 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2591 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\resources\PackageTest.java
2592 METHOD NAME : getRAS(String res) throws Exception
2593 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2594 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\resources\PackageTest.java
2595 METHOD NAME : readRF(String res,List l) throws Exception
2596 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2597 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\resources\PackageTest.java
2598 METHOD NAME : check(String resname) throws Exception
2599 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2600 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\resources\PackageTest.java
2601 METHOD NAME : check(String resname,boolean checkUnexpected) throws Exception
2602 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2603 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\resources\PackageTest.java
2604 METHOD NAME : testLang() throws Exception
2605 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2606 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\resources\PackageTest.java
2607 METHOD NAME : checkI18n() throws Exception
2608 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2609 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\samplers\TestSampleResult.java
2610 METHOD NAME : testElapsedTrue() throws Exception
2611 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2612 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\samplers\TestSampleResult.java
2613 METHOD NAME : testElapsedFalse() throws Exception
2614 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2615 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\samplers\TestSampleResult.java
2616 METHOD NAME : testPauseFalse() throws Exception
2617 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2618 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\samplers\TestSampleResult.java
2619 METHOD NAME : testPauseTrue() throws Exception
2620 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2621 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\samplers\TestSampleResult.java
2622 METHOD NAME : testPause2True() throws Exception
2623 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2624 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\samplers\TestSampleResult.java
2625 METHOD NAME : testPause2False() throws Exception
2626 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2627 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\samplers\TestSampleResult.java
2628 METHOD NAME : testByteCount() throws Exception
2629 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2630 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\samplers\TestSampleResult.java
2631 METHOD NAME : testSubResultsTrue() throws Exception
2632 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2633 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\samplers\TestSampleResult.java
2634 METHOD NAME : testSubResultsTrueThread() throws Exception
2635 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2636 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\samplers\TestSampleResult.java
2637 METHOD NAME : testSubResultsFalse() throws Exception
2638 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2639 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\samplers\TestSampleResult.java
2640 METHOD NAME : testSubResultsFalseThread() throws Exception
2641 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2642 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\samplers\TestSampleResult.java
2643 METHOD NAME : testSubResultsTruePause() throws Exception
2644 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2645 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\samplers\TestSampleResult.java
2646 METHOD NAME : testSubResultsTruePauseThread() throws Exception
2647 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2648 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\samplers\TestSampleResult.java
2649 METHOD NAME : testSubResultsFalsePause() throws Exception
2650 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2651 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\samplers\TestSampleResult.java
2652 METHOD NAME : testSubResultsFalsePauseThread() throws Exception
2653 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2654 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\samplers\TestSampleResult.java
2655 METHOD NAME : xtestUntilFail() throws Exception
2656 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2657 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\samplers\TestSampleResult.java
2658 METHOD NAME : testSubResults(boolean nanoTime,long pause) throws Exception
2659 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2660 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\samplers\TestSampleResult.java
2661 METHOD NAME : testSubResults(boolean nanoTime,long nanoThreadSleep,long pause) throws Exception
2662 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2663 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\samplers\TestSampleResult.java
2664 METHOD NAME : testEncodingAndType() throws Exception
2665 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2666 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\samplers\TestSampleSaveConfiguration.java
2667 METHOD NAME : testClone() throws Exception
2668 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2669 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\samplers\TestSampleSaveConfiguration.java
2670 METHOD NAME : testEqualsAndHashCode() throws Exception
2671 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2672 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\samplers\TestSampleSaveConfiguration.java
2673 METHOD NAME : testFalse() throws Exception
2674 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2675 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\samplers\TestSampleSaveConfiguration.java
2676 METHOD NAME : testTrue() throws Exception
2677 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2678 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\samplers\TestSampleSaveConfiguration.java
2679 METHOD NAME : testFalseTrue() throws Exception
2680 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2681 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\samplers\TestSampleSaveConfiguration.java
2682 METHOD NAME : testFormatter() throws Exception
2683 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2684 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\save\TestCSVSaveService.java
2685 METHOD NAME : checkSplitString(String input,char delim,String[] expected) throws Exception
2686 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2687 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\save\TestCSVSaveService.java
2688 METHOD NAME : testSplitEmpty() throws Exception
2689 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2690 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\save\TestCSVSaveService.java
2691 METHOD NAME : testSplitUnquoted() throws Exception
2692 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2693 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\save\TestCSVSaveService.java
2694 METHOD NAME : testSplitQuoted() throws Exception
2695 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2696 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\save\TestCSVSaveService.java
2697 METHOD NAME : testSplitBadQuote() throws Exception
2698 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2699 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\save\TestCSVSaveService.java
2700 METHOD NAME : testSplitMultiLine() throws Exception
2701 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2702 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\save\TestCSVSaveService.java
2703 METHOD NAME : testBlankLine() throws Exception
2704 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2705 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\save\TestCSVSaveService.java
2706 METHOD NAME : testBlankLineQuoted() throws Exception
2707 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2708 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\save\TestCSVSaveService.java
2709 METHOD NAME : testEmptyFile() throws Exception
2710 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2711 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\save\TestCSVSaveService.java
2712 METHOD NAME : testShortFile() throws Exception
2713 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2714 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\save\TestSaveService.java
2715 METHOD NAME : testPropfile() throws Exception
2716 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2717 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\save\TestSaveService.java
2718 METHOD NAME : testVersions() throws Exception
2719 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2720 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\save\TestSaveService.java
2721 METHOD NAME : testLoadAndSave() throws Exception
2722 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2723 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\save\TestSaveService.java
2724 METHOD NAME : loadAndSave(File testFile,String fileName,boolean checkSize) throws Exception
2725 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2726 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\save\TestSaveService.java
2727 METHOD NAME : readFile(BufferedReader br) throws Exception
2728 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2729 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\save\TestSaveService.java
2730 METHOD NAME : testLoad() throws Exception
2731 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2732 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\services\TestFileServer.java
2733 METHOD NAME : testopen() throws Exception
2734 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2735 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\services\TestFileServer.java
2736 METHOD NAME : testRelative() throws Exception
2737 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2738 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\testbeans\gui\PackageTest.java
2739 CATCH CLAUSE : catch (IntrospectionException e) {
log.error("Can't get beanInfo for " + testBeanClass.getName(),e);
throw new Error(e.toString(),e);
}
2740 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
2741 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\testbeans\gui\PackageTest.java
2742 METHOD NAME : suite() throws Exception
2743 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2744 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\testbeans\gui\PackageTest.java
2745 CATCH CLAUSE : catch (IntrospectionException e) {
log.error("Can't get beanInfo for " + testBeanClass.getName(),e);
throw new Error(e.toString(),e);
}
2746 ANTI-PATTERN LGTE : logging and throwing Exception, choose one otherwise it results in multiple log messages (multiple-entries, duplication)
_________________________________________________________________________________
_________________________________________________________________________________
2747 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\testbeans\gui\TestComboStringEditor.java
2748 METHOD NAME : testSetGet(ComboStringEditor e,Object value) throws Exception
2749 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2750 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\testbeans\gui\TestComboStringEditor.java
2751 METHOD NAME : testSetGetAsText(ComboStringEditor e,String text) throws Exception
2752 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2753 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\testbeans\gui\TestComboStringEditor.java
2754 METHOD NAME : testSetGet() throws Exception
2755 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2756 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\testbeans\gui\TestComboStringEditor.java
2757 METHOD NAME : testSetGetAsText() throws Exception
2758 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2759 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\testbeans\gui\TestFieldStringEditor.java
2760 METHOD NAME : testSetGet(ComboStringEditor e,Object value) throws Exception
2761 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2762 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\testbeans\gui\TestFieldStringEditor.java
2763 METHOD NAME : testSetGetAsText(ComboStringEditor e,String text) throws Exception
2764 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2765 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\testbeans\gui\TestFieldStringEditor.java
2766 METHOD NAME : testSetGet() throws Exception
2767 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2768 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\testbeans\gui\TestFieldStringEditor.java
2769 METHOD NAME : testSetGetAsText() throws Exception
2770 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2771 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\testelement\PackageTest.java
2772 METHOD NAME : DISABLEDtestBug50799() throws Exception
2773 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2774 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\testelement\PackageTest.java
2775 METHOD NAME : testRecovery() throws Exception
2776 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2777 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\testelement\PackageTest.java
2778 METHOD NAME : testArguments() throws Exception
2779 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2780 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\testelement\property\PackageTest.java
2781 METHOD NAME : testStringProperty() throws Exception
2782 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2783 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\testelement\property\PackageTest.java
2784 METHOD NAME : testElementProperty() throws Exception
2785 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2786 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\testelement\property\PackageTest.java
2787 METHOD NAME : testBooleanEquality() throws Exception
2788 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2789 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\testelement\property\PackageTest.java
2790 METHOD NAME : testDoubleEquality() throws Exception
2791 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2792 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\testelement\property\PackageTest.java
2793 METHOD NAME : testFloatEquality() throws Exception
2794 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2795 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\testelement\property\PackageTest.java
2796 METHOD NAME : testIntegerEquality() throws Exception
2797 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2798 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\testelement\property\PackageTest.java
2799 METHOD NAME : testLongEquality() throws Exception
2800 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2801 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\testelement\property\PackageTest.java
2802 METHOD NAME : testMapEquality() throws Exception
2803 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2804 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\testelement\property\PackageTest.java
2805 METHOD NAME : testNullEquality() throws Exception
2806 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2807 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\testelement\property\PackageTest.java
2808 METHOD NAME : testStringEquality() throws Exception
2809 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2810 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\testelement\property\PackageTest.java
2811 METHOD NAME : testAddingProperties() throws Exception
2812 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2813 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\threads\TestTestCompiler.java
2814 METHOD NAME : testConfigGathering() throws Exception
2815 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2816 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\timers\PackageTest.java
2817 METHOD NAME : testTimer1() throws Exception
2818 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2819 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\timers\PackageTest.java
2820 METHOD NAME : testTimer2() throws Exception
2821 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2822 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\timers\PackageTest.java
2823 METHOD NAME : testTimer3() throws Exception
2824 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2825 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\timers\PackageTest.java
2826 METHOD NAME : testTimerBSH() throws Exception
2827 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2828 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\util\PackageTest.java
2829 METHOD NAME : testServer() throws Exception
2830 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2831 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\util\PackageTest.java
2832 METHOD NAME : testSub1() throws Exception
2833 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2834 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\util\PackageTest.java
2835 METHOD NAME : testSub2() throws Exception
2836 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2837 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\util\PackageTest.java
2838 METHOD NAME : testSub3() throws Exception
2839 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2840 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\util\PackageTest.java
2841 METHOD NAME : testSub4() throws Exception
2842 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2843 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\util\TestJMeterUtils.java
2844 METHOD NAME : test1() throws Exception
2845 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2846 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jmeter\visualizers\GenerateTreeGui.java
2847 CATCH CLAUSE : catch (Exception e) {
addSimpleController(treeModel,myTarget,jmi.getName() + " " + e.getMessage());
}
2848 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
2849 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jorphan\collections\PackageTest.java
2850 METHOD NAME : testAdd1() throws Exception
2851 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2852 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jorphan\collections\PackageTest.java
2853 METHOD NAME : testEqualsAndHashCode1() throws Exception
2854 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2855 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jorphan\collections\PackageTest.java
2856 METHOD NAME : testAddObjectAndTree() throws Exception
2857 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2858 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jorphan\collections\PackageTest.java
2859 METHOD NAME : testEqualsAndHashCode2() throws Exception
2860 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2861 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jorphan\collections\PackageTest.java
2862 METHOD NAME : testSearch() throws Exception
2863 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2864 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jorphan\exec\TestKeyToolUtils.java
2865 METHOD NAME : testCheckKeytool() throws Exception
2866 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2867 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jorphan\math\TestStatCalculator.java
2868 METHOD NAME : testPercentagePoint() throws Exception
2869 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2870 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jorphan\reflect\TestFunctor.java
2871 METHOD NAME : testName() throws Exception
2872 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2873 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jorphan\reflect\TestFunctor.java
2874 METHOD NAME : testNameTypes() throws Exception
2875 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2876 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jorphan\reflect\TestFunctor.java
2877 METHOD NAME : testObjectName() throws Exception
2878 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2879 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jorphan\reflect\TestFunctor.java
2880 METHOD NAME : testClass() throws Exception
2881 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2882 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jorphan\reflect\TestFunctor.java
2883 METHOD NAME : testBadParameters() throws Exception
2884 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2885 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jorphan\reflect\TestFunctor.java
2886 METHOD NAME : testIllegalState() throws Exception
2887 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2888 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jorphan\test\AllTests.java
2889 CATCH CLAUSE : catch (Exception ex) {
System.out.println("ERROR: (see logfile) could not add test for class " + name + " "+ ExceptionUtils.getStackTrace(ex));
log.error("error adding test :",ex);
}
2890 ANTI-PATTERN CTGE : catching generic Exception, catch the specific exception that can be thrown
_________________________________________________________________________________
_________________________________________________________________________________
2891 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jorphan\TestFunctorUsers.java
2892 METHOD NAME : testSummaryReport() throws Exception
2893 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2894 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jorphan\TestFunctorUsers.java
2895 METHOD NAME : testTableVisualizer() throws Exception
2896 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2897 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jorphan\TestFunctorUsers.java
2898 METHOD NAME : testStatGraphVisualizer() throws Exception
2899 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2900 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jorphan\TestFunctorUsers.java
2901 METHOD NAME : testStatVisualizer() throws Exception
2902 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2903 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jorphan\TestFunctorUsers.java
2904 METHOD NAME : testArgumentsPanel() throws Exception
2905 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2906 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jorphan\TestFunctorUsers.java
2907 METHOD NAME : testHTTPArgumentsPanel() throws Exception
2908 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2909 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jorphan\TestFunctorUsers.java
2910 METHOD NAME : testLDAPArgumentsPanel() throws Exception
2911 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2912 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jorphan\TestXMLBuffer.java
2913 METHOD NAME : test1() throws Exception
2914 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2915 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jorphan\TestXMLBuffer.java
2916 METHOD NAME : test2() throws Exception
2917 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2918 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jorphan\TestXMLBuffer.java
2919 METHOD NAME : test3() throws Exception
2920 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2921 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jorphan\TestXMLBuffer.java
2922 METHOD NAME : test4() throws Exception
2923 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2924 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jorphan\util\TestJorphanUtils.java
2925 METHOD NAME : testTruncate() throws Exception
2926 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2927 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jorphan\util\TestJorphanUtils.java
2928 METHOD NAME : testSplit5() throws Exception
2929 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
_________________________________________________________________________________
2930 FILE NAME : apache-jmeter-2.11\test\src\org\apache\jorphan\util\TestJorphanUtils.java
2931 METHOD NAME : testbaToByte() throws Exception
2932 ANTI-PATTERN THGE : Throws generic Exception, defeats the purpose of using a checked exception, declare the specific checked exceptions that your method can throw
_________________________________________________________________________________
2933 EXPERIMENTAL RESULTS
2934 NUMBER OF JAVA FILES IN THE APPLICATION : 1053
2935 NUMBER OF CATCH CLAUSES IN THE APPLICATION :1170
2936 NUMBER OF METHOD DECLARATIONS IN THE APPLICATION :10386
2937 NUMBER OF PSTE ANTIPATTERN : 0
2938 NUMBER OF LGTE ANTIPATTERN : 86
2939 NUMBER OF CTGE ANTIPATTERN : 219
2940 NUMBER OF RNHR ANTIPATTERN : 33
2941 NUMBER OF PSRN ANTIPATTERN : 0
2942 NUMBER OF MLLM ANTIPATTERN : 10
2943 NUMBER OF LGRN ANTIPATTERN : 7
2944 NUMBER OF THGE ANTIPATTERN : 608
2945 NUMBER OF WEPG ANTIPATTERN : 2
2946 NUMBER OF RRGC ANTIPATTERN : 10