@@ -27,8 +27,10 @@ public class GHCommit {
2727 /**
2828 * Short summary of this commit.
2929 */
30- @ SuppressFBWarnings (value = { "UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD" , "UWF_UNWRITTEN_FIELD" ,
31- "NP_UNWRITTEN_FIELD" , "UWF_UNWRITTEN_FIELD" }, justification = "JSON API" )
30+ @ SuppressFBWarnings (
31+ value = { "UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD" , "UWF_UNWRITTEN_FIELD" , "NP_UNWRITTEN_FIELD" ,
32+ "UWF_UNWRITTEN_FIELD" },
33+ justification = "JSON API" )
3234 public static class ShortInfo {
3335 private GHAuthor author ;
3436 private GHAuthor committer ;
@@ -167,7 +169,8 @@ public String getStatus() {
167169 *
168170 * @return Full path in the repository.
169171 */
170- @ SuppressFBWarnings (value = "NM_CONFUSING" , justification = "It's a part of the library's API and cannot be renamed" )
172+ @ SuppressFBWarnings (value = "NM_CONFUSING" ,
173+ justification = "It's a part of the library's API and cannot be renamed" )
171174 public String getFileName () {
172175 return filename ;
173176 }
@@ -344,7 +347,7 @@ public String getSHA1() {
344347 */
345348 public List <File > getFiles () throws IOException {
346349 populate ();
347- return files != null ? Collections .unmodifiableList (files ) : Collections .<File > emptyList ();
350+ return files != null ? Collections .unmodifiableList (files ) : Collections .<File >emptyList ();
348351 }
349352
350353 /**
@@ -438,9 +441,11 @@ private GHUser resolveUser(User author) throws IOException {
438441 * @return {@link PagedIterable} with all the commit comments in this repository.
439442 */
440443 public PagedIterable <GHCommitComment > listComments () {
441- return owner .root .retrieve ().asPagedIterable (
442- String .format ("/repos/%s/%s/commits/%s/comments" , owner .getOwnerName (), owner .getName (), sha ),
443- GHCommitComment [].class , item -> item .wrap (owner ));
444+ return owner .root .retrieve ()
445+ .asPagedIterable (
446+ String .format ("/repos/%s/%s/commits/%s/comments" , owner .getOwnerName (), owner .getName (), sha ),
447+ GHCommitComment [].class ,
448+ item -> item .wrap (owner ));
444449 }
445450
446451 /**
@@ -461,7 +466,9 @@ public PagedIterable<GHCommitComment> listComments() {
461466 * if comment is not created
462467 */
463468 public GHCommitComment createComment (String body , String path , Integer line , Integer position ) throws IOException {
464- GHCommitComment r = new Requester (owner .root ).with ("body" , body ).with ("path" , path ).with ("line" , line )
469+ GHCommitComment r = new Requester (owner .root ).with ("body" , body )
470+ .with ("path" , path )
471+ .with ("line" , line )
465472 .with ("position" , position )
466473 .to (String .format ("/repos/%s/%s/commits/%s/comments" , owner .getOwnerName (), owner .getName (), sha ),
467474 GHCommitComment .class );
0 commit comments