Skip to content

Commit cb6bce1

Browse files
authored
Formatting fixes
1 parent 4419154 commit cb6bce1

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/java.base/share/classes/java/lang/String.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3478,7 +3478,8 @@ public String[] splitWithDelimiters(String regex, int limit) {
34783478
return split(regex, limit, true);
34793479
}
34803480

3481-
private String[] split(String regex, int limit, boolean withDelimiters) { /* fastpath if the regex is a
3481+
private String[] split(String regex, int limit, boolean withDelimiters) {
3482+
/* fastpath if the regex is a
34823483
* (1) one-char String and this character is not one of the
34833484
* RegEx's meta characters ".$|()[{^?*+\\", or
34843485
* (2) two-char String and the first char is the backslash and

src/java.base/share/classes/java/lang/StringBuffer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -726,12 +726,12 @@ public synchronized StringBuffer reverse() {
726726
return this;
727727
}
728728

729-
@SideEffectFree
730729
/**
731730
* @throws IllegalArgumentException {@inheritDoc}
732731
*
733732
* @since 21
734733
*/
734+
@SideEffectFree
735735
@Override
736736
public synchronized StringBuffer repeat(int codePoint, int count) {
737737
super.repeat(codePoint, count);

src/java.base/share/classes/java/lang/StringBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,13 +493,13 @@ public StringBuilder reverse() {
493493
return this;
494494
}
495495

496-
@SideEffectFree
497496
/**
498497
* @throws IllegalArgumentException {@inheritDoc}
499498
*
500499
* @since 21
501500
*/
502501
@Override
502+
@SideEffectFree
503503
public StringBuilder repeat(int codePoint, int count) {
504504
super.repeat(codePoint, count);
505505
return this;

0 commit comments

Comments
 (0)