aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2018-04-27 10:49:08 -0400
committerLars Vogel2018-04-27 10:54:47 -0400
commit142f23a19598ec760941ecfb84a179c119860a49 (patch)
treefd396fbb570b190c2cf96cd0538b1b58c54a16ed
parent1f7696bcf8b1ad5024acc4125ef965759e04dbff (diff)
downloadeclipse.platform.runtime-142f23a19598ec760941ecfb84a179c119860a49.tar.gz
eclipse.platform.runtime-142f23a19598ec760941ecfb84a179c119860a49.tar.xz
eclipse.platform.runtime-142f23a19598ec760941ecfb84a179c119860a49.zip
org.eclipse.e4.core.services Change-Id: I32563f0d4423293a97a40a5005cb53ba191a193d Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r--bundles/org.eclipse.e4.core.services/.settings/org.eclipse.jdt.ui.prefs1
-rw-r--r--bundles/org.eclipse.e4.core.services/src/org/eclipse/e4/core/services/contributions/IContributionFactory.java6
-rw-r--r--bundles/org.eclipse.e4.core.services/src/org/eclipse/e4/core/services/contributions/IContributionFactorySpi.java4
-rw-r--r--bundles/org.eclipse.e4.core.services/src/org/eclipse/e4/core/services/events/IEventBroker.java12
-rw-r--r--bundles/org.eclipse.e4.core.services/src/org/eclipse/e4/core/services/log/ILoggerProvider.java2
-rw-r--r--bundles/org.eclipse.e4.core.services/src/org/eclipse/e4/core/services/nls/IMessageFactoryService.java2
6 files changed, 14 insertions, 13 deletions
diff --git a/bundles/org.eclipse.e4.core.services/.settings/org.eclipse.jdt.ui.prefs b/bundles/org.eclipse.e4.core.services/.settings/org.eclipse.jdt.ui.prefs
index e16fbde61..bb7407b46 100644
--- a/bundles/org.eclipse.e4.core.services/.settings/org.eclipse.jdt.ui.prefs
+++ b/bundles/org.eclipse.e4.core.services/.settings/org.eclipse.jdt.ui.prefs
@@ -99,6 +99,7 @@ sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=
sp_cleanup.qualify_static_member_accesses_with_declaring_class=false
sp_cleanup.qualify_static_method_accesses_with_declaring_class=false
sp_cleanup.remove_private_constructors=true
+sp_cleanup.remove_redundant_modifiers=true
sp_cleanup.remove_redundant_type_arguments=false
sp_cleanup.remove_trailing_whitespaces=true
sp_cleanup.remove_trailing_whitespaces_all=true
diff --git a/bundles/org.eclipse.e4.core.services/src/org/eclipse/e4/core/services/contributions/IContributionFactory.java b/bundles/org.eclipse.e4.core.services/src/org/eclipse/e4/core/services/contributions/IContributionFactory.java
index 5b0392ef9..de86a26ad 100644
--- a/bundles/org.eclipse.e4.core.services/src/org/eclipse/e4/core/services/contributions/IContributionFactory.java
+++ b/bundles/org.eclipse.e4.core.services/src/org/eclipse/e4/core/services/contributions/IContributionFactory.java
@@ -17,10 +17,10 @@ import org.osgi.framework.Bundle;
// Change it into an utility method somewhere.
public interface IContributionFactory {
- public Object create(String uriString, IEclipseContext context);
+ Object create(String uriString, IEclipseContext context);
- public Object create(String uriString, IEclipseContext context, IEclipseContext staticContext);
+ Object create(String uriString, IEclipseContext context, IEclipseContext staticContext);
- public Bundle getBundle(String uriString);
+ Bundle getBundle(String uriString);
}
diff --git a/bundles/org.eclipse.e4.core.services/src/org/eclipse/e4/core/services/contributions/IContributionFactorySpi.java b/bundles/org.eclipse.e4.core.services/src/org/eclipse/e4/core/services/contributions/IContributionFactorySpi.java
index 52bdb64c4..f2fef7ba2 100644
--- a/bundles/org.eclipse.e4.core.services/src/org/eclipse/e4/core/services/contributions/IContributionFactorySpi.java
+++ b/bundles/org.eclipse.e4.core.services/src/org/eclipse/e4/core/services/contributions/IContributionFactorySpi.java
@@ -16,8 +16,8 @@ import org.osgi.framework.Bundle;
// TBD only used by Languages block, move it there?
public interface IContributionFactorySpi {
- public Object create(Bundle bundle, String className, IEclipseContext context);
+ Object create(Bundle bundle, String className, IEclipseContext context);
- public Object call(Object object, String methodName, IEclipseContext context,
+ Object call(Object object, String methodName, IEclipseContext context,
Object defaultValue);
}
diff --git a/bundles/org.eclipse.e4.core.services/src/org/eclipse/e4/core/services/events/IEventBroker.java b/bundles/org.eclipse.e4.core.services/src/org/eclipse/e4/core/services/events/IEventBroker.java
index 38b11280a..4a5ca861a 100644
--- a/bundles/org.eclipse.e4.core.services/src/org/eclipse/e4/core/services/events/IEventBroker.java
+++ b/bundles/org.eclipse.e4.core.services/src/org/eclipse/e4/core/services/events/IEventBroker.java
@@ -30,7 +30,7 @@ public interface IEventBroker {
/**
* The name of the default event attribute used to pass data.
*/
- public String DATA = "org.eclipse.e4.data"; //$NON-NLS-1$
+ String DATA = "org.eclipse.e4.data"; //$NON-NLS-1$
/**
* Publish event synchronously (the method does not return until the event is processed).
@@ -46,7 +46,7 @@ public interface IEventBroker {
* @return <code>true</code> if this operation was performed successfully; <code>false</code>
* otherwise
*/
- public boolean send(String topic, Object data);
+ boolean send(String topic, Object data);
/**
* Publish event asynchronously (this method returns immediately).
@@ -62,7 +62,7 @@ public interface IEventBroker {
* @return <code>true</code> if this operation was performed successfully; <code>false</code>
* otherwise
*/
- public boolean post(String topic, Object data);
+ boolean post(String topic, Object data);
/**
* Subscribe for events on the given topic.
@@ -77,7 +77,7 @@ public interface IEventBroker {
* @return <code>true</code> if this operation was performed successfully; <code>false</code>
* otherwise
*/
- public boolean subscribe(String topic, EventHandler eventHandler);
+ boolean subscribe(String topic, EventHandler eventHandler);
/**
* Subscribe for events on the given topic.
@@ -98,7 +98,7 @@ public interface IEventBroker {
* @return <code>true</code> if this operation was performed successfully;
* <code>false</code> otherwise
*/
- public boolean subscribe(String topic, String filter, EventHandler eventHandler,
+ boolean subscribe(String topic, String filter, EventHandler eventHandler,
boolean headless);
/**
@@ -109,5 +109,5 @@ public interface IEventBroker {
* @return <code>true</code> if this operation was performed successfully; <code>false</code>
* otherwise
*/
- public boolean unsubscribe(EventHandler eventHandler);
+ boolean unsubscribe(EventHandler eventHandler);
}
diff --git a/bundles/org.eclipse.e4.core.services/src/org/eclipse/e4/core/services/log/ILoggerProvider.java b/bundles/org.eclipse.e4.core.services/src/org/eclipse/e4/core/services/log/ILoggerProvider.java
index 27f2fce8e..e504f869e 100644
--- a/bundles/org.eclipse.e4.core.services/src/org/eclipse/e4/core/services/log/ILoggerProvider.java
+++ b/bundles/org.eclipse.e4.core.services/src/org/eclipse/e4/core/services/log/ILoggerProvider.java
@@ -11,5 +11,5 @@
package org.eclipse.e4.core.services.log;
public interface ILoggerProvider {
- public Logger getClassLogger(Class<?> clazz);
+ Logger getClassLogger(Class<?> clazz);
}
diff --git a/bundles/org.eclipse.e4.core.services/src/org/eclipse/e4/core/services/nls/IMessageFactoryService.java b/bundles/org.eclipse.e4.core.services/src/org/eclipse/e4/core/services/nls/IMessageFactoryService.java
index b76328df1..51feb87b7 100644
--- a/bundles/org.eclipse.e4.core.services/src/org/eclipse/e4/core/services/nls/IMessageFactoryService.java
+++ b/bundles/org.eclipse.e4.core.services/src/org/eclipse/e4/core/services/nls/IMessageFactoryService.java
@@ -35,6 +35,6 @@ public interface IMessageFactoryService {
* bundle with a given locale.
* @return An instance of the given messages class and {@link Locale}.
*/
- public <M> M getMessageInstance(final Locale locale, final Class<M> messages,
+ <M> M getMessageInstance(final Locale locale, final Class<M> messages,
ResourceBundleProvider provider);
}