Permalink
Browse files

Add missing @Overrides and fix other warnings. Please make sure to co…

…nfigure your IDE properly so that this shows up as at least a warning, thanks.
  • Loading branch information...
lincolnthree committed Jan 31, 2013
1 parent db08e18 commit 5a9b3fdc36ad83918026699046a89131b52618e2
@@ -25,7 +25,7 @@
protected abstract String getDescription();
- protected String getCoordinates()
+ protected String getCoordinates()
{
return groupId.getValue() + ':' +
name.getValue() + ',' +
@@ -38,6 +38,7 @@ public UICommandMetadata getMetadata()
return new UICommandMetadataBase(getName(), getDescription());
}
+ @Override
public void initializeUI(UIContext context) throws Exception
{
initializeGroupIdInput(context);
@@ -16,16 +16,19 @@
@Inject
private AddonManager addonManager;
+ @Override
protected String getName()
{
return ADDON_INSTALL_COMMAND_NAME;
}
+ @Override
protected String getDescription()
{
return ADDON_INSTALL_COMMAND_DESCRIPTION;
}
-
+
+ @Override
public Result execute(UIContext context)
{
String coordinates = getCoordinates();
@@ -6,7 +6,6 @@
*/
package org.jboss.forge.aesh.commands;
-import org.jboss.aesh.console.Console;
import org.jboss.forge.ui.UICommandMetadata;
import org.jboss.forge.ui.base.UICommandMetadataBase;
@@ -62,7 +62,7 @@ public static void populateUIInputs(CommandLine commandLine, ShellContext contex
}
}
- @SuppressWarnings({ "unchecked", "rawtypes" })
+ @SuppressWarnings({ "unchecked" })
private static void setInputValue(UIInput<?> input, String value) {
if(input.getValueType() == String.class) {
@@ -12,6 +12,7 @@
*/
public final class MockFinalResult implements Result
{
+ @Override
public Object getValue()
{
return Object.class;
@@ -12,6 +12,7 @@
*/
public class MockResult implements Result
{
+ @Override
public Object getValue()
{
return Object.class;
@@ -70,6 +70,7 @@ private Annotateds()
implements Comparator<AnnotatedCallable<? super T>>, Serializable
{
+ @Override
public int compare(AnnotatedCallable<? super T> arg0, AnnotatedCallable<? super T> arg1)
{
// compare the names first
@@ -102,6 +103,7 @@ public int compare(AnnotatedCallable<? super T> arg0, AnnotatedCallable<? super
return new AnnotatedMethodComparator<T>();
}
+ @Override
public int compare(AnnotatedMethod<? super T> arg0, AnnotatedMethod<? super T> arg1)
{
int result = callableComparator.compare(arg0, arg1);
@@ -136,6 +138,7 @@ public int compare(AnnotatedMethod<? super T> arg0, AnnotatedMethod<? super T> a
return new AnnotatedConstructorComparator<T>();
}
+ @Override
public int compare(AnnotatedConstructor<? super T> arg0, AnnotatedConstructor<? super T> arg1)
{
int result = callableComparator.compare(arg0, arg1);
@@ -168,6 +171,7 @@ public int compare(AnnotatedConstructor<? super T> arg0, AnnotatedConstructor<?
return new AnnotatedFieldComparator<T>();
}
+ @Override
public int compare(AnnotatedField<? super T> arg0, AnnotatedField<? super T> arg1)
{
if (arg0.getJavaMember().getName().equals(arg1.getJavaMember().getName()))
@@ -186,6 +190,7 @@ public int compare(AnnotatedField<? super T> arg0, AnnotatedField<? super T> arg
public static final Comparator<Annotation> INSTANCE = new AnnotationComparator();
+ @Override
public int compare(Annotation arg0, Annotation arg1)
{
return arg0.annotationType().getName().compareTo(arg1.annotationType().getName());
@@ -197,6 +202,7 @@ public int compare(Annotation arg0, Annotation arg1)
public static final Comparator<Method> INSTANCE = new MethodComparator();
+ @Override
public int compare(Method arg0, Method arg1)
{
return arg0.getName().compareTo(arg1.getName());
@@ -43,6 +43,7 @@ public DelegatingContextualLifecycle(InjectionTarget<T> injectionTarget)
this.injectionTarget = injectionTarget;
}
+ @Override
public T create(Bean<T> bean, CreationalContext<T> creationalContext)
{
T instance = injectionTarget.produce(creationalContext);
@@ -51,6 +52,7 @@ public T create(Bean<T> bean, CreationalContext<T> creationalContext)
return instance;
}
+ @Override
public void destroy(Bean<T> bean, T instance, CreationalContext<T> creationalContext)
{
try
@@ -32,27 +32,33 @@
class DummyInjectionTarget<T> implements InjectionTarget<T>
{
+ @Override
public void inject(T instance, CreationalContext<T> ctx)
{
}
+ @Override
public void postConstruct(T instance)
{
}
+ @Override
public void preDestroy(T instance)
{
}
+ @Override
public void dispose(T instance)
{
}
+ @Override
public Set<InjectionPoint> getInjectionPoints()
{
return emptySet();
}
+ @Override
public T produce(CreationalContext<T> ctx)
{
return null;
@@ -83,6 +83,7 @@ public JavaEnumImpl(JavaSource<?> enclosingType, final Document document, final
return null;
}
+ @Override
protected JavaEnum updateTypeNames(final String newName)
{
return this;

0 comments on commit 5a9b3fd

Please sign in to comment.