Skip to content

Commit

Permalink
Add unused to pmd
Browse files Browse the repository at this point in the history
  • Loading branch information
sjudd committed Oct 4, 2014
1 parent 4f89e97 commit 57d127a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions library/pmd-ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
</rule>
<rule ref="rulesets/java/braces.xml" />
<rule ref="rulesets/java/strings.xml" />
<rule ref="rulesets/java/unusedcode.xml" />

<rule ref="rulesets/java/design.xml" >
<exclude name="ConfusingTernary" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public interface DefaultOptions {
* @param requestBuilder The request builder being used to construct the load.
* @param <T> The type of the model.
*/
public <T> void apply(T model, GenericRequestBuilder<T, ?, ?, ?> requestBuilder);
<T> void apply(T model, GenericRequestBuilder<T, ?, ?, ?> requestBuilder);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public interface DiskCache {
/**
* An interface to actually write data to a key in the disk cache.
*/
public interface Writer {
interface Writer {
/**
* Writes data to the file and returns true if the write was successful and should be committed, and
* false if the write should be aborted.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public interface MemoryCache {
/**
* An interface that will be called whenever a bitmap is removed from the cache.
*/
public interface ResourceRemovedListener {
interface ResourceRemovedListener {
void onResourceRemoved(Resource<?> removed);
}

Expand Down

0 comments on commit 57d127a

Please sign in to comment.