Remove javadoc comments from overriding methods.
[Sone.git] / src / main / java / net / pterodactylus / sone / template / ProfileAccessor.java
index 30c0a52..d215c82 100644 (file)
@@ -49,9 +49,6 @@ public class ProfileAccessor extends ReflectionAccessor {
                this.core = core;
        }
 
-       /**
-        * {@inheritDoc}
-        */
        @Override
        public Object get(TemplateContext templateContext, Object object, String member) {
                Profile profile = (Profile) object;
@@ -65,7 +62,7 @@ public class ProfileAccessor extends ReflectionAccessor {
                        if (avatarId == null) {
                                return null;
                        }
-                       if (core.getImage(avatarId, false) == null) {
+                       if (!core.getImage(avatarId).isPresent()) {
                                /* avatar ID but no matching image? show nothing. */
                                return null;
                        }