Bug 96280 [typing] Smart paste has problems if second line has only whitespaces
N20050523-0010 Paste the following into a method: void hasOneExitPoint() { } void hasTwoExitPoints(int i) { if (i < 0) callsMethodThatThrowsRuntimeException(i); }
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaAutoIndentStrategy.java
StringBuffer correct= indenter.computeIndentation(lineOffset);
					if (correct == null)
						return; 
					insertLength= subtractIndent(correct, current, addition);
					if (l != first) {
						isIndentDetected= true;
						if (insertLength == 0) {
							 
							if (firstLine == 0) {
								
								command.offset= newOffset;
								command.length= newLength;
							}
							return;
						}
						removeJavaStuff(temp);
					}
				}
				
				if (insertLength > 0)
					addIndent(temp, l, addition);
				else if (insertLength < 0)
					cutIndent(temp, l, -insertLength);
			}
			temp.stopRewriteSession(session);
			newText= temp.get(prefix.length(), temp.getLength() - prefix.length());
			command.offset= newOffset;
			command.length= newLength;
			command.text= newText;
		} catch (BadLocationException e) {