| commit | f3688636b49e616f47d5cde4934cff675630ca0a | [log] [tgz] |
|---|---|---|
| author | Lars Vogel <Lars.Vogel@vogella.com> | Fri Apr 09 07:53:13 2021 +0200 |
| committer | Lars Vogel <Lars.Vogel@vogella.com> | Fri Apr 09 13:14:43 2021 -0400 |
| tree | 9298f046c29d7db86365525ce2dfe120560fb1b5 | |
| parent | efb8363cf29cd7d517c80872b0fb41c5fba81e12 [diff] |
[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>
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 05162a0..7bd6bb3 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 @@ 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 6c6478f..3214002 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 @@ * 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 3bd2164..459205b 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 @@ } } - 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) {