Skip to content

Commit da3f2c6

Browse files
committed
restore static blocks in protobuf
1 parent 4c29e49 commit da3f2c6

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

google-http-client-protobuf/src/main/java/com/google/api/client/protobuf/ProtocolBuffers.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,10 @@
3737
public class ProtocolBuffers {
3838

3939
/** {@code "application/x-protobuf"} content type. */
40-
public static final String CONTENT_TYPE;
40+
public static final String CONTENT_TYPE = "application/x-protobuf";
4141

4242
/** {@code "application/x-protobuffer"} content type. */
43-
public static final String ALT_CONTENT_TYPE;
44-
45-
static {
46-
CONTENT_TYPE = "application/x-protobuf";
47-
ALT_CONTENT_TYPE = "application/x-protobuffer";
48-
}
43+
public static final String ALT_CONTENT_TYPE = "application/x-protobuffer";
4944

5045
/**
5146
* Parses protocol buffer content from an input stream (closing the input stream) into a protocol

0 commit comments

Comments
 (0)