Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions jre_emul/Classes/java/lang/AbstractStringBuilder.m
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,15 @@ static inline void NewBuffer(JreStringBuilder *sb, jint size) {
static JavaLangStringIndexOutOfBoundsException *IndexAndLength(JreStringBuilder *sb, jint index) {
id exc = [[JavaLangStringIndexOutOfBoundsException alloc] initWithNSString:
[NSString stringWithFormat:@"this.length=%d; index=%d", sb->count_, index]];
@throw AUTORELEASE(exc);
return AUTORELEASE(exc);
}

static JavaLangStringIndexOutOfBoundsException *StartEndAndLength(
JreStringBuilder *sb, jint start, jint end) {
id exc = [[JavaLangStringIndexOutOfBoundsException alloc] initWithNSString:
[NSString stringWithFormat:@"this.length=%d; start=%d; length=%d", sb->count_, start,
end - start]];
@throw AUTORELEASE(exc);
return AUTORELEASE(exc);
}

@implementation JavaLangAbstractStringBuilder
Expand Down