Skip to content

Commit

Permalink
Migrate google java format from 1.7 -> 1.21.0 (facebook#974)
Browse files Browse the repository at this point in the history
Summary:
X-link: facebook/fresco#2757

Pull Request resolved: facebook#974

X-link: facebook/react-native#42754

X-link: facebook/hhvm#9431

X-link: WhatsApp/eqwalizer#52

X-link: facebookincubator/spectrum#1858

X-link: fbsamples/metapay#1

X-link: facebookincubator/fbjni#95

X-link: facebookincubator/Battery-Metrics#30

X-link: facebook/ktfmt#440

X-link: facebook/flipper#5456

X-link: facebook/hermes#1290

X-link: facebook/TextLayoutBuilder#35

X-link: facebook/SoLoader#122

This diff migrates google java format form 1.7 to 1.21.0. This update will allow for new language features from java 17 and 21. This diff also formats all necessary files.

 Changelog:
    [Internal][Changed] - Updated format from google-java-format 1.7 -> 1.21.0

Reviewed By: IanChilds

Differential Revision: D52786052
  • Loading branch information
j-bahr authored and facebook-github-bot committed Mar 20, 2024
1 parent c2cc775 commit 2c87d8f
Show file tree
Hide file tree
Showing 134 changed files with 1,559 additions and 653 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@
*/
int poolSize() default 3;

/** @return whether the component generated from this MountSpec will be preallocated. */
/**
* @return whether the component generated from this MountSpec will be preallocated.
*/
boolean canPreallocate() default false;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
@Retention(RetentionPolicy.RUNTIME)
public @interface OnCalculateCachedValue {

/** @return the name of the {@link CachedValue} that is being calculated. */
/**
* @return the name of the {@link CachedValue} that is being calculated.
*/
String name();
}
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,9 @@
*/
ResType resType() default ResType.NONE;

/** @return The documentation for the annotated parameter. */
/**
* @return The documentation for the annotated parameter.
*/
String docString() default "";

/**
Expand All @@ -155,7 +157,9 @@
*/
String varArg() default "";

/** @return {@code true} if the name of the prop conflicts with a common prop. */
/**
* @return {@code true} if the name of the prop conflicts with a common prop.
*/
boolean isCommonProp() default false;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,13 @@
*/
@Retention(RetentionPolicy.CLASS)
public @interface PropSetter {
/** @return {@link Prop} name that method with this annotation sets. */
/**
* @return {@link Prop} name that method with this annotation sets.
*/
String value();
/** @return true if the {@link Prop} is required, false if is optional. */

/**
* @return true if the {@link Prop} is required, false if is optional.
*/
boolean required();
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
*/
@Retention(RetentionPolicy.CLASS)
public @interface RequiredProp {
/** @return required {@link Prop} name method with this annotation sets. */
/**
* @return required {@link Prop} name method with this annotation sets.
*/
String value();
}
Loading

0 comments on commit 2c87d8f

Please sign in to comment.