Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2020-01-24 07:27:20 +0000
committerLars Vogel2020-01-24 07:27:20 +0000
commit8d8e1a6e517f6b6bcfc44f10848cc1fa55408fd6 (patch)
tree8d4788cb8a16ebf20a9b9bdc3bbb0c6fc9a18aa0
parent012adcd2f6d6b57c8af9b495af0ac5a7b58b1170 (diff)
downloadeclipse.platform.text-8d8e1a6e517f6b6bcfc44f10848cc1fa55408fd6.tar.gz
eclipse.platform.text-8d8e1a6e517f6b6bcfc44f10848cc1fa55408fd6.tar.xz
eclipse.platform.text-8d8e1a6e517f6b6bcfc44f10848cc1fa55408fd6.zip
Method references are slightly faster than lambdas and better readable. Change-Id: I905142784bf92dce38491d360fb5ff7354483281 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r--org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/SourceViewerDecorationSupport.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/SourceViewerDecorationSupport.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/SourceViewerDecorationSupport.java
index 96e219f81..53888f2c3 100644
--- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/SourceViewerDecorationSupport.java
+++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/SourceViewerDecorationSupport.java
@@ -262,7 +262,7 @@ public class SourceViewerDecorationSupport {
fPreferenceStore= store;
if (fPreferenceStore != null) {
- fPropertyChangeListener= event -> handlePreferenceStoreChanged(event);
+ fPropertyChangeListener= this::handlePreferenceStoreChanged;
fPreferenceStore.addPropertyChangeListener(fPropertyChangeListener);
}

Back to the top