nus-yam/ex-repair huggingface dataset:
Program: 82535
Project: 82535
Buggy source:
/** 
 * Creates a JMultiExpression from a set of JExpressionStatements, optionally terminated by a JReturnStatement. If the method doesn't match this pattern, it returns <code>null</code>. If a method has a non-void return statement and can be represented as a multi-expression, the output of the multi-expression will be the return expression of the method. If the method is void, the output of the multi-expression should be considered undefined.
 */
private JMultiExpression createMultiExpressionFromBody(JMethodBody body,boolean ignoringReturnValue){
  JMultiExpression multi=new JMultiExpression(body.getSourceInfo());
  CloneCalleeExpressionVisitor cloner=new CloneCalleeExpressionVisitor();
  for (  JStatement stmt : body.getStatements()) {
    if (stmt instanceof JExpressionStatement) {
      JExpressionStatement exprStmt=(JExpressionStatement)stmt;
      JExpression expr=exprStmt.getExpr();
      JExpression clone=cloner.cloneExpression(expr);
      multi.exprs.add(clone);
    }
 else     if (stmt instanceof JReturnStatement) {
      JReturnStatement returnStatement=(JReturnStatement)stmt;
      JExpression expr=returnStatement.getExpr();
      if (expr != null) {
        if (!ignoringReturnValue || expr.hasSideEffects()) {
          JExpression clone=cloner.cloneExpression(expr);
          multi.exprs.add(clone);
        }
      }
      break;
    }
 else {
      return null;
    }
  }
  return multi;
}

Fixed version (ground truth):
/** 
 * Creates a JMultiExpression from a set of JExpressionStatements, optionally terminated by a JReturnStatement. If the method doesn't match this pattern, it returns <code>null</code>. If a method has a non-void return statement and can be represented as a multi-expression, the output of the multi-expression will be the return expression of the method. If the method is void, the output of the multi-expression should be considered undefined.
 */
private JMultiExpression createMultiExpressionFromBody(JMethodBody body,boolean ignoringReturnValue){
  JMultiExpression multi=new JMultiExpression(body.getSourceInfo());
  CloneCalleeExpressionVisitor cloner=new CloneCalleeExpressionVisitor();
  for (  JStatement stmt : body.getStatements()) {
    if (stmt instanceof JExpressionStatement) {
      JExpressionStatement exprStmt=(JExpressionStatement)stmt;
      JExpression expr=exprStmt.getExpr();
      JExpression clone=cloner.cloneExpression(expr);
      multi.exprs.add(clone);
    }
 else     if (stmt instanceof JReturnStatement) {
      JReturnStatement returnStatement=(JReturnStatement)stmt;
      JExpression expr=returnStatement.getExpr();
      if (expr != null) {
        if (!ignoringReturnValue || expr.hasSideEffects()) {
          JExpression clone=cloner.cloneExpression(expr);
          clone=maybeCast(clone,body.getMethod().getType());
          multi.exprs.add(clone);
        }
      }
      break;
    }
 else {
      return null;
    }
  }
  return multi;
}
Program: 82536
Project: 82536
Buggy source:
public void testImplicitCastToLong(){
  long l=10;
  l+=5;
  assertEquals(15,l);
  assertTrue(15 == l);
}

Fixed version (ground truth):
public void testImplicitCastToLong(){
  long l=10;
  l+=5;
  assertEquals(15,l);
  assertTrue(15 == l);
  IntegerWrapper wrap=new IntegerWrapper(20);
  assertEquals(400L,wrap.longValue() * wrap.longValue());
}
Program: 82537
Project: 82537
Buggy source:
public void setText(String text){
  DOM.setElementProperty(getElement(),"String_Node_Str",text != null ? text : "String_Node_Str");
}

Fixed version (ground truth):
/** 
 * Sets this object's text.  Note that some browsers will manipulate the text before adding it to the widget.  For example, most browsers will strip all <code>\r</code> from the text, except IE which will add a <code>\r</code> before each <code>\n</code>.  Use   {@link #getText()} to get the textdirectly from the widget.
 * @param text the object's new text
 */
public void setText(String text){
  DOM.setElementProperty(getElement(),"String_Node_Str",text != null ? text : "String_Node_Str");
}
Program: 82538
Project: 82538
Buggy source:
@Override public native int getTextAreaCursorPos(Element elem);

Fixed version (ground truth):
/** 
 * The text reported in the text range does not include newline characters at the end of the selection. So, we need to create 2 ranges and subtract a character from one until the lengths are different. At that point, we know exactly how many \r\n were truncated from the selection.
 */
@Override public native int getTextAreaCursorPos(Element elem);
Program: 82539
Project: 82539
Buggy source:
@Override public native void setSelectionRange(Element elem,int pos,int length);

Fixed version (ground truth):
/** 
 * Moving the start 1 character will move across a \r\n, but \r\n counts as two characters, so we need to offset the position accordingly.
 */
@Override public native void setSelectionRange(Element elem,int pos,int length);
Program: 82542
Project: 82542
Buggy source:
/** 
 * Performs rewriting transformations on a class.
 * @param ccl the ClassLoader requesting the rewrite
 * @param className the name of the class
 * @param classBytes the bytes of the class
 * @param anonymousClassMap a map between the anonymous class names of javacompiler used to compile code and jdt. Emma-specific.
 */
public byte[] rewrite(ClassLoader ccl,String className,byte[] classBytes,Map<String,String> anonymousClassMap){
  String desc=toDescriptor(className);
  assert(!jsoIntfDescs.contains(desc));
  ClassWriter writer=new ClassWriter(0);
  ClassVisitor v=writer;
  v=new RewriteSingleJsoImplDispatches(v,ccl,singleJsoImplTypes,mangledNamesToImplementations);
  v=new RewriteRefsToJsoClasses(v,jsoIntfDescs,mapper);
  if (jsoImplDescs.contains(desc)) {
    v=WriteJsoImpl.create(v,desc,jsoIntfDescs,mapper,mangledNamesToImplementations);
  }
  v=new RewriteJsniMethods(v,anonymousClassMap);
  if (Double.parseDouble(System.getProperty("String_Node_Str")) < Opcodes.V1_6) {
    v=new ForceClassVersion15(v);
  }
  new ClassReader(classBytes).accept(v,0);
  return writer.toByteArray();
}

Fixed version (ground truth):
/** 
 * Performs rewriting transformations on a class.
 * @param typeOracle a typeOracle modeling the user classes
 * @param className the name of the class
 * @param classBytes the bytes of the class
 * @param anonymousClassMap a map between the anonymous class names of javacompiler used to compile code and jdt. Emma-specific.
 */
public byte[] rewrite(TypeOracle typeOracle,String className,byte[] classBytes,Map<String,String> anonymousClassMap){
  String desc=toDescriptor(className);
  assert(!jsoIntfDescs.contains(desc));
  ClassWriter writer=new ClassWriter(0);
  ClassVisitor v=writer;
  v=new RewriteSingleJsoImplDispatches(v,typeOracle,singleJsoImplTypes,mangledNamesToImplementations);
  v=new RewriteRefsToJsoClasses(v,jsoIntfDescs,mapper);
  if (jsoImplDescs.contains(desc)) {
    v=WriteJsoImpl.create(v,desc,jsoIntfDescs,mapper,mangledNamesToImplementations);
  }
  v=new RewriteJsniMethods(v,anonymousClassMap);
  if (Double.parseDouble(System.getProperty("String_Node_Str")) < Opcodes.V1_6) {
    v=new ForceClassVersion15(v);
  }
  new ClassReader(classBytes).accept(v,0);
  return writer.toByteArray();
}
Program: 82543
Project: 82543
Buggy source:
public RewriteSingleJsoImplDispatches(ClassVisitor v,ClassLoader ccl,Set<String> singleJsoImplTypes,SortedMap<String,Method> mangledNamesToImplementations){
  super(v);
  this.ccl=ccl;
  this.singleJsoImplTypes=Collections.unmodifiableSet(singleJsoImplTypes);
  this.mangledNamesToImplementations=Collections.unmodifiableSortedMap(mangledNamesToImplementations);
}

Fixed version (ground truth):
public RewriteSingleJsoImplDispatches(ClassVisitor v,TypeOracle typeOracle,Set<String> singleJsoImplTypes,SortedMap<String,Method> mangledNamesToImplementations){
  super(v);
  this.typeOracle=typeOracle;
  this.singleJsoImplTypes=Collections.unmodifiableSet(singleJsoImplTypes);
  this.mangledNamesToImplementations=Collections.unmodifiableSortedMap(mangledNamesToImplementations);
}
Program: 82544
Project: 82544
Buggy source:
private Set<String> computeAllInterfaces(String... interfaces){
}

Fixed version (ground truth):
private Set<String> computeAllInterfaces(String[] interfaces){
  Set<String> toReturn=new HashSet<String>();
  for (  String intfName : interfaces) {
    toReturn.addAll(computeAllInterfaces(intfName));
  }
  return toReturn;
}
Program: 82545
Project: 82545
Buggy source:
static int compute(String str){
  int n=str.length();
  int inc=(n < 64) ? 1 : (n / 32);
  int hashCode=0;
  for (int i=0; i < n; i+=inc) {
    hashCode<<=1;
    hashCode+=str.charAt(i);
  }
  hashCode|=0;
  return hashCode;
}

Fixed version (ground truth):
static int compute(String str){
  int hashCode=0;
  int n=str.length();
  int nBatch=n - 4;
  int i=0;
  while (i < nBatch) {
    hashCode=(str.charAt(i + 3) + 31 * (str.charAt(i + 2) + 31 * (str.charAt(i + 1) + 31 * (str.charAt(i) + 31 * hashCode)))) | 0;
    i+=4;
  }
  while (i < n) {
    hashCode=hashCode * 31 + str.charAt(i++);
  }
  return hashCode | 0;
}
Program: 82546
Project: 82546
Buggy source:
/** 
 * Tests hashing with strings. The specific strings used in this test used to trigger failures because we use a JavaScript object as a hash map to cache the computed hash codes. This conflicts with built-in properties defined on objects -- see issue #631.
 */
public void testHashCode(){
  String[] testStrings={"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"};
  int[] savedHash=new int[testStrings.length];
  for (int i=0; i < testStrings.length; ++i) {
    savedHash[i]=testStrings[i].hashCode();
    String str=Integer.toString(savedHash[i]);
    for (int j=0; j < str.length(); ++j) {
      char ch=str.charAt(j);
      assertTrue("String_Node_Str" + ch + "String_Node_Str"+ Integer.toHexString(ch)+ "String_Node_Str",ch == '-' || ch == ' ' || Character.isDigit(ch));
    }
  }
  for (int i=0; i < testStrings.length; ++i) {
    assertEquals(savedHash[i],testStrings[i].hashCode());
  }
}

Fixed version (ground truth):
/** 
 * Tests hashing with strings. The specific strings used in this test used to trigger failures because we use a JavaScript object as a hash map to cache the computed hash codes. This conflicts with built-in properties defined on objects -- see issue #631.
 */
public void testHashCode(){
  String[] testStrings={"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"};
  int[] javaHashes={112903375,-274141738,-1776922004,-1781441930,3125404,231605032,-1588406278,2139739112,Integer.MIN_VALUE,3841,120,0};
  for (int i=0; i < testStrings.length; ++i) {
    String testString=testStrings[i];
    int expectedHash=javaHashes[i];
    assertEquals("String_Node_Str" + testString,expectedHash,testString.hashCode());
    String str=Integer.toString(expectedHash);
    for (int j=0; j < str.length(); ++j) {
      char ch=str.charAt(j);
      assertTrue("String_Node_Str" + ch + "String_Node_Str"+ Integer.toHexString(ch)+ "String_Node_Str",ch == '-' || ch == ' ' || Character.isDigit(ch));
    }
    assertEquals(expectedHash,testStrings[i].hashCode());
  }
}
Program: 82547
Project: 82547
Buggy source:
/** 
 * Load the Google Gears BHO if possible.
 * @return true if Gears was successfully loaded and initialized
 */
public boolean startGears(){
  try {
    GUID appClsid=getClassID("String_Node_Str");
    if (appClsid == null) {
      return false;
    }
  }
 catch (  SWTException e) {
    return false;
  }
  int[] address=new int[1];
  if (COM.CoCreateInstance(appClsid,0,COM.CLSCTX_INPROC_SERVER,COM.IIDIUnknown,address) != COM.S_OK) {
    return false;
  }
  IUnknown obj=new IUnknown(address[0]);
  int[] ppvObject=new int[1];
  if (obj.QueryInterface(COM.IIDIObjectWithSite,ppvObject) == COM.S_OK) {
    IObjectWithSite objectWithSite=new IObjectWithSite(ppvObject[0]);
    objectWithSite.SetSite(objIUnknown);
    objectWithSite.Release();
    return true;
  }
  return false;
}

Fixed version (ground truth):
/** 
 * Load the Google Gears BHO if possible.
 * @return true if Gears was successfully loaded and initialized
 */
public boolean startGears(){
  GUID appClsid=null;
  try {
    appClsid=getClassID("String_Node_Str");
    if (appClsid == null) {
      return false;
    }
  }
 catch (  SWTException e) {
    return false;
  }
  int[] address=new int[1];
  if (COM.CoCreateInstance(appClsid,0,COM.CLSCTX_INPROC_SERVER,COM.IIDIUnknown,address) != COM.S_OK) {
    return false;
  }
  IUnknown obj=new IUnknown(address[0]);
  int[] ppvObject=new int[1];
  if (obj.QueryInterface(COM.IIDIObjectWithSite,ppvObject) == COM.S_OK) {
    IObjectWithSite objectWithSite=new IObjectWithSite(ppvObject[0]);
    objectWithSite.SetSite(objIUnknown);
    objectWithSite.Release();
    return true;
  }
  return false;
}
Program: 82548
Project: 82548
Buggy source:
public Precompilation newInstance(TreeLogger logger) throws UnableToCompleteException {
  Precompilation toReturn;
  try {
    toReturn=Util.readStreamAsObject(jarFile.getInputStream(zipEntry),Precompilation.class);
  }
 catch (  IOException e) {
    toReturn=null;
  }
catch (  ClassNotFoundException e) {
    logger.log(TreeLogger.ERROR,"String_Node_Str",e);
    throw new UnableToCompleteException();
  }
  if (toReturn == null) {
    logger.log(TreeLogger.ERROR,"String_Node_Str");
    throw new UnableToCompleteException();
  }
  return toReturn;
}

Fixed version (ground truth):
public Precompilation newInstance(TreeLogger logger) throws UnableToCompleteException {
  try {
    return Util.readStreamAsObject(jarFile.getInputStream(zipEntry),Precompilation.class);
  }
 catch (  IOException e) {
    logger.log(TreeLogger.ERROR,"String_Node_Str",e);
    throw new UnableToCompleteException();
  }
catch (  ClassNotFoundException e) {
    logger.log(TreeLogger.ERROR,"String_Node_Str",e);
    throw new UnableToCompleteException();
  }
}
Program: 82549
Project: 82549
Buggy source:
public <T>T readObject(long token,Class<T> type){
  try {
    byte[] bytes=readByteArray(token);
    ByteArrayInputStream in=new ByteArrayInputStream(bytes);
    return Util.readStreamAsObject(in,type);
  }
 catch (  ClassNotFoundException e) {
    throw new RuntimeException("String_Node_Str",e);
  }
}

Fixed version (ground truth):
public <T>T readObject(long token,Class<T> type){
  try {
    byte[] bytes=readByteArray(token);
    ByteArrayInputStream in=new ByteArrayInputStream(bytes);
    return Util.readStreamAsObject(in,type);
  }
 catch (  ClassNotFoundException e) {
    throw new RuntimeException("String_Node_Str",e);
  }
catch (  IOException e) {
    throw new RuntimeException("String_Node_Str",e);
  }
}
Program: 82550
Project: 82550
Buggy source:
/** 
 * Construct a new instance of the object stored in the backing file.
 * @param logger a sink for error messages
 * @return a new instance of the object stored in the backing file
 * @throws UnableToCompleteException if the backing store does not contain anobject of type <code>T</code>
 */
public T newInstance(TreeLogger logger) throws UnableToCompleteException {
  try {
    T toReturn=Util.readFileAsObject(backingFile,clazz);
    if (toReturn == null) {
      logger.log(TreeLogger.ERROR,"String_Node_Str");
      throw new UnableToCompleteException();
    }
    return toReturn;
  }
 catch (  ClassNotFoundException e) {
    logger.log(TreeLogger.ERROR,"String_Node_Str",e);
    throw new UnableToCompleteException();
  }
}

Fixed version (ground truth):
/** 
 * Construct a new instance of the object stored in the backing file.
 * @param logger a sink for error messages
 * @return a new instance of the object stored in the backing file
 * @throws UnableToCompleteException if the backing store does not contain anobject of type <code>T</code>
 */
public T newInstance(TreeLogger logger) throws UnableToCompleteException {
  try {
    return Util.readFileAsObject(backingFile,clazz);
  }
 catch (  ClassNotFoundException e) {
    logger.log(TreeLogger.ERROR,"String_Node_Str",e);
    throw new UnableToCompleteException();
  }
catch (  IOException e) {
    logger.log(TreeLogger.ERROR,"String_Node_Str",e);
    throw new UnableToCompleteException();
  }
}
Program: 82551
Project: 82551
Buggy source:
public static <T>T readStreamAsObject(InputStream inputStream,Class<T> type) throws ClassNotFoundException {
  ObjectInputStream objectInputStream=null;
  try {
    objectInputStream=new ObjectInputStream(inputStream);
    return type.cast(objectInputStream.readObject());
  }
 catch (  IOException e) {
    return null;
  }
 finally {
    Utility.close(objectInputStream);
  }
}

Fixed version (ground truth):
public static <T>T readStreamAsObject(InputStream inputStream,Class<T> type) throws ClassNotFoundException, IOException {
  ObjectInputStream objectInputStream=null;
  try {
    objectInputStream=new ObjectInputStream(inputStream);
    return type.cast(objectInputStream.readObject());
  }
  finally {
    Utility.close(objectInputStream);
  }
}
Program: 82552
Project: 82552
Buggy source:
public static <T extends Serializable>T readFileAsObject(File file,Class<T> type) throws ClassNotFoundException {
  FileInputStream fileInputStream=null;
  try {
    fileInputStream=new FileInputStream(file);
    return readStreamAsObject(fileInputStream,type);
  }
 catch (  IOException e) {
    return null;
  }
 finally {
    Utility.close(fileInputStream);
  }
}

Fixed version (ground truth):
public static <T extends Serializable>T readFileAsObject(File file,Class<T> type) throws ClassNotFoundException, IOException {
  FileInputStream fileInputStream=null;
  try {
    fileInputStream=new FileInputStream(file);
    return readStreamAsObject(fileInputStream,type);
  }
  finally {
    Utility.close(fileInputStream);
  }
}
Program: 82553
Project: 82553
Buggy source:
/** 
 * The control is unavailable in this context.
 * @see <a href="http://www.w3.org/TR/1999/REC-html401-19991224/interact/forms.html#adef-disabled">W3C HTML Specification</a>
 */
public final native void setDisabled(String disabled);

Fixed version (ground truth):
/** 
 * The control is unavailable in this context.
 * @see <a href="http://www.w3.org/TR/1999/REC-html401-19991224/interact/forms.html#adef-disabled">W3C HTML Specification</a>
 * @deprecated use {@link #setDisabled(boolean)} instead
 */
public final native void setDisabled(String disabled);
Program: 82554
Project: 82554
Buggy source:
/** 
 * The control is unavailable in this context.
 * @see <a href="http://www.w3.org/TR/1999/REC-html401-19991224/interact/forms.html#adef-disabled">W3C HTML Specification</a>
 */
public final native String getDisabled();

Fixed version (ground truth):
/** 
 * The control is unavailable in this context.
 * @see <a href="http://www.w3.org/TR/1999/REC-html401-19991224/interact/forms.html#adef-disabled">W3C HTML Specification</a>
 * @deprecated use {@link #isDisabled()} instead.
 */
public final native String getDisabled();
Program: 82555
Project: 82555
Buggy source:
/** 
 * Enables/disables the link. This is currently only used for style sheet links, and may be used to activate or deactivate style sheets.
 */
public final native boolean getDisabled();

Fixed version (ground truth):
/** 
 * Enables/disables the link. This is currently only used for style sheet links, and may be used to activate or deactivate style sheets.
 * @deprecated use {@link #isDisabled()} instead.
 */
public final native boolean getDisabled();
Program: 82556
Project: 82556
Buggy source:
/** 
 * Enables/disables the style sheet.
 */
public final native boolean getDisabled();

Fixed version (ground truth):
/** 
 * Enables/disables the style sheet.
 * @deprecated use {@link #isDisabled()} instead
 */
public final native boolean getDisabled();
Program: 82557
Project: 82557
Buggy source:
public final native boolean getDisabled();

Fixed version (ground truth):
/** 
 * @deprecated use {@link #isDisabled()} instead
 */
public final native boolean getDisabled();
Program: 82558
Project: 82558
Buggy source:
public final native boolean getReadOnly();

Fixed version (ground truth):
/** 
 * @deprecated use {@link #isReadOnly()} instead.
 */
public final native boolean getReadOnly();
Program: 82559
Project: 82559
Buggy source:
/** 
 * Loads an image from the classpath, optionally prepending this package.
 * @param name name of an image file.
 * @param prependPackage true if {@link #PACKAGE_PATH} should be prepended tothis name.
 */
static ImageIcon loadImageIcon(String name,boolean prependPackage){
  ClassLoader cl=OophmHostedModeBase.class.getClassLoader();
  if (prependPackage) {
    name=PACKAGE_PATH + name;
  }
  URL url=cl.getResource(name);
  if (url != null) {
    ImageIcon image=new ImageIcon(url);
    return image;
  }
 else {
    return new ImageIcon();
  }
}

Fixed version (ground truth):
/** 
 * Loads an image from the classpath, optionally prepending this package.
 * @param name name of an image file.
 * @param prependPackage true if {@link #PACKAGE_PATH} should be prepended tothis name.
 */
static ImageIcon loadImageIcon(String name,boolean prependPackage){
  ClassLoader cl=OophmHostedModeBase.class.getClassLoader();
  if (prependPackage) {
    name=PACKAGE_PATH + name;
  }
  URL url=(name == null) ? null : cl.getResource(name);
  if (url != null) {
    ImageIcon image=new ImageIcon(url);
    return image;
  }
 else {
    return new ImageIcon();
  }
}
Program: 82561
Project: 82561
Buggy source:
public static String slurpSource(SourcePosition position){
  FileReader fr=null;
  try {
    fr=new FileReader(position.file());
    BufferedReader br=new BufferedReader(fr);
    for (int i=0, n=position.line() - 1; i < n; ++i) {
      br.readLine();
    }
    StringBuffer lines=new StringBuffer();
    String line=br.readLine();
    int braceDepth=0;
    int indent=-1;
    boolean seenSemiColonOrBrace=false;
    while (line != null) {
      if (indent == -1) {
        for (indent=0; Character.isWhitespace(line.charAt(indent)); ++indent) {
        }
      }
      if (line.length() >= indent) {
        line=line.substring(indent);
      }
      lines.append(line + "String_Node_Str");
      for (int i=0, n=line.length(); i < n; ++i) {
        char c=line.charAt(i);
        if (c == '{') {
          seenSemiColonOrBrace=true;
          ++braceDepth;
        }
 else         if (c == '}') {
          --braceDepth;
        }
 else         if (c == ';') {
          seenSemiColonOrBrace=true;
        }
      }
      if (braceDepth > 0 || !seenSemiColonOrBrace) {
        line=br.readLine();
      }
 else {
        break;
      }
    }
    String code=lines.toString();
    return code;
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
 finally {
    try {
      if (fr != null) {
        fr.close();
      }
    }
 catch (    IOException e) {
      e.printStackTrace();
    }
  }
  return "String_Node_Str";
}

Fixed version (ground truth):
public static String slurpSource(SourcePosition position){
  BufferedReader br=null;
  try {
    br=new BufferedReader(new FileReader(position.file()));
    for (int i=0, n=position.line() - 1; i < n; ++i) {
      br.readLine();
    }
    StringBuffer lines=new StringBuffer();
    String line=br.readLine();
    int braceDepth=0;
    int indent=-1;
    boolean seenSemiColonOrBrace=false;
    while (line != null) {
      if (indent == -1) {
        for (indent=0; Character.isWhitespace(line.charAt(indent)); ++indent) {
        }
      }
      if (line.length() >= indent) {
        line=line.substring(indent);
      }
      lines.append(line + "String_Node_Str");
      for (int i=0, n=line.length(); i < n; ++i) {
        char c=line.charAt(i);
        if (c == '{') {
          seenSemiColonOrBrace=true;
          ++braceDepth;
        }
 else         if (c == '}') {
          --braceDepth;
        }
 else         if (c == ';') {
          seenSemiColonOrBrace=true;
        }
      }
      if (braceDepth > 0 || !seenSemiColonOrBrace) {
        line=br.readLine();
      }
 else {
        break;
      }
    }
    String code=lines.toString();
    return code;
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
 finally {
    try {
      if (br != null) {
        br.close();
      }
    }
 catch (    IOException e) {
      e.printStackTrace();
    }
  }
  return "String_Node_Str";
}
Program: 82562
Project: 82562
Buggy source:
public boolean copyFile(File in,File out){
  FileInputStream fis=null;
  FileOutputStream fos=null;
  try {
    fis=new FileInputStream(in);
    fos=new FileOutputStream(out);
    byte[] buf=new byte[4096];
    int i=0;
    while ((i=fis.read(buf)) != -1) {
      fos.write(buf,0,i);
    }
    return true;
  }
 catch (  Exception e) {
    return false;
  }
 finally {
    close(fis);
    close(fos);
  }
}

Fixed version (ground truth):
public boolean copyFile(File in,File out){
  FileInputStream fis=null;
  FileOutputStream fos=null;
  try {
    fis=new FileInputStream(in);
    fos=new FileOutputStream(out);
    byte[] buf=new byte[4096];
    int i=0;
    while ((i=fis.read(buf)) != -1) {
      fos.write(buf,0,i);
    }
    return true;
  }
 catch (  IOException e) {
    return false;
  }
 finally {
    close(fis);
    close(fos);
  }
}
Program: 82563
Project: 82563
Buggy source:
private String getFileFromClassPath(String filename){
  InputStream in=null;
  try {
    in=getClass().getClassLoader().getResourceAsStream(filename);
    try {
      if (in == null) {
        err.println("String_Node_Str" + filename);
        System.exit(-1);
      }
      StringWriter sw=new StringWriter();
      int ch;
      while ((ch=in.read()) != -1) {
        sw.write(ch);
      }
      return sw.toString();
    }
  finally {
      if (in != null) {
        in.close();
      }
    }
  }
 catch (  IOException e) {
    throw new RuntimeException(e);
  }
}

Fixed version (ground truth):
private String getFileFromClassPath(String filename){
  InputStream in=null;
  try {
    in=getClass().getClassLoader().getResourceAsStream(filename);
    try {
      if (in == null) {
        throw new RuntimeException("String_Node_Str" + filename);
      }
      StringWriter sw=new StringWriter();
      int ch;
      while ((ch=in.read()) != -1) {
        sw.write(ch);
      }
      return sw.toString();
    }
  finally {
      if (in != null) {
        in.close();
      }
    }
  }
 catch (  IOException e) {
    throw new RuntimeException(e);
  }
}
Program: 82564
Project: 82564
Buggy source:
private static void split(String[] files) throws IOException {
  BufferedReader reader=null;
  String prefix=null;
  File inputFile=null;
  for (int i=0; i < files.length; i++) {
    if (reader != null) {
      reader.close();
    }
    String file=files[i];
    inputFile=new File(file);
    if (!inputFile.exists()) {
      System.err.println("String_Node_Str" + inputFile.getPath());
      return;
    }
    reader=new BufferedReader(new FileReader(inputFile));
    File outFile=null;
    PrintWriter writer=null;
    String line=reader.readLine();
    while (line != null) {
      if (prefix == null) {
        prefix=line.trim();
        if (prefix.length() == 0) {
          prefix=null;
        }
      }
 else       if (line.startsWith(prefix)) {
        if (writer != null) {
          writer.close();
        }
        String outPath=line.substring(prefix.length()).trim();
        outFile=new File(outPath);
        if (!outFile.isAbsolute()) {
          File absoluteParentDir=inputFile.getCanonicalFile().getParentFile();
          outFile=new File(absoluteParentDir,outPath);
          outFile.getParentFile().mkdirs();
        }
        writer=new PrintWriter(new FileWriter(outFile),true);
        writer.println("String_Node_Str");
      }
 else       if (writer != null) {
        writer.println(line);
      }
 else {
      }
      line=reader.readLine();
    }
    if (writer != null) {
      writer.close();
    }
  }
}

Fixed version (ground truth):
private static void split(String[] files) throws IOException {
  String prefix=null;
  File inputFile=null;
  for (int i=0; i < files.length; i++) {
    BufferedReader reader=null;
    try {
      String file=files[i];
      inputFile=new File(file);
      if (!inputFile.exists()) {
        System.err.println("String_Node_Str" + inputFile.getPath());
        return;
      }
      reader=new BufferedReader(new FileReader(inputFile));
      File outFile=null;
      PrintWriter writer=null;
      String line=reader.readLine();
      while (line != null) {
        if (prefix == null) {
          prefix=line.trim();
          if (prefix.length() == 0) {
            prefix=null;
          }
        }
 else         if (line.startsWith(prefix)) {
          if (writer != null) {
            writer.close();
          }
          String outPath=line.substring(prefix.length()).trim();
          outFile=new File(outPath);
          if (!outFile.isAbsolute()) {
            File absoluteParentDir=inputFile.getCanonicalFile().getParentFile();
            outFile=new File(absoluteParentDir,outPath);
            outFile.getParentFile().mkdirs();
          }
          writer=new PrintWriter(new FileWriter(outFile),true);
          writer.println("String_Node_Str");
        }
 else         if (writer != null) {
          writer.println(line);
        }
 else {
        }
        line=reader.readLine();
      }
      if (writer != null) {
        writer.close();
      }
    }
  finally {
      if (reader != null) {
        reader.close();
      }
    }
  }
}
Program: 82565
Project: 82565
Buggy source:
/** 
 * Determines whether or not the URL is relative.
 * @param src the test url
 * @return <code>true</code> if the URL is relative, <code>false</code> if not
 */
@SuppressWarnings("String_Node_Str") protected static boolean isRelativeURL(String src){
  if (src.startsWith("String_Node_Str")) {
    return false;
  }
  try {
    URL testUrl=new URL(src);
    return false;
  }
 catch (  MalformedURLException e) {
  }
  return true;
}

Fixed version (ground truth):
/** 
 * Determines whether or not the URL is relative.
 * @param src the test url
 * @return <code>true</code> if the URL is relative, <code>false</code> if not
 */
@SuppressWarnings("String_Node_Str") protected static boolean isRelativeURL(String src){
  if (src.startsWith("String_Node_Str")) {
    return false;
  }
  try {
    new URL(src);
    return false;
  }
 catch (  MalformedURLException e) {
  }
  return true;
}
Program: 82566
Project: 82566
Buggy source:
private void writeArtifactToFile(TreeLogger logger,EmittedArtifact artifact,File outFile,Set<String> createdDirs) throws UnableToCompleteException {
  if (!outFile.exists() || (outFile.lastModified() <= artifact.getLastModified())) {
    mkdirs(outFile.getParentFile(),createdDirs);
    try {
      FileOutputStream out=new FileOutputStream(outFile);
      artifact.writeTo(logger,out);
      out.close();
    }
 catch (    IOException e) {
      logger.log(TreeLogger.ERROR,"String_Node_Str" + outFile.getAbsolutePath() + "String_Node_Str",e);
      throw new UnableToCompleteException();
    }
    outFile.setLastModified(artifact.getLastModified());
  }
}

Fixed version (ground truth):
private void writeArtifactToFile(TreeLogger logger,EmittedArtifact artifact,File outFile,Set<String> createdDirs) throws UnableToCompleteException {
  if (!outFile.exists() || (outFile.lastModified() <= artifact.getLastModified())) {
    if (!mkdirs(outFile.getParentFile(),createdDirs)) {
      logger.log(TreeLogger.ERROR,"String_Node_Str" + outFile.getAbsolutePath() + "String_Node_Str");
    }
 else {
      try {
        FileOutputStream out=new FileOutputStream(outFile);
        artifact.writeTo(logger,out);
        out.close();
      }
 catch (      IOException e) {
        logger.log(TreeLogger.ERROR,"String_Node_Str" + outFile.getAbsolutePath() + "String_Node_Str",e);
        throw new UnableToCompleteException();
      }
      outFile.setLastModified(artifact.getLastModified());
    }
  }
}
Program: 82567
Project: 82567
Buggy source:
/** 
 * A faster bulk version of   {@link File#mkdirs()} that takes advantage ofcached state to avoid a lot of file system access.
 */
private static void mkdirs(File dir,Set<String> createdDirs){
  if (dir == null) {
    return;
  }
  String path=dir.getPath();
  if (createdDirs.contains(path)) {
    return;
  }
  if (!dir.exists()) {
    mkdirs(dir.getParentFile(),createdDirs);
    dir.mkdir();
  }
  createdDirs.add(path);
}

Fixed version (ground truth):
/** 
 * A faster bulk version of   {@link File#mkdirs()} that takes advantage ofcached state to avoid a lot of file system access.
 */
private static boolean mkdirs(File dir,Set<String> createdDirs){
  if (dir == null) {
    return true;
  }
  String path=dir.getPath();
  if (createdDirs.contains(path)) {
    return true;
  }
  if (!dir.exists()) {
    if (!mkdirs(dir.getParentFile(),createdDirs)) {
      return false;
    }
    if (!dir.mkdir()) {
      return false;
    }
  }
  createdDirs.add(path);
  return true;
}
Program: 82568
Project: 82568
Buggy source:
/** 
 * Used to record dependencies of a program.
 * @param jprogram
 * @param workDir
 * @param permutationId
 * @param logger
 * @return The file that the dependencies are recorded in
 */
public File recordDependencies(JProgram jprogram,File workDir,int permutationId,TreeLogger logger){
  logger=logger.branch(TreeLogger.INFO,"String_Node_Str");
  ControlFlowAnalyzer dependencyAnalyzer=new ControlFlowAnalyzer(jprogram);
  dependencyAnalyzer.setDependencyRecorder(this);
  File appendDepFile=new File(workDir,"String_Node_Str" + permutationId + "String_Node_Str");
  try {
    FileOutputStream stream=new FileOutputStream(appendDepFile,true);
    writer=new OutputStreamWriter(new GZIPOutputStream(stream),"String_Node_Str");
    appendDepFile.getParentFile().mkdirs();
    pw=new PrintWriter(writer);
    htmlOut=new HtmlTextOutput(pw,false);
  }
 catch (  Throwable e) {
    logger.log(TreeLogger.ERROR,"String_Node_Str",e);
  }
  printPre();
  for (  JMethod method : jprogram.getAllEntryMethods()) {
    dependencyAnalyzer.traverseFrom(method);
  }
  printPost();
  pw.close();
  Utility.close(writer);
  logger.log(TreeLogger.INFO,"String_Node_Str");
  return appendDepFile;
}

Fixed version (ground truth):
/** 
 * Used to record dependencies of a program.
 * @param jprogram
 * @param workDir
 * @param permutationId
 * @param logger
 * @return The file that the dependencies are recorded in
 */
public File recordDependencies(JProgram jprogram,File workDir,int permutationId,TreeLogger logger){
  logger=logger.branch(TreeLogger.INFO,"String_Node_Str");
  ControlFlowAnalyzer dependencyAnalyzer=new ControlFlowAnalyzer(jprogram);
  dependencyAnalyzer.setDependencyRecorder(this);
  File appendDepFile=new File(workDir,"String_Node_Str" + permutationId + "String_Node_Str");
  try {
    appendDepFile.getParentFile().mkdirs();
    FileOutputStream stream=new FileOutputStream(appendDepFile,true);
    writer=new OutputStreamWriter(new GZIPOutputStream(stream),"String_Node_Str");
    pw=new PrintWriter(writer);
    htmlOut=new HtmlTextOutput(pw,false);
  }
 catch (  Throwable e) {
    logger.log(TreeLogger.ERROR,"String_Node_Str",e);
  }
  printPre();
  for (  JMethod method : jprogram.getAllEntryMethods()) {
    dependencyAnalyzer.traverseFrom(method);
  }
  printPost();
  pw.close();
  Utility.close(writer);
  logger.log(TreeLogger.INFO,"String_Node_Str");
  return appendDepFile;
}
Program: 82570
Project: 82570
Buggy source:
private void visitInNewContext(List<CssNode> nodes){
  MergeRulesByContentVisitor v=new MergeRulesByContentVisitor();
  v.accept(nodes);
  rulesInOrder.addAll(v.rulesInOrder);
}

Fixed version (ground truth):
private void visitInNewContext(List<CssNode> nodes){
  MergeRulesByContentVisitor v=new MergeRulesByContentVisitor();
  v.acceptWithInsertRemove(nodes);
  rulesInOrder.addAll(v.rulesInOrder);
}
Program: 82571
Project: 82571
Buggy source:
public void onClick(ClickEvent event){
  ValueChangeEvent.fireIfNotEqual(CheckBox.this,valueBeforeClick,getValue());
}

Fixed version (ground truth):
public void onClick(ClickEvent event){
  ValueChangeEvent.fire(CheckBox.this,getValue());
}
Program: 82572
Project: 82572
Buggy source:
public HandlerRegistration addValueChangeHandler(ValueChangeHandler<Boolean> handler){
  if (!valueChangeHandlerInitialized) {
    this.addKeyUpHandler(new KeyUpHandler(){
      public void onKeyUp(      KeyUpEvent event){
        valueBeforeClick=getValue();
      }
    }
);
    this.addMouseUpHandler(new MouseUpHandler(){
      public void onMouseUp(      MouseUpEvent event){
        valueBeforeClick=getValue();
      }
    }
);
    this.addClickHandler(new ClickHandler(){
      public void onClick(      ClickEvent event){
        ValueChangeEvent.fireIfNotEqual(CheckBox.this,valueBeforeClick,getValue());
      }
    }
);
    valueChangeHandlerInitialized=true;
  }
  return addHandler(handler,ValueChangeEvent.getType());
}

Fixed version (ground truth):
public HandlerRegistration addValueChangeHandler(ValueChangeHandler<Boolean> handler){
  if (!valueChangeHandlerInitialized) {
    ensureDomEventHandlers();
    valueChangeHandlerInitialized=true;
  }
  return addHandler(handler,ValueChangeEvent.getType());
}
Program: 82573
Project: 82573
Buggy source:
@Override public void sinkEvents(int eventBitsToAdd){
  if (isOrWasAttached()) {
    Event.sinkEvents(inputElem,eventBitsToAdd | Event.getEventsSunk(inputElem));
    Event.sinkEvents(labelElem,eventBitsToAdd | Event.getEventsSunk(labelElem));
  }
 else {
    super.sinkEvents(eventBitsToAdd);
  }
}

Fixed version (ground truth):
@Override public void sinkEvents(int eventBitsToAdd){
  if (isOrWasAttached()) {
    Event.sinkEvents(inputElem,eventBitsToAdd | Event.getEventsSunk(inputElem));
  }
 else {
    super.sinkEvents(eventBitsToAdd);
  }
}
Program: 82574
Project: 82574
Buggy source:
public void onClick(Widget sender){
  ++fired;
}

Fixed version (ground truth):
public void onClick(ClickEvent arg0){
  clickCount[0]++;
}
Program: 82575
Project: 82575
Buggy source:
/** 
 * Returns the permutation's strong name. This can be used to distinguish between different permutations of the same module. In hosted mode, this method will return   {@value #HOSTED_MODE_PERMUTATION_ID}.
 */
public static String getPermutationStrongName(){
  if (GWT.isScript()) {
    return Impl.getPermutationStrongName();
  }
 else {
    return HOSTED_MODE_PERMUTATION_STRONG_NAME;
  }
}

Fixed version (ground truth):
/** 
 * Returns the permutation's strong name. This can be used to distinguish between different permutations of the same module. In hosted mode, this method will return   {@value #HOSTED_MODE_PERMUTATION_STRONG_NAME}.
 */
public static String getPermutationStrongName(){
  if (GWT.isScript()) {
    return Impl.getPermutationStrongName();
  }
 else {
    return HOSTED_MODE_PERMUTATION_STRONG_NAME;
  }
}
Program: 82576
Project: 82576
Buggy source:
/** 
 * Gets the element to which the mouse pointer was moved (only valid for  {@link Event#ONMOUSEOUT}).
 * @deprecated use {@link NativeEvent#getRelatedTarget()} instead
 * @return the element to which the mouse pointer was moved
 */
@Deprecated public final Element getToElement(){
  return DOM.eventGetToElement(this);
}

Fixed version (ground truth):
/** 
 * Gets the element to which the mouse pointer was moved (only valid for  {@link Event#ONMOUSEOUT}).
 * @deprecated use {@link NativeEvent#getRelatedEventTarget()} instead
 * @return the element to which the mouse pointer was moved
 */
@Deprecated public final Element getToElement(){
  return DOM.eventGetToElement(this);
}
Program: 82577
Project: 82577
Buggy source:
/** 
 * Gets the element from which the mouse pointer was moved (only valid for  {@link Event#ONMOUSEOVER}).
 * @deprecated use {@link NativeEvent#getRelatedTarget()} instead
 * @return the element from which the mouse pointer was moved
 */
@Deprecated public final Element getFromElement(){
  return DOM.eventGetFromElement(this);
}

Fixed version (ground truth):
/** 
 * Gets the element from which the mouse pointer was moved (only valid for  {@link Event#ONMOUSEOVER}).
 * @deprecated use {@link NativeEvent#getRelatedEventTarget()} instead
 * @return the element from which the mouse pointer was moved
 */
@Deprecated public final Element getFromElement(){
  return DOM.eventGetFromElement(this);
}
Program: 82578
Project: 82578
Buggy source:
/** 
 * Removes a previously added handler interface.
 * @param handler the handler to remove
 * @deprecated Use the {@link HandlerRegistration#removeHandler} method on the object returned by an add*Handler method instead
 */
@Deprecated void removeEventHandler(DisclosureHandler handler);

Fixed version (ground truth):
/** 
 * Removes a previously added handler interface.
 * @param handler the handler to remove
 * @deprecated Use the {@link HandlerRegistration#removeHandler}method on the object returned by an add*Handler method instead
 */
@Deprecated void removeEventHandler(DisclosureHandler handler);
Program: 82579
Project: 82579
Buggy source:
/** 
 * Removes a previously added handler interface.
 * @param handler the handler interface to remove
 * @deprecated Use the {@link HandlerRegistration#removeHandler} method on the object returned by an add*Handler method instead
 */
@Deprecated void removeFormHandler(FormHandler handler);

Fixed version (ground truth):
/** 
 * Removes a previously added handler interface.
 * @param handler the handler interface to remove
 * @deprecated Use the {@link HandlerRegistration#removeHandler}method on the object returned by an add*Handler method instead
 */
@Deprecated void removeFormHandler(FormHandler handler);
Program: 82580
Project: 82580
Buggy source:
/** 
 * Adds a handler interface to receive click events.
 * @deprecated Use {@link FormPanel#addSubmitCompleteHandler FormPanel.addSubmitCompleteHandler} and{@link FormPanel#addSubmitHandler FormPanel.addSubmitHandler} instead
 * @param handler the handler interface to add
 */
@Deprecated void addFormHandler(FormHandler handler);

Fixed version (ground truth):
/** 
 * Adds a handler interface to receive click events.
 * @deprecated Use {@link FormPanel#addSubmitCompleteHandler} and{@link FormPanel#addSubmitHandler} instead
 * @param handler the handler interface to add
 */
@Deprecated void addFormHandler(FormHandler handler);
Program: 82581
Project: 82581
Buggy source:
/** 
 * Removes a previously added handler interface.
 * @param handler the handler to remove
 * @deprecated Use the {@link HandlerRegistration#removeHandler} method on the object returned by an add*Handler method instead
 */
@Deprecated void removeEventHandler(SuggestionHandler handler);

Fixed version (ground truth):
/** 
 * Removes a previously added handler interface.
 * @param handler the handler to remove
 * @deprecated Use the {@link HandlerRegistration#removeHandler}method on the object returned by an add*Handler method instead
 */
@Deprecated void removeEventHandler(SuggestionHandler handler);
Program: 82582
Project: 82582
Buggy source:
/** 
 * @deprecated Use the {@link HandlerRegistration#removeHandler}method on the object returned by   {@link addScrollHandler} instead
 */
@Deprecated public void removeScrollListener(ScrollListener listener){
  ListenerWrapper.WrappedScrollListener.remove(this,listener);
}

Fixed version (ground truth):
/** 
 * @deprecated Use the {@link HandlerRegistration#removeHandler}method on the object returned by   {@link #addScrollHandler} instead
 */
@Deprecated public void removeScrollListener(ScrollListener listener){
  ListenerWrapper.WrappedScrollListener.remove(this,listener);
}
Program: 82583
Project: 82583
Buggy source:
/** 
 * Removes a previously added listener interface.
 * @param listener the listener interface to remove
 * @deprecated Use the {@link HandlerRegistration#removeHandler}method on the object returned by   {@link #addChangeHandler} instead
 */
@Deprecated void removeChangeListener(ChangeListener listener);

Fixed version (ground truth):
/** 
 * Removes a previously added listener interface.
 * @param listener the listener interface to remove
 * @deprecated Use the {@link HandlerRegistration#removeHandler}method on the object returned by   {@link HasChangeHandlers#addChangeHandler}instead
 */
@Deprecated void removeChangeListener(ChangeListener listener);
Program: 82584
Project: 82584
Buggy source:
/** 
 * Removes a previously added listener interface.
 * @param listener the listener interface to remove
 * @deprecated Use the {@link HandlerRegistration#removeHandler}method on the object returned by   {@link #addClickHandler} instead
 */
@Deprecated void removeClickListener(ClickListener listener);

Fixed version (ground truth):
/** 
 * Removes a previously added listener interface.
 * @param listener the listener interface to remove
 * @deprecated Use the {@link HandlerRegistration#removeHandler}method on the object returned by   {@link HasClickHandlers#addClickHandler}instead
 */
@Deprecated void removeClickListener(ClickListener listener);
Program: 82585
Project: 82585
Buggy source:
/** 
 * Adds a listener interface to receive focus events.
 * @param listener the listener interface to add
 * @deprecated use <code>addFocusHandler</code> and <cod>addBlurHandler</code>instead.
 */
@Deprecated void addFocusListener(FocusListener listener);

Fixed version (ground truth):
/** 
 * Adds a listener interface to receive focus events.
 * @param listener the listener interface to add
 * @deprecated use addFocusHandler and addBlurHandler instead.
 */
@Deprecated void addFocusListener(FocusListener listener);
Program: 82586
Project: 82586
Buggy source:
/** 
 * Removes a previously added listener interface.
 * @param listener the listener interface to remove
 * @deprecated Use the {@link HandlerRegistration#removeHandler}method on the object returned by   {@link #addFocusHandler} instead
 */
@Deprecated void removeFocusListener(FocusListener listener);

Fixed version (ground truth):
/** 
 * Removes a previously added listener interface.
 * @param listener the listener interface to remove
 * @deprecated Use the {@link HandlerRegistration#removeHandler}method on the object returned by   {@link HasFocusHandlers#addFocusHandler}instead
 */
@Deprecated void removeFocusListener(FocusListener listener);
Program: 82587
Project: 82587
Buggy source:
/** 
 * Removes a previously added listener interface.
 * @param listener the listener interface to remove
 * @deprecated Use the {@link HandlerRegistration#removeHandler}method on the object returned by   {@link HasLoadHandlers#addLoadListener} instead
 */
@Deprecated void removeLoadListener(LoadListener listener);

Fixed version (ground truth):
/** 
 * Removes a previously added listener interface.
 * @param listener the listener interface to remove
 * @deprecated Use the {@link HandlerRegistration#removeHandler}method on the object returned by   {@link HasLoadHandlers#addLoadHandler}instead
 */
@Deprecated void removeLoadListener(LoadListener listener);
Program: 82588
Project: 82588
Buggy source:
/** 
 * Adds a listener interface to receive mouse events.
 * @param listener the listener interface to add
 * @deprecated use add* methods of {@link com.google.gwt.event.dom.client.HasAllMouseHandlers}instead
 */
@Deprecated void addMouseListener(MouseListener listener);

Fixed version (ground truth):
/** 
 * Adds a listener interface to receive mouse events.
 * @param listener the listener interface to add
 * @deprecated use add* methods of {@link HasAllMouseHandlers} instead
 */
@Deprecated void addMouseListener(MouseListener listener);
Program: 82589
Project: 82589
Buggy source:
/** 
 * Adds a listener interface to receive mouse events.
 * @param listener the listener interface to add
 * @deprecated Use {@link com.google.gwt.event.dom.client.HasMouseWheelHandlers#addMouseWheelHandler}instead
 */
@Deprecated void addMouseWheelListener(MouseWheelListener listener);

Fixed version (ground truth):
/** 
 * Adds a listener interface to receive mouse events.
 * @param listener the listener interface to add
 * @deprecated Use {@link HasMouseWheelHandlers#addMouseWheelHandler} instead
 */
@Deprecated void addMouseWheelListener(MouseWheelListener listener);