Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Fix findbugs warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
seanf committed Oct 3, 2013
1 parent 68bf669 commit 397bc7e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
Expand Up @@ -69,6 +69,7 @@ public ConfigurableNgramAnalyzer(int ngramMinLength, int ngramMaxLength,
this.foldCase = foldCase;
}

@SuppressWarnings("resource") // caller should close
@Override
public TokenStream tokenStream(String fieldName, Reader reader) {
TokenStream tokenStream;
Expand Down
Expand Up @@ -193,7 +193,7 @@ public Boolean call() throws Exception {
// look at updating isInProgress not to care about count
if (getHandle().getMaxProgress() == 0) {
log.info("Reindexing aborted because there are no actions to perform (may be indexing an empty table)");
return null;
return false;
}
for (Class<?> clazz : indexables) {
if (!getHandle().isCancelled()
Expand Down
Expand Up @@ -35,6 +35,7 @@
// Implementation copied from
// https://source.jboss.org/browse/Seam/branches/community/Seam_2_3/jboss-seam/src/main/java/org/jboss/seam/navigation/SafeActions.java?r=14141
// following https://community.jboss.org/message/688860#688860
// TODO see if this can be removed - see also https://issues.jboss.org/browse/JBSEAM-4800
public class FixedSafeActions extends org.jboss.seam.navigation.SafeActions {

private Set<String> safeActions = Collections
Expand Down
@@ -1,5 +1,7 @@
package com.google.gwt.core.client;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;

/**
* After upgrade to GWT 2.5, some of the gwt related libraries start to break.
* i.e. gwt-log see http://code.google.com/p/gwt-log/issues/detail?id=70
Expand All @@ -11,5 +13,6 @@
* @author Patrick Huang <a
* href="mailto:pahuang@redhat.com">pahuang@redhat.com</a>
*/
@SuppressFBWarnings("NM_SAME_SIMPLE_NAME_AS_SUPERCLASS")
public abstract class GWTBridge extends com.google.gwt.core.shared.GWTBridge {

This comment has been minimized.

Copy link
@huangp

huangp Oct 8, 2013

Collaborator

this file will be deleted in #218

This comment has been minimized.

Copy link
@seanf

seanf Oct 8, 2013

Author Contributor

What?

This comment has been minimized.

Copy link
@seanf

seanf Oct 8, 2013

Author Contributor

Have we upgraded all the relevant libraries?

This comment has been minimized.

Copy link
@huangp

huangp Oct 8, 2013

Collaborator

Only gwt-log is affected.

}

0 comments on commit 397bc7e

Please sign in to comment.