diff options
author | Lars Vogel | 2021-04-09 05:53:13 +0000 |
---|---|---|
committer | Lars Vogel | 2021-04-09 17:14:43 +0000 |
commit | f3688636b49e616f47d5cde4934cff675630ca0a (patch) | |
tree | 9298f046c29d7db86365525ce2dfe120560fb1b5 | |
parent | efb8363cf29cd7d517c80872b0fb41c5fba81e12 (diff) | |
download | eclipse.platform.team-f3688636b49e616f47d5cde4934cff675630ca0a.tar.gz eclipse.platform.team-f3688636b49e616f47d5cde4934cff675630ca0a.tar.xz eclipse.platform.team-f3688636b49e616f47d5cde4934cff675630ca0a.zip |
[dogfooding][cleanup] Use static inner class clean up for
examples
Using this cleanup brings:
- It reviews the feature
- For optimization: small memory usage reduction as the outer pointer
is removed
Change-Id: Ib00d5f852ff9614036666620a7a31cea232a9277
Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
3 files changed, 3 insertions, 3 deletions
diff --git a/examples/org.eclipse.compare.examples.xml/tests/org/eclipse/compare/examples/xml/TestXMLStructureCreator.java b/examples/org.eclipse.compare.examples.xml/tests/org/eclipse/compare/examples/xml/TestXMLStructureCreator.java index 05162a0d9..7bd6bb308 100644 --- a/examples/org.eclipse.compare.examples.xml/tests/org/eclipse/compare/examples/xml/TestXMLStructureCreator.java +++ b/examples/org.eclipse.compare.examples.xml/tests/org/eclipse/compare/examples/xml/TestXMLStructureCreator.java @@ -31,7 +31,7 @@ public class TestXMLStructureCreator { Document fdoc; XMLStructureCreator fsc; - public class TestStream implements IEncodedStreamContentAccessor { + public static class TestStream implements IEncodedStreamContentAccessor { String fString; public TestStream(String string) { diff --git a/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/ui/FileSystemSynchronizeParticipant.java b/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/ui/FileSystemSynchronizeParticipant.java index 6c6478f8f..3214002b0 100644 --- a/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/ui/FileSystemSynchronizeParticipant.java +++ b/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/ui/FileSystemSynchronizeParticipant.java @@ -69,7 +69,7 @@ public class FileSystemSynchronizeParticipant extends ModelSynchronizeParticipan * A custom label decorator that will show the remote mapped path for each * file. */ - public class FileSystemParticipantLabelDecorator extends LabelProvider implements ILabelDecorator { + public static class FileSystemParticipantLabelDecorator extends LabelProvider implements ILabelDecorator { @Override public Image decorateImage(Image image, Object element) { return image; diff --git a/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/localhistory/LocalHistoryParticipant.java b/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/localhistory/LocalHistoryParticipant.java index 3bd216458..459205b7a 100644 --- a/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/localhistory/LocalHistoryParticipant.java +++ b/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/localhistory/LocalHistoryParticipant.java @@ -55,7 +55,7 @@ public class LocalHistoryParticipant extends SubscriberParticipant { } } - private class LocalHistoryDecorator extends LabelProvider implements ILabelDecorator { + private static class LocalHistoryDecorator extends LabelProvider implements ILabelDecorator { @Override public String decorateText(String text, Object element) { if(element instanceof ISynchronizeModelElement) { |