diff options
author | Lars Vogel | 2020-01-24 07:27:20 +0000 |
---|---|---|
committer | Lars Vogel | 2020-01-24 07:27:20 +0000 |
commit | 8d8e1a6e517f6b6bcfc44f10848cc1fa55408fd6 (patch) | |
tree | 8d4788cb8a16ebf20a9b9bdc3bbb0c6fc9a18aa0 | |
parent | 012adcd2f6d6b57c8af9b495af0ac5a7b58b1170 (diff) | |
download | eclipse.platform.text-8d8e1a6e517f6b6bcfc44f10848cc1fa55408fd6.tar.gz eclipse.platform.text-8d8e1a6e517f6b6bcfc44f10848cc1fa55408fd6.tar.xz eclipse.platform.text-8d8e1a6e517f6b6bcfc44f10848cc1fa55408fd6.zip |
Use method reference instead of lambdas in SourceViewerDecorationSupportY20200127-1055Y20200126-2245I20200129-0100I20200128-1805I20200127-1800I20200126-1800I20200126-0250I20200125-1805I20200124-1800
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.java | 2 |
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 96e219f818b..53888f2c335 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); } |