File Summary: IRCParser.java |
|
| current inspection = 2009-09-03 21:56:13 (id #1) | base = 2009-09-03 21:56:13 (id #1) |
Hot Spots -- Methods with deltas or higher-probability messages listed first |
All_Methods |
| Method | High Prob. | Medium Prob. | Low Prob. | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| base | deltas | now | base | deltas | now | base | deltas | now | |||||
| parseChanModes | 3 | 3 | 11 | 11 | 20 | 20 | |||||||
| parsePrefixModes | 1 | 1 | 3 | 3 | 9 | 9 | |||||||
| getParam | 1 | 1 | 1 | 1 | |||||||||
| getClientInfo | 1 | 1 | |||||||||||
| getClientInfoOrFake | 1 | 1 | |||||||||||
| doSendString | 2 | 2 | 1 | 1 | |||||||||
| getBoolChanModes | 1 | 1 | 1 | 1 | |||||||||
| getOtherModeString | 1 | 1 | 1 | 1 | |||||||||
| processLine | 1 | 1 | 1 | 1 | |||||||||
| callConnectError | 1 | 1 | |||||||||||
| callDataIn | 1 | 1 | |||||||||||
| callDataOut | 1 | 1 | |||||||||||
| callDebugInfo | 1 | 1 | |||||||||||
| callErrorInfo | 1 | 1 | |||||||||||
| callPingFailed | 1 | 1 | |||||||||||
| callPingSent | 1 | 1 | |||||||||||
| callPingSuccess | 1 | 1 | |||||||||||
| callPost005 | 1 | 1 | |||||||||||
| callServerError | 1 | 1 | |||||||||||
| callSocketClosed | 1 | 1 | |||||||||||
| getMaxListModes | 4 | 4 | |||||||||||
| tokeniseLine | 3 | 3 | |||||||||||
| disconnect | 1 | 1 | |||||||||||
| getMaxLength | 1 | 1 | |||||||||||
| parseChanPrefix | 1 | 1 | |||||||||||
| parseUserModes | 1 | 1 | |||||||||||
| sendCTCP | 1 | 1 | |||||||||||
| sendCTCPReply | 1 | 1 | |||||||||||
| Total | 7 | 7 | 30 | 30 | 47 | 47 | |||||||
|
|||||||||||||
Method: bool callConnectError(ParserError) |
top |
| Category | High Prob. | Medium Prob. | Low Prob. | ||||||
|---|---|---|---|---|---|---|---|---|---|
| base | deltas | now | base | deltas | now | base | deltas | now | |
| null dereference |   | 1 | 1 |   | |||||
| Total | 0 | 1 | 1 | 0 | |||||
Method: bool callDataIn(String) |
top |
| Category | High Prob. | Medium Prob. | Low Prob. | ||||||
|---|---|---|---|---|---|---|---|---|---|
| base | deltas | now | base | deltas | now | base | deltas | now | |
| null dereference |   | 1 | 1 |   | |||||
| Total | 0 | 1 | 1 | 0 | |||||
Method: bool callDataOut(String, bool) |
top |
| Category | High Prob. | Medium Prob. | Low Prob. | ||||||
|---|---|---|---|---|---|---|---|---|---|
| base | deltas | now | base | deltas | now | base | deltas | now | |
| null dereference |   | 1 | 1 |   | |||||
| Total | 0 | 1 | 1 | 0 | |||||
Method: bool callDebugInfo(int, String) |
top |
| Category | High Prob. | Medium Prob. | Low Prob. | ||||||
|---|---|---|---|---|---|---|---|---|---|
| base | deltas | now | base | deltas | now | base | deltas | now | |
| null dereference |   | 1 | 1 |   | |||||
| Total | 0 | 1 | 1 | 0 | |||||
Method: bool callErrorInfo(ParserError) |
top |
| Category | High Prob. | Medium Prob. | Low Prob. | ||||||
|---|---|---|---|---|---|---|---|---|---|
| base | deltas | now | base | deltas | now | base | deltas | now | |
| null dereference |   | 1 | 1 |   | |||||
| Total | 0 | 1 | 1 | 0 | |||||
Method: bool callPingFailed() |
top |
| Category | High Prob. | Medium Prob. | Low Prob. | ||||||
|---|---|---|---|---|---|---|---|---|---|
| base | deltas | now | base | deltas | now | base | deltas | now | |
| null dereference |   | 1 | 1 |   | |||||
| Total | 0 | 1 | 1 | 0 | |||||
Method: bool callPingSent() |
top |
| Category | High Prob. | Medium Prob. | Low Prob. | ||||||
|---|---|---|---|---|---|---|---|---|---|
| base | deltas | now | base | deltas | now | base | deltas | now | |
| null dereference |   | 1 | 1 |   | |||||
| Total | 0 | 1 | 1 | 0 | |||||
Method: bool callPingSuccess() |
top |
| Category | High Prob. | Medium Prob. | Low Prob. | ||||||
|---|---|---|---|---|---|---|---|---|---|
| base | deltas | now | base | deltas | now | base | deltas | now | |
| null dereference |   | 1 | 1 |   | |||||
| Total | 0 | 1 | 1 | 0 | |||||
Method: bool callPost005() |
top |
| Category | High Prob. | Medium Prob. | Low Prob. | ||||||
|---|---|---|---|---|---|---|---|---|---|
| base | deltas | now | base | deltas | now | base | deltas | now | |
| null dereference |   | 1 | 1 |   | |||||
| Total | 0 | 1 | 1 | 0 | |||||
Method: bool callServerError(String) |
top |
| Category | High Prob. | Medium Prob. | Low Prob. | ||||||
|---|---|---|---|---|---|---|---|---|---|
| base | deltas | now | base | deltas | now | base | deltas | now | |
| null dereference |   | 1 | 1 |   | |||||
| Total | 0 | 1 | 1 | 0 | |||||
Method: bool callSocketClosed() |
top |
| Category | High Prob. | Medium Prob. | Low Prob. | ||||||
|---|---|---|---|---|---|---|---|---|---|
| base | deltas | now | base | deltas | now | base | deltas | now | |
| null dereference |   | 1 | 1 |   | |||||
| Total | 0 | 1 | 1 | 0 | |||||
Method: void disconnect(String) |
top |
| Category | High Prob. | Medium Prob. | Low Prob. | ||||||
|---|---|---|---|---|---|---|---|---|---|
| base | deltas | now | base | deltas | now | base | deltas | now | |
| unused assignment |   |   | 1 | 1 | |||||
| Total | 0 | 0 | 1 | 1 | |||||
Method: void doSendString(String, bool) |
top |
| Category | High Prob. | Medium Prob. | Low Prob. | ||||||
|---|---|---|---|---|---|---|---|---|---|
| base | deltas | now | base | deltas | now | base | deltas | now | |
| null dereference |   | 2 | 2 |   | |||||
| unused assignment in callee |   |   | 1 | 1 | |||||
| Total | 0 | 2 | 2 | 1 | 1 | ||||
Method: String getBoolChanModes() |
top |
| Category | High Prob. | Medium Prob. | Low Prob. | ||||||
|---|---|---|---|---|---|---|---|---|---|
| base | deltas | now | base | deltas | now | base | deltas | now | |
| array index out of bounds |   | 1 | 1 |   | |||||
| overflow |   |   | 1 | 1 | |||||
| Total | 0 | 1 | 1 | 1 | 1 | ||||
Method: ClientInfo getClientInfo(String) |
top |
| Category | High Prob. | Medium Prob. | Low Prob. | ||||||
|---|---|---|---|---|---|---|---|---|---|
| base | deltas | now | base | deltas | now | base | deltas | now | |
| precondition failure | 1 | 1 |   |   | |||||
| Total | 1 | 1 | 0 | 0 | |||||
Method: ClientInfo getClientInfoOrFake(String) |
top |
| Category | High Prob. | Medium Prob. | Low Prob. | ||||||
|---|---|---|---|---|---|---|---|---|---|
| base | deltas | now | base | deltas | now | base | deltas | now | |
| precondition failure | 1 | 1 |   |   | |||||
| Total | 1 | 1 | 0 | 0 | |||||
Method: int getMaxLength(int) |
top |
| Category | High Prob. | Medium Prob. | Low Prob. | ||||||
|---|---|---|---|---|---|---|---|---|---|
| base | deltas | now | base | deltas | now | base | deltas | now | |
| unused assignment |   |   | 1 | 1 | |||||
| Total | 0 | 0 | 1 | 1 | |||||
Method: int getMaxListModes(char) |
top |
| Category | High Prob. | Medium Prob. | Low Prob. | ||||||
|---|---|---|---|---|---|---|---|---|---|
| base | deltas | now | base | deltas | now | base | deltas | now | |
| use of default init |   |   | 2 | 2 | |||||
| dead code |   |   | 1 | 1 | |||||
| test always goes same way |   |   | 1 | 1 | |||||
| Total | 0 | 0 | 4 | 4 | |||||
Method: String getOtherModeString(byte) |
top |
| Category | High Prob. | Medium Prob. | Low Prob. | ||||||
|---|---|---|---|---|---|---|---|---|---|
| base | deltas | now | base | deltas | now | base | deltas | now | |
| array index out of bounds |   | 1 | 1 |   | |||||
| overflow |   |   | 1 | 1 | |||||
| Total | 0 | 1 | 1 | 1 | 1 | ||||
Method: String getParam(String) |
top |
| Category | High Prob. | Medium Prob. | Low Prob. | ||||||
|---|---|---|---|---|---|---|---|---|---|
| base | deltas | now | base | deltas | now | base | deltas | now | |
| use of default init |   |   | 1 | 1 | |||||
| array index out of bounds | 1 | 1 |   |   | |||||
| Total | 1 | 1 | 0 | 1 | 1 | ||||
| Method fails for all possible inputs. | |||||||||
Method: void parseChanModes() |
top |
| Category | High Prob. | Medium Prob. | Low Prob. | ||||||
|---|---|---|---|---|---|---|---|---|---|
| base | deltas | now | base | deltas | now | base | deltas | now | |
| use of default init |   |   | 19 | 19 | |||||
| null dereference |   | 8 | 8 |   | |||||
| array index out of bounds | 3 | 3 | 3 | 3 |   | ||||
| test always goes same way |   |   | 1 | 1 | |||||
| Total | 3 | 3 | 11 | 11 | 20 | 20 | |||
| Method fails for all possible inputs. | |||||||||
Method: void parseChanPrefix() |
top |
| Category | High Prob. | Medium Prob. | Low Prob. | ||||||
|---|---|---|---|---|---|---|---|---|---|
| base | deltas | now | base | deltas | now | base | deltas | now | |
| unused assignment |   |   | 1 | 1 | |||||
| Total | 0 | 0 | 1 | 1 | |||||
Method: void parsePrefixModes() |
top |
| Category | High Prob. | Medium Prob. | Low Prob. | ||||||
|---|---|---|---|---|---|---|---|---|---|
| base | deltas | now | base | deltas | now | base | deltas | now | |
| use of default init |   |   | 6 | 6 | |||||
| null dereference |   | 3 | 3 |   | |||||
| array index out of bounds | 1 | 1 |   |   | |||||
| unused assignment |   |   | 1 | 1 | |||||
| dead code |   |   | 1 | 1 | |||||
| test always goes same way |   |   | 1 | 1 | |||||
| Total | 1 | 1 | 3 | 3 | 9 | 9 | |||
Method: void parseUserModes() |
top |
| Category | High Prob. | Medium Prob. | Low Prob. | ||||||
|---|---|---|---|---|---|---|---|---|---|
| base | deltas | now | base | deltas | now | base | deltas | now | |
| unused assignment |   |   | 1 | 1 | |||||
| Total | 0 | 0 | 1 | 1 | |||||
Method: void processLine(String) |
top |
| Category | High Prob. | Medium Prob. | Low Prob. | ||||||
|---|---|---|---|---|---|---|---|---|---|
| base | deltas | now | base | deltas | now | base | deltas | now | |
| null dereference |   | 1 | 1 |   | |||||
| unused assignment in callee |   |   | 1 | 1 | |||||
| Total | 0 | 1 | 1 | 1 | 1 | ||||
Method: void sendCTCP(String, String, String) |
top |
| Category | High Prob. | Medium Prob. | Low Prob. | ||||||
|---|---|---|---|---|---|---|---|---|---|
| base | deltas | now | base | deltas | now | base | deltas | now | |
| unused assignment |   |   | 1 | 1 | |||||
| Total | 0 | 0 | 1 | 1 | |||||
Method: void sendCTCPReply(String, String, String) |
top |
| Category | High Prob. | Medium Prob. | Low Prob. | ||||||
|---|---|---|---|---|---|---|---|---|---|
| base | deltas | now | base | deltas | now | base | deltas | now | |
| unused assignment |   |   | 1 | 1 | |||||
| Total | 0 | 0 | 1 | 1 | |||||
Method: String[] tokeniseLine(String) |
top |
| Category | High Prob. | Medium Prob. | Low Prob. | ||||||
|---|---|---|---|---|---|---|---|---|---|
| base | deltas | now | base | deltas | now | base | deltas | now | |
| use of default init |   |   | 3 | 3 | |||||
| Total | 0 | 0 | 3 | 3 | |||||
All Methods |
top |
| IRCParser.java | 2009-Jun-25 01:54:24 |
| IRCParser.class | 2009-Sep-02 17:04:12 |
| IRCParser$1.class | 2009-Sep-02 17:04:12 |