Skip to content

Commit 6bc8604

Browse files
committed
FAB-3153 Whitespace fixes (core)
Change-Id: I3851d82386d5563ebf10bc2a27c574fa2db71df1 Signed-off-by: Jessica Wagantall <[email protected]> Signed-off-by: Ry Jones <[email protected]>
1 parent eba4a20 commit 6bc8604

File tree

3 files changed

+25
-25
lines changed

3 files changed

+25
-25
lines changed

core/chaincode/shim/java/src/main/java/org/hyperledger/fabric/shim/ChaincodeHelper.java

+21-21
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
public abstract class ChaincodeHelper {
3535
public static final int UNKNOWN_VALUE = 0;
36-
36+
3737
public static Response newResponse(Status status, String message, byte[] payload) {
3838
final Builder builder = Response.newBuilder();
3939
builder.setStatus(status.getNumber());
@@ -45,15 +45,15 @@ public static Response newResponse(Status status, String message, byte[] payload
4545
}
4646
return builder.build();
4747
}
48-
48+
4949
public static Response newSuccessResponse(String message, byte[] payload) {
5050
return newResponse(SUCCESS, message, payload);
5151
}
52-
52+
5353
public static Response newSuccessResponse() {
5454
return newSuccessResponse(null, null);
5555
}
56-
56+
5757
public static Response newSuccessResponse(String message) {
5858
return newSuccessResponse(message, null);
5959
}
@@ -65,11 +65,11 @@ public static Response newSuccessResponse(byte[] payload) {
6565
public static Response newBadRequestResponse(String message, byte[] payload) {
6666
return newResponse(BAD_REQUEST, message, payload);
6767
}
68-
68+
6969
public static Response newBadRequestResponse() {
7070
return newBadRequestResponse(null, null);
7171
}
72-
72+
7373
public static Response newBadRequestResponse(String message) {
7474
return newBadRequestResponse(message, null);
7575
}
@@ -85,75 +85,75 @@ public static Response newForbiddenResponse(byte[] payload) {
8585
public static Response newForbiddenResponse(String message, byte[] payload) {
8686
return newResponse(FORBIDDEN, message, payload);
8787
}
88-
88+
8989
public static Response newForbiddenResponse() {
9090
return newForbiddenResponse(null, null);
9191
}
92-
92+
9393
public static Response newForbiddenResponse(String message) {
9494
return newForbiddenResponse(message, null);
9595
}
9696

9797
public static Response newNotFoundResponse(String message, byte[] payload) {
9898
return newResponse(NOT_FOUND, message, payload);
9999
}
100-
100+
101101
public static Response newNotFoundResponse() {
102102
return newNotFoundResponse(null, null);
103103
}
104-
104+
105105
public static Response newNotFoundResponse(String message) {
106106
return newNotFoundResponse(message, null);
107107
}
108108

109109
public static Response newNotFoundResponse(byte[] payload) {
110110
return newNotFoundResponse(null, payload);
111111
}
112-
112+
113113
public static Response newRequestEntityTooLargeResponse(String message, byte[] payload) {
114114
return newResponse(REQUEST_ENTITY_TOO_LARGE, message, payload);
115115
}
116-
116+
117117
public static Response newRequestEntityTooLargeResponse() {
118118
return newRequestEntityTooLargeResponse(null, null);
119119
}
120-
120+
121121
public static Response newRequestEntityTooLargeResponse(String message) {
122122
return newRequestEntityTooLargeResponse(message, null);
123123
}
124124

125125
public static Response newRequestEntityTooLargeResponse(byte[] payload) {
126126
return newRequestEntityTooLargeResponse(null, payload);
127127
}
128-
128+
129129
public static Response newInternalServerErrorResponse(String message, byte[] payload) {
130130
return newResponse(INTERNAL_SERVER_ERROR, message, payload);
131131
}
132-
132+
133133
public static Response newInternalServerErrorResponse() {
134134
return newInternalServerErrorResponse(null, null);
135135
}
136-
136+
137137
public static Response newInternalServerErrorResponse(String message) {
138138
return newInternalServerErrorResponse(message, null);
139139
}
140140

141141
public static Response newInternalServerErrorResponse(byte[] payload) {
142142
return newInternalServerErrorResponse(null, payload);
143143
}
144-
144+
145145
public static Response newInternalServerErrorResponse(Throwable throwable) {
146146
return newInternalServerErrorResponse(throwable.getMessage(), printStackTrace(throwable));
147147
}
148-
148+
149149
public static Response newServiceUnavailableErrorResponse(String message, byte[] payload) {
150150
return newResponse(SERVICE_UNAVAILABLE, message, payload);
151151
}
152-
152+
153153
public static Response newServiceUnavailableErrorResponse() {
154154
return newServiceUnavailableErrorResponse(null, null);
155155
}
156-
156+
157157
public static Response newServiceUnavailableErrorResponse(String message) {
158158
return newServiceUnavailableErrorResponse(message, null);
159159
}
@@ -168,5 +168,5 @@ static byte[] printStackTrace(Throwable throwable) {
168168
throwable.printStackTrace(new PrintWriter(buffer));
169169
return buffer.toString().getBytes(StandardCharsets.UTF_8);
170170
}
171-
171+
172172
}

core/chaincode/shim/java/src/main/java/org/hyperledger/fabric/shim/HandlerHelper.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ private static ChaincodeMessage newEventMessage(final Type type, final String tx
3232
.setPayload(payload)
3333
.build();
3434
}
35-
35+
3636
static ChaincodeMessage newGetStateEventMessage(final String txid, final String key) {
3737
return newEventMessage(GET_STATE, txid, ByteString.copyFromUtf8(key));
3838
}
39-
39+
4040
static ChaincodeMessage newErrorEventMessage(final String txid, final Response payload) {
4141
return newEventMessage(ERROR, txid, payload.toByteString());
4242
}
43-
43+
4444
static ChaincodeMessage newErrorEventMessage(final String txid, final Throwable throwable) {
4545
return newErrorEventMessage(txid, ChaincodeHelper.newInternalServerErrorResponse(throwable));
4646
}

core/comm/testdata/grpc/test.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ option go_package = "github.com/hyperledger/fabric/core/comm/testdata/grpc";
2121
message Empty {}
2222

2323
service TestService {
24-
24+
2525
rpc EmptyCall(Empty) returns (Empty);
2626

2727
}

0 commit comments

Comments
 (0)