diff options
Diffstat (limited to 'org.eclipse.jface.text/src/org/eclipse/jface/text/DocumentCommand.java')
-rw-r--r-- | org.eclipse.jface.text/src/org/eclipse/jface/text/DocumentCommand.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/DocumentCommand.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/DocumentCommand.java index 37d869c3010..cf6898d4d8a 100644 --- a/org.eclipse.jface.text/src/org/eclipse/jface/text/DocumentCommand.java +++ b/org.eclipse.jface.text/src/org/eclipse/jface/text/DocumentCommand.java @@ -391,7 +391,7 @@ public class DocumentCommand { */ void execute(IDocument document) throws BadLocationException { - if (length == 0 && text == null && fCommands.size() == 0) + if (length == 0 && text == null && fCommands.isEmpty()) return; DefaultPositionUpdater updater= new DefaultPositionUpdater(getCategory()); |