Permalink
Browse files

Fix author usage, unused imports

  • Loading branch information...
alesj committed Mar 12, 2011
1 parent f3a0fde commit 1e905e001cf5a9514d5398f7249e228f304c7feb
@@ -99,7 +99,13 @@ public void setPostDate(Date postDate)
public String getAuthor()
{
- return (users != null) ? users.getUsername() : author;
+ if (users != null)
+ {
+ String username = users.getUsername();
+ if (username != null)
+ return username;
+ }
+ return author;
}
public void setAuthor(String author)
@@ -21,26 +21,13 @@
*/
package org.jboss.weld.examples.permalink;
-import java.text.DateFormat;
-import java.text.ParseException;
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.Comparator;
-import java.util.Date;
import java.util.List;
-import java.util.Locale;
-import java.util.concurrent.atomic.AtomicLong;
-
-import javax.annotation.PostConstruct;
-import javax.enterprise.context.ApplicationScoped;
/**
* @author Ales Justin
*/
public interface Repository
{
- void seed();
-
List<BlogEntry> searchEntries(String searchString, int offset, int count);
List<BlogEntry> searchEntries(String searchString, String category, int offset, int count);

0 comments on commit 1e905e0

Please sign in to comment.