File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3443,10 +3443,10 @@ public final int getLength() {
34433443 */
34443444 public final void setSourceRange (int startPosition , int length ) {
34453445 if (startPosition >= 0 && length < 0 ) {
3446- throw new IllegalArgumentException ();
3446+ throw new IllegalArgumentException ("negative length=" + length + " startPosition= " + startPosition ); //$NON-NLS-1$ //$NON-NLS-2$
34473447 }
34483448 if (startPosition < 0 && length != 0 ) {
3449- throw new IllegalArgumentException ();
3449+ throw new IllegalArgumentException ("negative startPosition=" + startPosition + " length=" + length ); //$NON-NLS-1$ //$NON-NLS-2$
34503450 }
34513451 // source positions are not considered a structural property
34523452 // but we protect them nevertheless
You can’t perform that action at this time.
0 commit comments