File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
gcloud-java-core/src/main/java/com/google/cloud Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -135,30 +135,30 @@ public final void copyTo(byte[] target) {
135135 /**
136136 * Creates a {@code ByteArray} object given an array of bytes. The bytes are copied.
137137 */
138- public static ByteArray copyFrom (byte [] bytes ) {
138+ public final static ByteArray copyFrom (byte [] bytes ) {
139139 return new ByteArray (ByteString .copyFrom (bytes ));
140140 }
141141
142142 /**
143143 * Creates a {@code ByteArray} object given a string. The string is encoded in {@code UTF-8}. The
144144 * bytes are copied.
145145 */
146- public static ByteArray copyFrom (String string ) {
146+ public final static ByteArray copyFrom (String string ) {
147147 return new ByteArray (ByteString .copyFrom (string , StandardCharsets .UTF_8 ));
148148 }
149149
150150 /**
151151 * Creates a {@code ByteArray} object given a {@link ByteBuffer}. The bytes are copied.
152152 */
153- public static ByteArray copyFrom (ByteBuffer bytes ) {
153+ public final static ByteArray copyFrom (ByteBuffer bytes ) {
154154 return new ByteArray (ByteString .copyFrom (bytes ));
155155 }
156156
157157 /**
158158 * Creates a {@code ByteArray} object given an {@link InputStream}. The stream is read into the
159159 * created object.
160160 */
161- public static ByteArray copyFrom (InputStream input ) throws IOException {
161+ public final static ByteArray copyFrom (InputStream input ) throws IOException {
162162 return new ByteArray (ByteString .readFrom (input ));
163163 }
164164}
You can’t perform that action at this time.
0 commit comments