hudson.plugins.analysis.util
Class ContextHashCode
java.lang.Object
hudson.plugins.analysis.util.ContextHashCode
public class ContextHashCode
- extends Object
Creates a hash code from the source code of the warning line and the
surrounding context.
- Author:
- Ulli Hafner
|
Method Summary |
int |
create(String fileName,
int line,
String encoding)
Creates a hash code from the source code of the warning line and the
surrounding context. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContextHashCode
public ContextHashCode()
create
public int create(String fileName,
int line,
String encoding)
throws IOException
- Creates a hash code from the source code of the warning line and the
surrounding context.
- Parameters:
fileName - the absolute path of the file to readline - the line of the warningencoding - the encoding of the file, if null or empty then
the default encoding of the platform is used
- Returns:
- a has code of the source code
- Throws:
IOException - if the contents of the file could not be read
Copyright © 2004-2012 Hudson. All Rights Reserved.