Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
finagle/finagle-example: Re-enable checkstyle and fix errors
Problem / Solution Un-suppress checkstyle suppression for finagle/finagle-example/src/main/java/com/twitter/finagle/example/java/http/.*.java and fix resulting errors. RB_ID=877045
- Loading branch information
Showing
8 changed files
with
67 additions
and
27 deletions.
There are no files selected for viewing
9 changes: 7 additions & 2 deletions
9
finagle-example/src/main/java/com/twitter/finagle/example/java/http/CatService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
package com.twitter.finagle.example.java.http; | ||
|
||
public final class CatService { | ||
private final static CatsDB db = new CatsDB(); | ||
|
||
private CatService() { | ||
|
||
} | ||
|
||
private static final CatsDB DB = new CatsDB(); | ||
|
||
public static Cat find(int id) { | ||
return db.get(id); | ||
return DB.get(id); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 9 additions & 2 deletions
11
finagle-example/src/main/java/com/twitter/finagle/example/java/http/Handlers.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters