Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 162219 Details for
Bug 306073
ASTRewrite Javadoc wrongly talks about getTargetSourceRangeComputer
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed fix
patch_306073.txt (text/plain), 2.62 KB, created by
Olivier Thomann
on 2010-03-16 18:03:59 EDT
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2010-03-16 18:03:59 EDT
Size:
2.62 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: dom/org/eclipse/jdt/core/dom/rewrite/ASTRewrite.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/rewrite/ASTRewrite.java,v >retrieving revision 1.42 >diff -u -r1.42 ASTRewrite.java >--- dom/org/eclipse/jdt/core/dom/rewrite/ASTRewrite.java 29 Sep 2009 15:46:40 -0000 1.42 >+++ dom/org/eclipse/jdt/core/dom/rewrite/ASTRewrite.java 16 Mar 2010 22:03:32 -0000 >@@ -1,5 +1,5 @@ > /******************************************************************************* >- * Copyright (c) 2004, 2009 IBM Corporation and others. >+ * Copyright (c) 2004, 2010 IBM Corporation and others. > * All rights reserved. This program and the accompanying materials > * are made available under the terms of the Eclipse Public License v1.0 > * which accompanies this distribution, and is available at >@@ -162,7 +162,7 @@ > * <p> > * For nodes in the original that are being replaced or deleted, > * this rewriter computes the adjusted source ranges >- * by calling <code>getTargetSourceRangeComputer().computeSourceRange(node)</code>. >+ * by calling {@link TargetSourceRangeComputer#computeSourceRange(ASTNode) getExtendedSourceRangeComputer().computeSourceRange(node)}. > * </p> > * <p> > * Calling this methods does not discard the modifications >@@ -217,7 +217,7 @@ > * <p> > * For nodes in the original that are being replaced or deleted, > * this rewriter computes the adjusted source ranges >- * by calling <code>getTargetSourceRangeComputer().computeSourceRange(node)</code>. >+ * by calling {@link TargetSourceRangeComputer#computeSourceRange(ASTNode) getExtendedSourceRangeComputer().computeSourceRange(node)}. > * </p> > * <p> > * Calling this methods does not discard the modifications >@@ -663,6 +663,7 @@ > * > * @return an extended source range computer > * @since 3.1 >+ * @see #setTargetSourceRangeComputer(TargetSourceRangeComputer) > */ > public final TargetSourceRangeComputer getExtendedSourceRangeComputer() { > if (this.targetSourceRangeComputer == null) { >@@ -680,9 +681,10 @@ > * or <code>null</code> to restore the default value of > * <code>new TargetSourceRangeComputer()</code> > * @since 3.1 >+ * @see #getExtendedSourceRangeComputer() > */ > public final void setTargetSourceRangeComputer(TargetSourceRangeComputer computer) { >- // if computer==null, rely on lazy init code in getTargetSourceRangeComputer() >+ // if computer==null, rely on lazy init code in getExtendedSourceRangeComputer() > this.targetSourceRangeComputer = computer; > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 306073
: 162219