Format Java code in xplat/js/react-native-github

Summary:
This diff formats the Java class files inside xplat/js/react-native-github. Since google-java-format was enabled in D16071401 we want to codemode the existing code so that users don't have to deal with formatter lint noise at diff-time.

```arc f --paths-cmd 'hg files -I "**/*.java"'```

drop-conflicts

Reviewed By: cpojer

Differential Revision: D16071725

fbshipit-source-id: fc6e3852e45742c109f0c5ac4065d64201c74204
This commit is contained in:
Oleksandr Melnykov
2019-07-02 04:13:35 -07:00
committed by Facebook Github Bot
parent 61e95e5cbf
commit 6c0f73b322
681 changed files with 14085 additions and 16368 deletions
@@ -1,41 +1,40 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
* <p>This source code is licensed under the MIT license found in the LICENSE file in the root
* directory of this source tree.
*/
package com.facebook.react.bridge;
import com.facebook.proguard.annotations.DoNotStrip;
import javax.annotation.Nonnull;
/**
* A native module whose API can be provided to JS catalyst instances. {@link NativeModule}s whose
* A native module whose API can be provided to JS catalyst instances. {@link NativeModule}s whose
* implementation is written in Java should extend {@link BaseJavaModule} or {@link
* ReactContextBaseJavaModule}. {@link NativeModule}s whose implementation is written in C++
* must not provide any Java code (so they can be reused on other platforms), and instead should
* register themselves using {@link CxxModuleWrapper}.
* ReactContextBaseJavaModule}. {@link NativeModule}s whose implementation is written in C++ must
* not provide any Java code (so they can be reused on other platforms), and instead should register
* themselves using {@link CxxModuleWrapper}.
*/
@DoNotStrip
public interface NativeModule {
interface NativeMethod {
void invoke(JSInstance jsInstance, ReadableArray parameters);
String getType();
}
/**
* @return the name of this module. This will be the name used to {@code require()} this module
* from javascript.
* from javascript.
*/
@Nonnull String getName();
@Nonnull
String getName();
/**
* This is called at the end of {@link CatalystApplicationFragment#createCatalystInstance()}
* after the CatalystInstance has been created, in order to initialize NativeModules that require
* the CatalystInstance or JS modules.
* This is called at the end of {@link CatalystApplicationFragment#createCatalystInstance()} after
* the CatalystInstance has been created, in order to initialize NativeModules that require the
* CatalystInstance or JS modules.
*/
void initialize();
@@ -47,8 +46,6 @@ public interface NativeModule {
*/
boolean canOverrideExistingModule();
/**
* Called before {CatalystInstance#onHostDestroy}
*/
/** Called before {CatalystInstance#onHostDestroy} */
void onCatalystInstanceDestroy();
}